Mercurial > hg > graal-jvmci-8
diff graal/GraalCompiler/src/com/sun/c1x/ir/MonitorEnter.java @ 2596:1c36b17f7ee0
new node layout: AccessMonitor, Invoke
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 05 May 2011 16:07:00 +0200 |
parents | c58a301eb2d7 |
children | 3558ca7088c0 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/MonitorEnter.java Thu May 05 15:49:48 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/MonitorEnter.java Thu May 05 16:07:00 2011 +0200 @@ -22,16 +22,18 @@ */ package com.sun.c1x.ir; +import com.oracle.graal.graph.*; import com.sun.c1x.debug.*; import com.sun.c1x.value.*; /** * The {@code MonitorEnter} instruction represents the acquisition of a monitor. - * - * @author Ben L. Titzer */ public final class MonitorEnter extends AccessMonitor { + private static final int INPUT_COUNT = 0; + private static final int SUCCESSOR_COUNT = 0; + private FrameState stateAfter; /** @@ -41,9 +43,10 @@ * @param lockAddress the address of the on-stack lock object or {@code null} if the runtime does not place locks on the stack * @param lockNumber the number of the lock * @param stateBefore the state before + * @param graph */ - public MonitorEnter(Value object, Value lockAddress, int lockNumber, FrameState stateBefore) { - super(object, lockAddress, stateBefore, lockNumber); + public MonitorEnter(Value object, Value lockAddress, int lockNumber, FrameState stateBefore, Graph graph) { + super(object, lockAddress, stateBefore, lockNumber, INPUT_COUNT, SUCCESSOR_COUNT, graph); } @Override