AArch64: on Linux, frame link is stored at the top of the frame, while on macOS, frame link is at the bottom.
| 32 | // AArch64: on Linux, frame link is stored at the top of the frame, |
| 33 | // while on macOS, frame link is at the bottom. |
| 34 | static inline uintptr_t defaultSenderSP(uintptr_t sp, uintptr_t fp) { |
| 35 | #ifdef __APPLE__ |
| 36 | return sp + 2 * sizeof(void*); |
| 37 | #else |
| 38 | return fp; |
| 39 | #endif |
| 40 | } |
| 41 | |
| 42 | static inline void fillFrame(ASGCT_CallFrame& frame, ASGCT_CallFrameType type, const char* name) { |
| 43 | frame.bci = type; |