Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/ir/LoadIndexed.java @ 2848:c061a6be3728
merge
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Tue, 31 May 2011 15:19:30 +0200 |
parents | bfce42cd9c07 |
children | 14708c03abba |
comparison
equal
deleted
inserted
replaced
2847:caf55daa41dc | 2848:c061a6be3728 |
---|---|
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 } |