# HG changeset patch # User Thomas Wuerthinger # Date 1362513679 -3600 # Node ID 30b3a966562e2a25efd45d7cd8c0278527c05636 # Parent 921868af6d6b57f6ac7344e91897f7106e5b6d9e Remove debug stub. diff -r 921868af6d6b -r 30b3a966562e graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64DeoptimizationStub.java --- a/graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64DeoptimizationStub.java Tue Mar 05 20:45:39 2013 +0100 +++ b/graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64DeoptimizationStub.java Tue Mar 05 21:01:19 2013 +0100 @@ -52,7 +52,6 @@ masm.bind(label); masm.movl(scratch, tasm.runtime.encodeDeoptActionAndReason(action, reason)); AMD64Call.directCall(tasm, masm, tasm.runtime.lookupRuntimeCall(DEOPTIMIZE), info); - AMD64Call.shouldNotReachHere(tasm, masm); } @Override diff -r 921868af6d6b -r 30b3a966562e graal/com.oracle.graal.hotspot.amd64/src/com/oracle/graal/hotspot/amd64/AMD64HotSpotBackend.java --- a/graal/com.oracle.graal.hotspot.amd64/src/com/oracle/graal/hotspot/amd64/AMD64HotSpotBackend.java Tue Mar 05 20:45:39 2013 +0100 +++ b/graal/com.oracle.graal.hotspot.amd64/src/com/oracle/graal/hotspot/amd64/AMD64HotSpotBackend.java Tue Mar 05 21:01:19 2013 +0100 @@ -289,11 +289,9 @@ if (!frameOmitted) { tasm.recordMark(Marks.MARK_EXCEPTION_HANDLER_ENTRY); AMD64Call.directCall(tasm, asm, runtime().lookupRuntimeCall(EXCEPTION_HANDLER), null); - AMD64Call.shouldNotReachHere(tasm, asm); tasm.recordMark(Marks.MARK_DEOPT_HANDLER_ENTRY); AMD64Call.directCall(tasm, asm, runtime().lookupRuntimeCall(DEOPT_HANDLER), null); - AMD64Call.shouldNotReachHere(tasm, asm); } else { // No need to emit the stubs for entries back into the method since // it has no calls that can cause such "return" entries diff -r 921868af6d6b -r 30b3a966562e graal/com.oracle.graal.hotspot.amd64/src/com/oracle/graal/hotspot/amd64/AMD64HotSpotRuntime.java --- a/graal/com.oracle.graal.hotspot.amd64/src/com/oracle/graal/hotspot/amd64/AMD64HotSpotRuntime.java Tue Mar 05 20:45:39 2013 +0100 +++ b/graal/com.oracle.graal.hotspot.amd64/src/com/oracle/graal/hotspot/amd64/AMD64HotSpotRuntime.java Tue Mar 05 21:01:19 2013 +0100 @@ -60,10 +60,6 @@ /* temps */ null, /* ret */ ret(Kind.Void)); - addRuntimeCall(DEBUG, config.debugStub, - /* temps */ null, - /* ret */ ret(Kind.Void)); - addRuntimeCall(ARITHMETIC_FREM, config.arithmeticFremStub, /* temps */ null, /* ret */ ret(Kind.Float), diff -r 921868af6d6b -r 30b3a966562e graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotVMConfig.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotVMConfig.java Tue Mar 05 20:45:39 2013 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotVMConfig.java Tue Mar 05 21:01:19 2013 +0100 @@ -304,7 +304,6 @@ public int typeProfileWidth; // runtime stubs - public long debugStub; public long instanceofStub; public long newInstanceStub; public long newArrayStub; diff -r 921868af6d6b -r 30b3a966562e graal/com.oracle.graal.lir.amd64/src/com/oracle/graal/lir/amd64/AMD64Call.java --- a/graal/com.oracle.graal.lir.amd64/src/com/oracle/graal/lir/amd64/AMD64Call.java Tue Mar 05 20:45:39 2013 +0100 +++ b/graal/com.oracle.graal.lir.amd64/src/com/oracle/graal/lir/amd64/AMD64Call.java Tue Mar 05 21:01:19 2013 +0100 @@ -35,8 +35,6 @@ public class AMD64Call { - public static final Descriptor DEBUG = new Descriptor("debug", false, void.class); - @Opcode("CALL_DIRECT") public static class DirectCallOp extends AMD64LIRInstruction implements StandardOp.CallOp { @@ -142,14 +140,4 @@ tasm.recordExceptionHandlers(after, info); masm.ensureUniquePC(); } - - public static void shouldNotReachHere(TargetMethodAssembler tasm, AMD64MacroAssembler masm) { - boolean assertions = false; - assert (assertions = true) == true; - - if (assertions) { - directCall(tasm, masm, tasm.runtime.lookupRuntimeCall(DEBUG), null); - masm.hlt(); - } - } } diff -r 921868af6d6b -r 30b3a966562e src/share/vm/graal/graalCompilerToVM.cpp --- a/src/share/vm/graal/graalCompilerToVM.cpp Tue Mar 05 20:45:39 2013 +0100 +++ b/src/share/vm/graal/graalCompilerToVM.cpp Tue Mar 05 21:01:19 2013 +0100 @@ -706,7 +706,6 @@ set_int("layoutHelperHeaderSizeMask", Klass::_lh_header_size_mask); set_int("layoutHelperOffset", in_bytes(Klass::layout_helper_offset())); - set_stub("debugStub", (address)warning); set_stub("instanceofStub", GraalRuntime::entry_for(GraalRuntime::slow_subtype_check_id)); set_stub("newInstanceStub", GraalRuntime::entry_for(GraalRuntime::new_instance_id)); set_stub("newArrayStub", GraalRuntime::entry_for(GraalRuntime::new_array_id));