Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/graph/CriticalEdgeFinder.java @ 2796:d6bf240963fb
Rename Goto to Anchor
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Fri, 27 May 2011 11:42:16 +0200 |
parents | 50677668afe3 |
children | 2af109bec0c0 |
comparison
equal
deleted
inserted
replaced
2795:0fd105ff30f1 | 2796:d6bf240963fb |
---|---|
102 // create new successor and mark it for special block order treatment | 102 // create new successor and mark it for special block order treatment |
103 LIRBlock newSucc = new LIRBlock(lirBlocks.size()); | 103 LIRBlock newSucc = new LIRBlock(lirBlocks.size()); |
104 lirBlocks.add(newSucc); | 104 lirBlocks.add(newSucc); |
105 | 105 |
106 // This goto is not a safepoint. | 106 // This goto is not a safepoint. |
107 Goto e = new Goto(null, graph); | 107 Anchor e = new Anchor(null, graph); |
108 Instruction sourceInstruction = source.getInstructions().get(source.getInstructions().size() - 1); | 108 Instruction sourceInstruction = source.getInstructions().get(source.getInstructions().size() - 1); |
109 Instruction targetInstruction = target.getInstructions().get(0); | 109 Instruction targetInstruction = target.getInstructions().get(0); |
110 int sourceInstructionPredIndex = targetInstruction.predecessors().indexOf(sourceInstruction); | 110 int sourceInstructionPredIndex = targetInstruction.predecessors().indexOf(sourceInstruction); |
111 int replacedIndex = targetInstruction.predecessorsIndex().get(sourceInstructionPredIndex); | 111 int replacedIndex = targetInstruction.predecessorsIndex().get(sourceInstructionPredIndex); |
112 assert replacedIndex != -1 && sourceInstruction.successors().get(replacedIndex) != null; | 112 assert replacedIndex != -1 && sourceInstruction.successors().get(replacedIndex) != null; |