Mercurial > hg > graal-jvmci-8
diff graal/GraalCompiler/src/com/sun/c1x/ir/NullCheck.java @ 2622:91d3952f7eb7
Framestate work : using stateAFter and reducting the number of nodes with framestates. Intermediate state (does not pass tests)
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Tue, 10 May 2011 12:37:46 +0200 |
parents | f1bc67c2d453 |
children | 440ceca8e3d7 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/NullCheck.java Tue May 10 11:55:12 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/NullCheck.java Tue May 10 12:37:46 2011 +0200 @@ -25,14 +25,13 @@ import com.oracle.graal.graph.*; import com.sun.c1x.debug.*; import com.sun.c1x.util.*; -import com.sun.c1x.value.*; import com.sun.cri.bytecode.*; import com.sun.cri.ri.*; /** * The {@code NullCheck} class represents an explicit null check instruction. */ -public final class NullCheck extends StateSplit { +public final class NullCheck extends Instruction { private static final int INPUT_COUNT = 1; private static final int INPUT_OBJECT = 0; @@ -66,8 +65,8 @@ * @param stateBefore the state before executing the null check * @param graph */ - public NullCheck(Value object, FrameState stateBefore, Graph graph) { - super(object.kind, stateBefore, INPUT_COUNT, SUCCESSOR_COUNT, graph); + public NullCheck(Value object, Graph graph) { + super(object.kind, INPUT_COUNT, SUCCESSOR_COUNT, graph); setFlag(Flag.NonNull); setObject(object); }