Mercurial > hg > truffle
diff graal/GraalCompiler/src/com/sun/c1x/ir/MonitorEnter.java @ 2622:91d3952f7eb7
Framestate work : using stateAFter and reducting the number of nodes with framestates. Intermediate state (does not pass tests)
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Tue, 10 May 2011 12:37:46 +0200 |
parents | dd115f80acf8 |
children | 569228710be8 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/MonitorEnter.java Tue May 10 11:55:12 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/MonitorEnter.java Tue May 10 12:37:46 2011 +0200 @@ -34,12 +34,6 @@ private static final int INPUT_COUNT = 0; private static final int SUCCESSOR_COUNT = 1; - private static final int SUCCESSOR_STATE_AFTER = 0; - - @Override - protected int inputCount() { - return super.inputCount() + INPUT_COUNT; - } @Override protected int successorCount() { @@ -47,28 +41,16 @@ } /** - * The state for this instruction. - */ - @Override - public FrameState stateAfter() { - return (FrameState) successors().get(super.successorCount() + SUCCESSOR_STATE_AFTER); - } - - public FrameState setStateAfter(FrameState n) { - return (FrameState) successors().set(super.successorCount() + SUCCESSOR_STATE_AFTER, n); - } - - /** * Creates a new MonitorEnter instruction. * * @param object the instruction producing the object * @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 stateAfter the state after * @param graph */ - public MonitorEnter(Value object, Value lockAddress, int lockNumber, FrameState stateBefore, Graph graph) { - super(object, lockAddress, stateBefore, lockNumber, INPUT_COUNT, SUCCESSOR_COUNT, graph); + public MonitorEnter(Value object, Value lockAddress, int lockNumber, FrameState stateAfter, Graph graph) { + super(object, lockAddress, stateAfter, lockNumber, INPUT_COUNT, SUCCESSOR_COUNT, graph); } @Override