diff graal/GraalCompiler/src/com/sun/c1x/ir/Deoptimize.java @ 2709:7b7dbe19fafb

Remove all unresolved cases from HotspotXirGenerator, use more explicit Deopt, Deopt to lastState instead of stateBefore
author Gilles Duboscq <gilles.duboscq@oracle.com>
date Thu, 19 May 2011 11:36:41 +0200
parents d8601d421b96
children 27512ea6bbcb
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/Deoptimize.java	Wed May 18 11:53:06 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/ir/Deoptimize.java	Thu May 19 11:36:41 2011 +0200
@@ -24,7 +24,6 @@
 
 import com.oracle.graal.graph.*;
 import com.sun.c1x.debug.*;
-import com.sun.c1x.value.*;
 import com.sun.cri.ci.*;
 
 
@@ -33,9 +32,8 @@
  */
 public class Deoptimize extends Instruction {
 
-    private static final int INPUT_COUNT = 1;
+    private static final int INPUT_COUNT = 0;
     private static final int SUCCESSOR_COUNT = 0;
-    private static final int INPUT_STATE_BEFORE = 0;
 
     /**
      * @param kind
@@ -43,30 +41,8 @@
      * @param successorCount
      * @param graph
      */
-    public Deoptimize(Graph graph, FrameState stateBefore) {
+    public Deoptimize(Graph graph) {
         super(CiKind.Illegal, INPUT_COUNT, SUCCESSOR_COUNT, graph);
-        this.setStateBefore(stateBefore);
-    }
-
-    @Override
-    protected int inputCount() {
-        return super.inputCount() + INPUT_COUNT;
-    }
-
-    @Override
-    protected int successorCount() {
-        return super.successorCount() + SUCCESSOR_COUNT;
-    }
-
-    /**
-     * The state for this instruction.
-     */
-    public FrameState stateBefore() {
-        return (FrameState) inputs().get(super.inputCount() + INPUT_STATE_BEFORE);
-    }
-
-    public FrameState setStateBefore(FrameState n) {
-        return (FrameState) inputs().set(super.inputCount() + INPUT_STATE_BEFORE, n);
     }
 
     @Override