Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/If.java @ 2712:a0dd2b907806
Removed implicit safepoints.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Thu, 19 May 2011 13:09:37 +0200 |
parents | 3558ca7088c0 |
children | 6048da340364 |
comparison
equal
deleted
inserted
replaced
2708:4272b7af2d17 | 2712:a0dd2b907806 |
---|---|
85 * @param stateAfter the state before the branch but after the input values have been popped | 85 * @param stateAfter the state before the branch but after the input values have been popped |
86 * @param isSafepoint {@code true} if this branch should be considered a safepoint | 86 * @param isSafepoint {@code true} if this branch should be considered a safepoint |
87 * @param graph | 87 * @param graph |
88 */ | 88 */ |
89 public If(Value x, Condition cond, Value y, | 89 public If(Value x, Condition cond, Value y, |
90 BlockBegin trueSucc, BlockBegin falseSucc, FrameState stateAfter, boolean isSafepoint, Graph graph) { | 90 BlockBegin trueSucc, BlockBegin falseSucc, FrameState stateAfter, Graph graph) { |
91 super(CiKind.Illegal, stateAfter, isSafepoint, 2, INPUT_COUNT, SUCCESSOR_COUNT, graph); | 91 super(CiKind.Illegal, stateAfter, 2, INPUT_COUNT, SUCCESSOR_COUNT, graph); |
92 assert Util.archKindsEqual(x, y); | 92 assert Util.archKindsEqual(x, y); |
93 condition = cond; | 93 condition = cond; |
94 setX(x); | 94 setX(x); |
95 setY(y); | 95 setY(y); |
96 setBlockSuccessor(0, trueSucc); | 96 setBlockSuccessor(0, trueSucc); |
185 print(y()). | 185 print(y()). |
186 print(" then B"). | 186 print(" then B"). |
187 print(blockSuccessors().get(0).blockID). | 187 print(blockSuccessors().get(0).blockID). |
188 print(" else B"). | 188 print(" else B"). |
189 print(blockSuccessors().get(1).blockID); | 189 print(blockSuccessors().get(1).blockID); |
190 if (isSafepoint()) { | |
191 out.print(" (safepoint)"); | |
192 } | |
193 } | 190 } |
194 | 191 |
195 @Override | 192 @Override |
196 public String shortName() { | 193 public String shortName() { |
197 return "If " + condition.operator; | 194 return "If " + condition.operator; |