changeset 4170:6fe63e57244e

Remove unnecessary method
author Christian Wimmer <Christian.Wimmer@Oracle.com>
date Thu, 29 Dec 2011 14:00:57 -0800
parents f5328dda9714
children 78fe92fcde6b
files graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/graphbuilder/FrameStateBuilder.java graal/com.oracle.max.graal.nodes/src/com/oracle/max/graal/nodes/FrameState.java graal/com.oracle.max.graal.nodes/src/com/oracle/max/graal/nodes/spi/FrameStateAccess.java
diffstat 3 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/graphbuilder/FrameStateBuilder.java	Wed Dec 28 18:13:25 2011 -0800
+++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/graphbuilder/FrameStateBuilder.java	Thu Dec 29 14:00:57 2011 -0800
@@ -517,7 +517,6 @@
         return rethrowException;
     }
 
-    @Override
     public void setRethrowException(boolean b) {
         rethrowException = b;
     }
--- a/graal/com.oracle.max.graal.nodes/src/com/oracle/max/graal/nodes/FrameState.java	Wed Dec 28 18:13:25 2011 -0800
+++ b/graal/com.oracle.max.graal.nodes/src/com/oracle/max/graal/nodes/FrameState.java	Thu Dec 29 14:00:57 2011 -0800
@@ -125,6 +125,7 @@
         this.values = new NodeInputList<>(this, localsSize + stackSize + locksSize);
         this.virtualObjectMappings = new NodeInputList<>(this);
         this.rethrowException = rethrowException;
+        assert !rethrowException || stackSize == 1 : "must have exception on top of the stack";
     }
 
     public FrameState(RiResolvedMethod method, int bci, ValueNode[] locals, ValueNode[] stack, int stackSize, List<MonitorObject> locks, boolean rethrowException) {
@@ -146,6 +147,7 @@
         this.values = new NodeInputList<>(this, newValues);
         this.virtualObjectMappings = new NodeInputList<>(this);
         this.rethrowException = rethrowException;
+        assert !rethrowException || stackSize == 1 : "must have exception on top of the stack";
     }
 
     public boolean rethrowException() {
@@ -691,11 +693,6 @@
         return properties;
     }
 
-    @Override
-    public void setRethrowException(boolean b) {
-        rethrowException = b;
-    }
-
     public CiCodePos toCodePos() {
         FrameState caller = outerFrameState();
         CiCodePos callerCodePos = null;
--- a/graal/com.oracle.max.graal.nodes/src/com/oracle/max/graal/nodes/spi/FrameStateAccess.java	Wed Dec 28 18:13:25 2011 -0800
+++ b/graal/com.oracle.max.graal.nodes/src/com/oracle/max/graal/nodes/spi/FrameStateAccess.java	Thu Dec 29 14:00:57 2011 -0800
@@ -44,8 +44,6 @@
 
     ValueNode stackAt(int i);
 
-    void setRethrowException(boolean b);
-
     FrameState outerFrameState();
 
     FrameState duplicateWithException(int bci, ValueNode exceptionObject);