Mercurial > hg > graal-compiler
diff graal/GraalCompiler/src/com/sun/c1x/ir/MonitorExit.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 | 91d3952f7eb7 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/MonitorExit.java Thu May 05 15:49:48 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/MonitorExit.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 MonitorExit} instruction represents a monitor release. - * - * @author Ben L. Titzer */ public final class MonitorExit extends AccessMonitor { + private static final int INPUT_COUNT = 0; + private static final int SUCCESSOR_COUNT = 0; + /** * Creates a new MonitorExit instruction. * @@ -39,9 +41,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 executing this instruction + * @param graph */ - public MonitorExit(Value object, Value lockAddress, int lockNumber, FrameState stateBefore) { - super(object, lockAddress, stateBefore, lockNumber); + public MonitorExit(Value object, Value lockAddress, int lockNumber, FrameState stateBefore, Graph graph) { + super(object, lockAddress, stateBefore, lockNumber, INPUT_COUNT, SUCCESSOR_COUNT, graph); } @Override