Skip to content

Commit cf71540

Browse files
nicoCommit Bot
authored and
Commit Bot
committed
mac/arm64: Port SignalHandler::FillRegisterState().
Bug: chromium:1098899 Change-Id: I3ff79c00063f7da36b141a3a7b0d2daa71c9801a Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2270705 Commit-Queue: Peter Marshall <[email protected]> Reviewed-by: Peter Marshall <[email protected]> Auto-Submit: Nico Weber <[email protected]> Cr-Commit-Position: refs/heads/master@{#68568}
1 parent 3045656 commit cf71540

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/libsampler/sampler.cc

+8-1
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,14 @@ void SignalHandler::FillRegisterState(void* context, RegisterState* state) {
468468
state->pc = reinterpret_cast<void*>(mcontext->__ss.__eip);
469469
state->sp = reinterpret_cast<void*>(mcontext->__ss.__esp);
470470
state->fp = reinterpret_cast<void*>(mcontext->__ss.__ebp);
471-
#endif // V8_HOST_ARCH_IA32
471+
#elif V8_HOST_ARCH_ARM64
472+
state->pc =
473+
reinterpret_cast<void*>(arm_thread_state64_get_pc(mcontext->__ss));
474+
state->sp =
475+
reinterpret_cast<void*>(arm_thread_state64_get_sp(mcontext->__ss));
476+
state->fp =
477+
reinterpret_cast<void*>(arm_thread_state64_get_fp(mcontext->__ss));
478+
#endif // V8_HOST_ARCH_*
472479
#elif V8_OS_FREEBSD
473480
#if V8_HOST_ARCH_IA32
474481
state->pc = reinterpret_cast<void*>(mcontext.mc_eip);

0 commit comments

Comments
 (0)