Skip to content

Commit

Permalink
libsampler: support powerpc-darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Nov 5, 2023
1 parent 0861bd4 commit 8da32be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion deps/v8/src/libsampler/sampler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,12 @@ void SignalHandler::FillRegisterState(void* context, RegisterState* state) {
state->pc = reinterpret_cast<void*>(mcontext->__ss.__eip);
state->sp = reinterpret_cast<void*>(mcontext->__ss.__esp);
state->fp = reinterpret_cast<void*>(mcontext->__ss.__ebp);
#endif // V8_HOST_ARCH_IA32
#elif V8_HOST_ARCH_PPC || V8_HOST_ARCH_PPC64
state->pc = reinterpret_cast<void*>(mcontext->__ss.__srr0);
state->sp = reinterpret_cast<void*>(mcontext->__ss.__r1);
state->fp = reinterpret_cast<void*>(mcontext->__ss.__r30);
state->lr = reinterpret_cast<void*>(mcontext->__ss.__lr);
#endif // V8_HOST_ARCH_*
#elif V8_OS_FREEBSD
#if V8_HOST_ARCH_IA32
state->pc = reinterpret_cast<void*>(mcontext.mc_eip);
Expand Down

0 comments on commit 8da32be

Please sign in to comment.