Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/ArrayLength.java @ 2622:91d3952f7eb7
Framestate work : using stateAFter and reducting the number of nodes with framestates. Intermediate state (does not pass tests)
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Tue, 10 May 2011 12:37:46 +0200 |
parents | fec99fc30af1 |
children | 569228710be8 |
comparison
equal
deleted
inserted
replaced
2621:dd115f80acf8 | 2622:91d3952f7eb7 |
---|---|
40 private static final int SUCCESSOR_COUNT = 0; | 40 private static final int SUCCESSOR_COUNT = 0; |
41 | 41 |
42 /** | 42 /** |
43 * Constructs a new ArrayLength instruction. | 43 * Constructs a new ArrayLength instruction. |
44 * @param array the instruction producing the array | 44 * @param array the instruction producing the array |
45 * @param newFrameState the state before executing this instruction | 45 * @param newFrameState the state after executing this instruction |
46 */ | 46 */ |
47 public ArrayLength(Value array, FrameState newFrameState, Graph graph) { | 47 public ArrayLength(Value array, FrameState stateAfter, Graph graph) { |
48 super(CiKind.Int, array, newFrameState, INPUT_COUNT, SUCCESSOR_COUNT, graph); | 48 super(CiKind.Int, array, stateAfter, INPUT_COUNT, SUCCESSOR_COUNT, graph); |
49 } | 49 } |
50 | 50 |
51 @Override | 51 @Override |
52 public void accept(ValueVisitor v) { | 52 public void accept(ValueVisitor v) { |
53 v.visitArrayLength(this); | 53 v.visitArrayLength(this); |