Mercurial > hg > graal-compiler
diff 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 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/LoadIndexed.java Tue May 31 09:51:59 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/LoadIndexed.java Tue May 31 13:34:52 2011 +0200 @@ -40,12 +40,11 @@ * @param array the instruction producing the array * @param index the instruction producing the index * @param length the instruction producing the length - * @param elementType the element type - * @param stateAfter the after before executing this instruction + * @param elementKind the element type * @param graph */ - public LoadIndexed(Value array, Value index, Value length, CiKind elementType, Graph graph) { - super(elementType.stackKind(), array, index, length, elementType, INPUT_COUNT, SUCCESSOR_COUNT, graph); + public LoadIndexed(Value array, Value index, Value length, CiKind elementKind, Graph graph) { + super(elementKind.stackKind(), array, index, length, elementKind, INPUT_COUNT, SUCCESSOR_COUNT, graph); } /** @@ -88,7 +87,7 @@ @Override public Node copy(Graph into) { - LoadIndexed x = new LoadIndexed(null, null, null, kind, into); + LoadIndexed x = new LoadIndexed(null, null, null, elementKind(), into); x.setNonNull(isNonNull()); return x; }