Mercurial > hg > graal-jvmci-8
diff graal/GraalCompiler/src/com/sun/c1x/ir/NullCheck.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 | c1c8a0291771 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/NullCheck.java Tue May 31 09:51:59 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/NullCheck.java Tue May 31 13:34:52 2011 +0200 @@ -26,6 +26,7 @@ import com.sun.c1x.debug.*; import com.sun.c1x.util.*; import com.sun.cri.bytecode.*; +import com.sun.cri.ci.*; import com.sun.cri.ri.*; /** @@ -71,6 +72,12 @@ setObject(object); } + // for copying + private NullCheck(CiKind kind, Graph graph) { + super(kind, INPUT_COUNT, SUCCESSOR_COUNT, graph); + setNonNull(true); + } + @Override public void accept(ValueVisitor v) { v.visitNullCheck(this); @@ -109,7 +116,7 @@ @Override public Node copy(Graph into) { - NullCheck x = new NullCheck(null, into); + NullCheck x = new NullCheck(kind, into); x.setNonNull(isNonNull()); return x; }