Mercurial > hg > truffle
diff graal/GraalCompiler/src/com/sun/c1x/ir/Unwind.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/Unwind.java Tue May 31 09:51:59 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/Unwind.java Tue May 31 13:34:52 2011 +0200 @@ -64,10 +64,10 @@ return (Value) inputs().set(super.inputCount() + INPUT_EXCEPTION, n); } - public Unwind(Value exception, Graph graph) { + public Unwind(Value exception, Node successor, Graph graph) { super(CiKind.Object, 0, INPUT_COUNT, SUCCESSOR_COUNT, graph); setException(exception); - successors().set(SUCCESSOR_END, graph.end()); + successors().set(SUCCESSOR_END, successor); } @Override @@ -82,7 +82,7 @@ @Override public Node copy(Graph into) { - Unwind x = new Unwind(null, into); + Unwind x = new Unwind(null, null, into); x.setNonNull(isNonNull()); return x; }