changeset 4984:5c41e7002923

Added missing #ifdef GRAAL
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Mon, 27 Feb 2012 23:05:48 +0100
parents b9d5570f2362
children 0d2a2797a61f
files src/cpu/x86/vm/sharedRuntime_x86_64.cpp
diffstat 1 files changed, 2 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- 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);