opnsense-ports/www/node/files/patch-deps_v8_src_profiler_sampler.cc
Franco Fichtner 5e8102d3b8 */*: sync with upstream
Taken from: FreeBSD
2016-06-30 07:11:11 +02:00

15 lines
750 B
C++

--- deps/v8/src/profiler/sampler.cc.orig 2016-06-02 21:53:46 UTC
+++ deps/v8/src/profiler/sampler.cc
@@ -515,9 +515,9 @@ void SignalHandler::HandleProfilerSignal
state.sp = reinterpret_cast<Address>(mcontext.mc_rsp);
state.fp = reinterpret_cast<Address>(mcontext.mc_rbp);
#elif V8_HOST_ARCH_ARM
- state.pc = reinterpret_cast<Address>(mcontext.mc_r15);
- state.sp = reinterpret_cast<Address>(mcontext.mc_r13);
- state.fp = reinterpret_cast<Address>(mcontext.mc_r11);
+ state.pc = reinterpret_cast<Address>(mcontext.__gregs[_REG_PC]);
+ state.sp = reinterpret_cast<Address>(mcontext.__gregs[_REG_SP]);
+ state.fp = reinterpret_cast<Address>(mcontext.__gregs[_REG_FP]);
#endif // V8_HOST_ARCH_*
#elif V8_OS_NETBSD
#if V8_HOST_ARCH_IA32