You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
825 B

  1. --- a/deps/v8/src/libsampler/sampler.cc
  2. +++ b/deps/v8/src/libsampler/sampler.cc
  3. @@ -456,8 +456,12 @@
  4. reinterpret_cast<void*>(ucontext->uc_mcontext.regs->gpr[PT_R1]);
  5. state->fp =
  6. reinterpret_cast<void*>(ucontext->uc_mcontext.regs->gpr[PT_R31]);
  7. -#else
  8. +#elif V8_TARGET_ARCH_32_BIT
  9. // Some C libraries, notably Musl, define the regs member as a void pointer
  10. + state->pc = reinterpret_cast<void*>(ucontext->uc_mcontext.gregs[32]);
  11. + state->sp = reinterpret_cast<void*>(ucontext->uc_mcontext.gregs[1]);
  12. + state->fp = reinterpret_cast<void*>(ucontext->uc_mcontext.gregs[31]);
  13. +#else
  14. state->pc = reinterpret_cast<void*>(ucontext->uc_mcontext.gp_regs[32]);
  15. state->sp = reinterpret_cast<void*>(ucontext->uc_mcontext.gp_regs[1]);
  16. state->fp = reinterpret_cast<void*>(ucontext->uc_mcontext.gp_regs[31]);