freebsd-ports/www/node10/files/patch-deps_v8_src_libsampler_sampler.cc
Bradley T. Hughes be15e8b611 www/node10: copy from www/node, update 10.12.0_1 -> 10.13.0 (LTS)
Create a new port for the latest Node.js 10.13.0 LTS release. Update
CONFLICTS for the existing Node.js ports to include the new node10 port
and remove non-existent ports.

https://nodejs.org/en/blog/release/v10.13.0/

Sponsored by:	Miles AS
2018-10-31 21:03:48 +00:00

15 lines
746 B
C++

--- deps/v8/src/libsampler/sampler.cc.orig 2018-08-15 13:53:25 UTC
+++ deps/v8/src/libsampler/sampler.cc
@@ -550,9 +550,9 @@ void SignalHandler::FillRegisterState(vo
state->sp = reinterpret_cast<void*>(mcontext.mc_rsp);
state->fp = reinterpret_cast<void*>(mcontext.mc_rbp);
#elif V8_HOST_ARCH_ARM
- state->pc = reinterpret_cast<void*>(mcontext.mc_r15);
- state->sp = reinterpret_cast<void*>(mcontext.mc_r13);
- state->fp = reinterpret_cast<void*>(mcontext.mc_r11);
+ state->pc = reinterpret_cast<void*>(mcontext.__gregs[_REG_PC]);
+ state->sp = reinterpret_cast<void*>(mcontext.__gregs[_REG_SP]);
+ state->fp = reinterpret_cast<void*>(mcontext.__gregs[_REG_FP]);
#endif // V8_HOST_ARCH_*
#elif V8_OS_NETBSD
#if V8_HOST_ARCH_IA32