diff graal/GraalCompiler/src/com/sun/c1x/ir/StateSplit.java @ 2594:092e628ddd5d

changed Constant and Convert, more StoreIndexed changes
author Lukas Stadler <lukas.stadler@jku.at>
date Thu, 05 May 2011 15:43:23 +0200
parents fec99fc30af1
children f1bc67c2d453
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/StateSplit.java	Thu May 05 15:23:27 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/ir/StateSplit.java	Thu May 05 15:43:23 2011 +0200
@@ -29,11 +29,12 @@
 /**
  * The {@code StateSplit} class is the abstract base class of all instructions
  * that store an immutable copy of the frame state.
- *
- * @author Ben L. Titzer
  */
 public abstract class StateSplit extends Instruction {
 
+    private static final int INPUT_COUNT = 0;
+    private static final int SUCCESSOR_COUNT = 0;
+
     /**
      * Sentinel denoting an explicitly cleared state.
      */
@@ -49,7 +50,7 @@
      * @param graph
      */
     public StateSplit(CiKind kind, FrameState stateBefore, int inputCount, int successorCount, Graph graph) {
-        super(kind, inputCount, successorCount, graph);
+        super(kind, inputCount + INPUT_COUNT, successorCount + SUCCESSOR_COUNT, graph);
         this.stateBefore = stateBefore;
     }