Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/LoadIndexed.java @ 2834:bfce42cd9c07
Graph duplication now passes all tests
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Tue, 31 May 2011 13:34:52 +0200 |
parents | bd17ac598c6e |
children | 14708c03abba |
comparison
equal
deleted
inserted
replaced
2829:27c00b180416 | 2834:bfce42cd9c07 |
---|---|
38 /** | 38 /** |
39 * Creates a new LoadIndexed instruction. | 39 * Creates a new LoadIndexed instruction. |
40 * @param array the instruction producing the array | 40 * @param array the instruction producing the array |
41 * @param index the instruction producing the index | 41 * @param index the instruction producing the index |
42 * @param length the instruction producing the length | 42 * @param length the instruction producing the length |
43 * @param elementType the element type | 43 * @param elementKind the element type |
44 * @param stateAfter the after before executing this instruction | |
45 * @param graph | 44 * @param graph |
46 */ | 45 */ |
47 public LoadIndexed(Value array, Value index, Value length, CiKind elementType, Graph graph) { | 46 public LoadIndexed(Value array, Value index, Value length, CiKind elementKind, Graph graph) { |
48 super(elementType.stackKind(), array, index, length, elementType, INPUT_COUNT, SUCCESSOR_COUNT, graph); | 47 super(elementKind.stackKind(), array, index, length, elementKind, INPUT_COUNT, SUCCESSOR_COUNT, graph); |
49 } | 48 } |
50 | 49 |
51 /** | 50 /** |
52 * Gets the declared type of this instruction's result. | 51 * Gets the declared type of this instruction's result. |
53 * @return the declared type | 52 * @return the declared type |
86 return false; | 85 return false; |
87 } | 86 } |
88 | 87 |
89 @Override | 88 @Override |
90 public Node copy(Graph into) { | 89 public Node copy(Graph into) { |
91 LoadIndexed x = new LoadIndexed(null, null, null, kind, into); | 90 LoadIndexed x = new LoadIndexed(null, null, null, elementKind(), into); |
92 x.setNonNull(isNonNull()); | 91 x.setNonNull(isNonNull()); |
93 return x; | 92 return x; |
94 } | 93 } |
95 } | 94 } |