Mercurial > hg > truffle
diff graal/GraalCompiler/src/com/sun/c1x/ir/Instruction.java @ 2799:e1dad0edd57a
first part of loop reworking
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Fri, 27 May 2011 17:48:28 +0200 |
parents | d3fc4fe063bf |
children | c3f64b66fc78 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/Instruction.java Fri May 27 14:20:30 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/Instruction.java Fri May 27 17:48:28 2011 +0200 @@ -46,7 +46,7 @@ private static final int INPUT_COUNT = 0; private static final int SUCCESSOR_COUNT = 1; - private static final int SUCCESSOR_NEXT = 0; + public static final int SUCCESSOR_NEXT = 0; @Override protected int inputCount() { @@ -70,6 +70,10 @@ return successors().set(super.successorCount() + SUCCESSOR_NEXT, next); } + public int nextIndex() { + return super.successorCount() + SUCCESSOR_NEXT; + } + public static final int SYNCHRONIZATION_ENTRY_BCI = -1;