# HG changeset patch # User Christian Wimmer # Date 1325196057 28800 # Node ID 6fe63e57244e18788482a08214f75e39ed83eafd # Parent f5328dda971440ab3d5feaa72febb6beeb40900e Remove unnecessary method diff -r f5328dda9714 -r 6fe63e57244e graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/graphbuilder/FrameStateBuilder.java --- 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; } diff -r f5328dda9714 -r 6fe63e57244e graal/com.oracle.max.graal.nodes/src/com/oracle/max/graal/nodes/FrameState.java --- 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 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; diff -r f5328dda9714 -r 6fe63e57244e graal/com.oracle.max.graal.nodes/src/com/oracle/max/graal/nodes/spi/FrameStateAccess.java --- 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);