Mercurial > hg > graal-compiler
diff graal/GraalCompiler/src/com/sun/c1x/ir/TypeCheck.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 | f9f40748442f |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/TypeCheck.java Tue May 10 11:55:12 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/TypeCheck.java Tue May 10 12:37:46 2011 +0200 @@ -23,14 +23,13 @@ package com.sun.c1x.ir; import com.oracle.graal.graph.*; -import com.sun.c1x.value.*; import com.sun.cri.ci.*; import com.sun.cri.ri.*; /** * The {@code TypeCheck} instruction is the base class of casts and instanceof tests. */ -public abstract class TypeCheck extends StateSplit { +public abstract class TypeCheck extends Instruction { private static final int INPUT_COUNT = 2; private static final int INPUT_OBJECT = 0; @@ -82,8 +81,8 @@ * @param successorCount * @param graph */ - public TypeCheck(RiType targetClass, Value targetClassInstruction, Value object, CiKind kind, FrameState stateBefore, int inputCount, int successorCount, Graph graph) { - super(kind, stateBefore, inputCount + INPUT_COUNT, successorCount + SUCCESSOR_COUNT, graph); + public TypeCheck(RiType targetClass, Value targetClassInstruction, Value object, CiKind kind, int inputCount, int successorCount, Graph graph) { + super(kind, inputCount + INPUT_COUNT, successorCount + SUCCESSOR_COUNT, graph); this.targetClass = targetClass; setObject(object); setTargetClassInstruction(targetClassInstruction);