Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/ir/MonitorEnter.java @ 2621:dd115f80acf8
changed stateAfter FrameState to successor (instead of input), checkstyle fixes, added fixed root node to graph
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Tue, 10 May 2011 11:55:12 +0200 |
parents | 3558ca7088c0 |
children | 91d3952f7eb7 |
comparison
equal
deleted
inserted
replaced
2620:a7ae14997372 | 2621:dd115f80acf8 |
---|---|
29 /** | 29 /** |
30 * The {@code MonitorEnter} instruction represents the acquisition of a monitor. | 30 * The {@code MonitorEnter} instruction represents the acquisition of a monitor. |
31 */ | 31 */ |
32 public final class MonitorEnter extends AccessMonitor { | 32 public final class MonitorEnter extends AccessMonitor { |
33 | 33 |
34 private static final int INPUT_COUNT = 1; | 34 private static final int INPUT_COUNT = 0; |
35 private static final int INPUT_STATE_AFTER = 0; | |
36 | 35 |
37 private static final int SUCCESSOR_COUNT = 0; | 36 private static final int SUCCESSOR_COUNT = 1; |
37 private static final int SUCCESSOR_STATE_AFTER = 0; | |
38 | 38 |
39 @Override | 39 @Override |
40 protected int inputCount() { | 40 protected int inputCount() { |
41 return super.inputCount() + INPUT_COUNT; | 41 return super.inputCount() + INPUT_COUNT; |
42 } | 42 } |
49 /** | 49 /** |
50 * The state for this instruction. | 50 * The state for this instruction. |
51 */ | 51 */ |
52 @Override | 52 @Override |
53 public FrameState stateAfter() { | 53 public FrameState stateAfter() { |
54 return (FrameState) inputs().get(super.inputCount() + INPUT_STATE_AFTER); | 54 return (FrameState) successors().get(super.successorCount() + SUCCESSOR_STATE_AFTER); |
55 } | 55 } |
56 | 56 |
57 public FrameState setStateAfter(FrameState n) { | 57 public FrameState setStateAfter(FrameState n) { |
58 return (FrameState) inputs().set(super.inputCount() + INPUT_STATE_AFTER, n); | 58 return (FrameState) successors().set(super.successorCount() + SUCCESSOR_STATE_AFTER, n); |
59 } | 59 } |
60 | 60 |
61 /** | 61 /** |
62 * Creates a new MonitorEnter instruction. | 62 * Creates a new MonitorEnter instruction. |
63 * | 63 * |