Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
2798:58e65eb6bb5d | 2799:e1dad0edd57a |
---|---|
44 public abstract class Instruction extends Value { | 44 public abstract class Instruction extends Value { |
45 | 45 |
46 private static final int INPUT_COUNT = 0; | 46 private static final int INPUT_COUNT = 0; |
47 | 47 |
48 private static final int SUCCESSOR_COUNT = 1; | 48 private static final int SUCCESSOR_COUNT = 1; |
49 private static final int SUCCESSOR_NEXT = 0; | 49 public static final int SUCCESSOR_NEXT = 0; |
50 | 50 |
51 @Override | 51 @Override |
52 protected int inputCount() { | 52 protected int inputCount() { |
53 return super.inputCount() + INPUT_COUNT; | 53 return super.inputCount() + INPUT_COUNT; |
54 } | 54 } |
66 return (Instruction) successors().get(super.successorCount() + SUCCESSOR_NEXT); | 66 return (Instruction) successors().get(super.successorCount() + SUCCESSOR_NEXT); |
67 } | 67 } |
68 | 68 |
69 private Node setNext(Instruction next) { | 69 private Node setNext(Instruction next) { |
70 return successors().set(super.successorCount() + SUCCESSOR_NEXT, next); | 70 return successors().set(super.successorCount() + SUCCESSOR_NEXT, next); |
71 } | |
72 | |
73 public int nextIndex() { | |
74 return super.successorCount() + SUCCESSOR_NEXT; | |
71 } | 75 } |
72 | 76 |
73 | 77 |
74 public static final int SYNCHRONIZATION_ENTRY_BCI = -1; | 78 public static final int SYNCHRONIZATION_ENTRY_BCI = -1; |
75 | 79 |