# HG changeset patch # User Gilles Duboscq # Date 1398189125 -7200 # Node ID cb16b744e1b573d7ce7c73d8df4fa5505af8c48f # Parent 051935b55555db6e471218d1a4d9f3fec8c679a3 Move HotSpot-specific assertion from DebugInfoBuilder.computeFrameForState to HotSpotDebugInfoBuilder diff -r 051935b55555 -r cb16b744e1b5 graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/DebugInfoBuilder.java --- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/DebugInfoBuilder.java Tue Apr 22 18:54:03 2014 +0200 +++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/gen/DebugInfoBuilder.java Tue Apr 22 19:52:05 2014 +0200 @@ -129,7 +129,6 @@ if (state.outerFrameState() != null) { caller = computeFrameForState(state.outerFrameState()); } - assert state.bci >= BytecodeFrame.BEFORE_BCI : "bci == " + state.bci; return new BytecodeFrame(caller, state.method(), state.bci, state.rethrowException(), state.duringCall(), values, numLocals, numStack, numLocks); } diff -r 051935b55555 -r cb16b744e1b5 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotDebugInfoBuilder.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotDebugInfoBuilder.java Tue Apr 22 18:54:03 2014 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotDebugInfoBuilder.java Tue Apr 22 19:52:05 2014 +0200 @@ -64,4 +64,10 @@ protected LIRFrameState newLIRFrameState(LabelRef exceptionEdge, BytecodeFrame frame, VirtualObject[] virtualObjectsArray) { return new HotSpotLIRFrameState(frame, virtualObjectsArray, exceptionEdge); } + + @Override + protected BytecodeFrame computeFrameForState(FrameState state) { + assert state.bci >= 0 || state.bci == BytecodeFrame.BEFORE_BCI; + return super.computeFrameForState(state); + } }