235 |
235 |
236 frame os::get_sender_for_C_frame(frame* fr) { |
236 frame os::get_sender_for_C_frame(frame* fr) { |
237 return frame(fr->sender_sp(), fr->link(), fr->sender_pc()); |
237 return frame(fr->sender_sp(), fr->link(), fr->sender_pc()); |
238 } |
238 } |
239 |
239 |
|
240 extern "C" intptr_t *_get_current_sp(); // in .il file |
|
241 |
|
242 address os::current_stack_pointer() { |
|
243 return (address)_get_current_sp(); |
|
244 } |
|
245 |
240 extern "C" intptr_t *_get_current_fp(); // in .il file |
246 extern "C" intptr_t *_get_current_fp(); // in .il file |
241 |
247 |
242 frame os::current_frame() { |
248 frame os::current_frame() { |
243 intptr_t* fp = _get_current_fp(); // it's inlined so want current fp |
249 intptr_t* fp = _get_current_fp(); // it's inlined so want current fp |
244 frame myframe((intptr_t*)os::current_stack_pointer(), |
250 frame myframe((intptr_t*)os::current_stack_pointer(), |