# HG changeset patch # User Gilles Duboscq # Date 1377533093 -7200 # Node ID 774e1c2f8741c1686139ec5ac2d336ed6eff8a1f # Parent 966d4517bf58f16d981b156140792bbbdb32d863 Include Graal in some ifdefs related to rbp allocation diff -r 966d4517bf58 -r 774e1c2f8741 src/cpu/x86/vm/frame_x86.cpp --- a/src/cpu/x86/vm/frame_x86.cpp Mon Aug 26 18:03:09 2013 +0200 +++ b/src/cpu/x86/vm/frame_x86.cpp Mon Aug 26 18:04:53 2013 +0200 @@ -461,11 +461,11 @@ // This is the sp before any possible extension (adapter/locals). intptr_t* unextended_sp = interpreter_frame_sender_sp(); -#ifdef COMPILER2 +#if defined(COMPILER2) || defined(GRAAL) if (map->update_map()) { update_map_with_saved_link(map, (intptr_t**) addr_at(link_offset)); } -#endif // COMPILER2 +#endif // COMPILER2 || GRAAL return frame(sender_sp, unextended_sp, link(), sender_pc()); } diff -r 966d4517bf58 -r 774e1c2f8741 src/os_cpu/bsd_x86/vm/thread_bsd_x86.cpp --- a/src/os_cpu/bsd_x86/vm/thread_bsd_x86.cpp Mon Aug 26 18:03:09 2013 +0200 +++ b/src/os_cpu/bsd_x86/vm/thread_bsd_x86.cpp Mon Aug 26 18:04:53 2013 +0200 @@ -66,7 +66,7 @@ frame ret_frame(ret_sp, ret_fp, addr.pc()); if (!ret_frame.safe_for_sender(jt)) { -#ifdef COMPILER2 +#if defined(COMPILER2) || defined(GRAAL) // C2 uses ebp as a general register see if NULL fp helps frame ret_frame2(ret_sp, NULL, addr.pc()); if (!ret_frame2.safe_for_sender(jt)) { @@ -77,7 +77,7 @@ #else // nothing else to try if the frame isn't good return false; -#endif /* COMPILER2 */ +#endif /* COMPILER2 || GRAAL*/ } *fr_addr = ret_frame; return true; diff -r 966d4517bf58 -r 774e1c2f8741 src/os_cpu/linux_x86/vm/thread_linux_x86.cpp --- a/src/os_cpu/linux_x86/vm/thread_linux_x86.cpp Mon Aug 26 18:03:09 2013 +0200 +++ b/src/os_cpu/linux_x86/vm/thread_linux_x86.cpp Mon Aug 26 18:04:53 2013 +0200 @@ -67,7 +67,7 @@ frame ret_frame(ret_sp, ret_fp, addr.pc()); if (!ret_frame.safe_for_sender(jt)) { -#ifdef COMPILER2 +#if defined(COMPILER2) || defined(GRAAL) // C2 uses ebp as a general register see if NULL fp helps frame ret_frame2(ret_sp, NULL, addr.pc()); if (!ret_frame2.safe_for_sender(jt)) { @@ -78,7 +78,7 @@ #else // nothing else to try if the frame isn't good return false; -#endif /* COMPILER2 */ +#endif /* COMPILER2 || GRAAL */ } *fr_addr = ret_frame; return true; diff -r 966d4517bf58 -r 774e1c2f8741 src/os_cpu/windows_x86/vm/thread_windows_x86.cpp --- a/src/os_cpu/windows_x86/vm/thread_windows_x86.cpp Mon Aug 26 18:03:09 2013 +0200 +++ b/src/os_cpu/windows_x86/vm/thread_windows_x86.cpp Mon Aug 26 18:04:53 2013 +0200 @@ -74,7 +74,7 @@ frame ret_frame(ret_sp, ret_fp, addr.pc()); if (!ret_frame.safe_for_sender(jt)) { -#ifdef COMPILER2 +#if defined(COMPILER2) || defined(GRAAL) // C2 uses ebp as a general register see if NULL fp helps frame ret_frame2(ret_sp, NULL, addr.pc()); if (!ret_frame2.safe_for_sender(jt)) { @@ -85,7 +85,7 @@ #else // nothing else to try if the frame isn't good return false; -#endif /* COMPILER2 */ +#endif /* COMPILER2 || GRAAL */ } *fr_addr = ret_frame; return true;