Mercurial > hg > graal-jvmci-8
diff graal/GraalCompiler/src/com/sun/c1x/ir/Return.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 | 75e0d39833a0 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/Return.java Tue May 31 09:51:59 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/Return.java Tue May 31 13:34:52 2011 +0200 @@ -75,6 +75,11 @@ successors().set(SUCCESSOR_END, graph.end()); } + // for copying + private Return(CiKind kind, Graph graph) { + super(kind, 0, INPUT_COUNT, SUCCESSOR_COUNT, graph); + } + @Override public void accept(ValueVisitor v) { v.visitReturn(this); @@ -91,7 +96,7 @@ @Override public Node copy(Graph into) { - Return x = new Return(null, into); + Return x = new Return(kind, into); x.setNonNull(isNonNull()); return x; }