ports/www/node8/files/patch-deps_v8_src_libsampler_sampler.cc
Bradley T. Hughes 5118a33e89 www/node8: Update 8.11.4_1 -> 8.12.0
- drop b8f47b27571f.patch, which has been applied upstream
- refresh patches with `make makepatch`

https://nodejs.org/en/blog/release/v8.12.0/

Sponsored by:	Miles AS
2018-09-14 03:49:54 +00:00

15 lines
746 B
C++

--- deps/v8/src/libsampler/sampler.cc.orig 2018-09-10 18:46:55 UTC
+++ deps/v8/src/libsampler/sampler.cc
@@ -506,9 +506,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