comparison src/os_cpu/windows_x86/vm/thread_windows_x86.cpp @ 11422:774e1c2f8741

Include Graal in some ifdefs related to rbp allocation
author Gilles Duboscq <duboscq@ssw.jku.at>
date Mon, 26 Aug 2013 18:04:53 +0200
parents f2110083203d
children 359f7e70ae7f
comparison
equal deleted inserted replaced
11421:966d4517bf58 11422:774e1c2f8741
72 return false; 72 return false;
73 } 73 }
74 74
75 frame ret_frame(ret_sp, ret_fp, addr.pc()); 75 frame ret_frame(ret_sp, ret_fp, addr.pc());
76 if (!ret_frame.safe_for_sender(jt)) { 76 if (!ret_frame.safe_for_sender(jt)) {
77 #ifdef COMPILER2 77 #if defined(COMPILER2) || defined(GRAAL)
78 // C2 uses ebp as a general register see if NULL fp helps 78 // C2 uses ebp as a general register see if NULL fp helps
79 frame ret_frame2(ret_sp, NULL, addr.pc()); 79 frame ret_frame2(ret_sp, NULL, addr.pc());
80 if (!ret_frame2.safe_for_sender(jt)) { 80 if (!ret_frame2.safe_for_sender(jt)) {
81 // nothing else to try if the frame isn't good 81 // nothing else to try if the frame isn't good
82 return false; 82 return false;
83 } 83 }
84 ret_frame = ret_frame2; 84 ret_frame = ret_frame2;
85 #else 85 #else
86 // nothing else to try if the frame isn't good 86 // nothing else to try if the frame isn't good
87 return false; 87 return false;
88 #endif /* COMPILER2 */ 88 #endif /* COMPILER2 || GRAAL */
89 } 89 }
90 *fr_addr = ret_frame; 90 *fr_addr = ret_frame;
91 return true; 91 return true;
92 } 92 }
93 93