Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/ir/If.java @ 2768:43ffa0e47a46
Towards removing stateAfter on BlockEnd.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Mon, 23 May 2011 19:21:53 +0200 |
parents | ca31e84ff154 |
children | 93fd92c9f8b0 |
comparison
equal
deleted
inserted
replaced
2767:cc2b98e2b832 | 2768:43ffa0e47a46 |
---|---|
78 /** | 78 /** |
79 * Constructs a new If instruction. | 79 * Constructs a new If instruction. |
80 * @param x the instruction producing the first input to the instruction | 80 * @param x the instruction producing the first input to the instruction |
81 * @param cond the condition (comparison operation) | 81 * @param cond the condition (comparison operation) |
82 * @param y the instruction that produces the second input to this instruction | 82 * @param y the instruction that produces the second input to this instruction |
83 * @param trueSucc the block representing the true successor | |
84 * @param falseSucc the block representing the false successor | |
85 * @param stateAfter the state before the branch but after the input values have been popped | 83 * @param stateAfter the state before the branch but after the input values have been popped |
86 * @param graph | 84 * @param graph |
87 */ | 85 */ |
88 public If(Value x, Condition cond, Value y, Instruction trueSucc, Instruction falseSucc, FrameState stateAfter, Graph graph) { | 86 public If(Value x, Condition cond, Value y, FrameState stateAfter, Graph graph) { |
89 super(CiKind.Illegal, stateAfter, 2, INPUT_COUNT, SUCCESSOR_COUNT, graph); | 87 super(CiKind.Illegal, stateAfter, 2, INPUT_COUNT, SUCCESSOR_COUNT, graph); |
90 assert Util.archKindsEqual(x, y); | 88 assert Util.archKindsEqual(x, y); |
91 condition = cond; | 89 condition = cond; |
92 setX(x); | 90 setX(x); |
93 setY(y); | 91 setY(y); |
94 setBlockSuccessor(0, trueSucc); | |
95 setBlockSuccessor(1, falseSucc); | |
96 } | 92 } |
97 | 93 |
98 /** | 94 /** |
99 * Gets the condition (comparison operation) for this instruction. | 95 * Gets the condition (comparison operation) for this instruction. |
100 * @return the condition | 96 * @return the condition |