# HG changeset patch # User Thomas Wuerthinger # Date 1330380348 -3600 # Node ID 5c41e7002923ea1735ffcd3f58d4ae2863b460dc # Parent b9d5570f2362ec5e05d92dc7255e3340507f7120 Added missing #ifdef GRAAL diff -r b9d5570f2362 -r 5c41e7002923 src/cpu/x86/vm/sharedRuntime_x86_64.cpp --- a/src/cpu/x86/vm/sharedRuntime_x86_64.cpp Mon Feb 27 22:19:24 2012 +0100 +++ b/src/cpu/x86/vm/sharedRuntime_x86_64.cpp Mon Feb 27 23:05:48 2012 +0100 @@ -3002,7 +3002,7 @@ __ bind(no_pending_exception); #endif - // (tw) Start of graal uncommon trap code. +#ifdef GRAAL __ jmp(cont); int jmp_uncommon_trap_offset = __ pc() - start; @@ -3011,21 +3011,11 @@ int uncommon_trap_offset = __ pc() - start; - // Warning: Duplicate code - // Save everything in sight. RegisterSaver::save_live_registers(masm, 0, &frame_size_in_words); - - // Normal deoptimization - - // fetch_unroll_info needs to call last_java_frame() __ set_last_Java_frame(noreg, noreg, NULL); - - // __ movl(c_rarg1, (int32_t)Deoptimization::Unpack_reexecute); - // __ movl(r14, c_rarg1); // save into r14 for later call to unpack_frames - assert(r10 == rscratch1, "scratch register should be r10"); __ movl(c_rarg1, Address(rsp, RegisterSaver::r10_offset_in_bytes())); __ orq(c_rarg1, ~(int32_t)Deoptimization::make_trap_request(Deoptimization::Reason_unreached, Deoptimization::Action_none)); @@ -3033,19 +3023,13 @@ __ movl(r14, (int32_t)Deoptimization::Unpack_reexecute); __ mov(c_rarg0, r15_thread); __ call(RuntimeAddress(CAST_FROM_FN_PTR(address, Deoptimization::uncommon_trap))); - - // Need to have an oopmap that tells fetch_unroll_info where to - // find any register it might need. - oop_maps->add_gc_map( __ pc()-start, map->deep_copy()); __ reset_last_Java_frame(false, false); Label after_fetch_unroll_info_call; __ jmp(after_fetch_unroll_info_call); - - - // (tw) End of graal uncommon trap code. +#endif __ bind(cont);