comparison hotspot/src/cpu/aarch64/vm/frame_aarch64.inline.hpp @ 30552:ff209a4a81b5

8079564: Use FP register as proper frame pointer in JIT compiled code on aarch64 Summary: Add support for PreserveFramePointer for debug/profile Reviewed-by: kvn
author enevill
date Fri, 15 May 2015 09:21:48 +0000
parents d148e1b2fac2
children d86005e0b4c2
comparison
equal deleted inserted replaced
2:682ceec648ba 3:d0b2fc925af3
45 static int spin; 45 static int spin;
46 46
47 inline void frame::init(intptr_t* sp, intptr_t* fp, address pc) { 47 inline void frame::init(intptr_t* sp, intptr_t* fp, address pc) {
48 intptr_t a = intptr_t(sp); 48 intptr_t a = intptr_t(sp);
49 intptr_t b = intptr_t(fp); 49 intptr_t b = intptr_t(fp);
50 #ifndef PRODUCT
51 if (fp)
52 if (sp > fp || (fp - sp > 0x100000))
53 for(;;)
54 asm("nop");
55 #endif
56 _sp = sp; 50 _sp = sp;
57 _unextended_sp = sp; 51 _unextended_sp = sp;
58 _fp = fp; 52 _fp = fp;
59 _pc = pc; 53 _pc = pc;
60 assert(pc != NULL, "no pc?"); 54 assert(pc != NULL, "no pc?");