View | Details | Raw Unified | Return to bug 237617
Collapse All | Expand All

(-)files/patch-deps_v8_src_libsampler_sampler.cc (-2 / +6 lines)
Lines 1-6 Link Here
1
--- deps/v8/src/libsampler/sampler.cc.orig	2018-09-10 18:46:55 UTC
1
--- deps/v8/src/libsampler/sampler.cc.orig	2019-04-16 18:59:24 UTC
2
+++ deps/v8/src/libsampler/sampler.cc
2
+++ deps/v8/src/libsampler/sampler.cc
3
@@ -506,9 +506,9 @@ void SignalHandler::FillRegisterState(vo
3
@@ -506,9 +506,13 @@ void SignalHandler::FillRegisterState(void* context, R
4
   state->sp = reinterpret_cast<void*>(mcontext.mc_rsp);
4
   state->sp = reinterpret_cast<void*>(mcontext.mc_rsp);
5
   state->fp = reinterpret_cast<void*>(mcontext.mc_rbp);
5
   state->fp = reinterpret_cast<void*>(mcontext.mc_rbp);
6
 #elif V8_HOST_ARCH_ARM
6
 #elif V8_HOST_ARCH_ARM
Lines 10-15 Link Here
10
+  state->pc = reinterpret_cast<void*>(mcontext.__gregs[_REG_PC]);
10
+  state->pc = reinterpret_cast<void*>(mcontext.__gregs[_REG_PC]);
11
+  state->sp = reinterpret_cast<void*>(mcontext.__gregs[_REG_SP]);
11
+  state->sp = reinterpret_cast<void*>(mcontext.__gregs[_REG_SP]);
12
+  state->fp = reinterpret_cast<void*>(mcontext.__gregs[_REG_FP]);
12
+  state->fp = reinterpret_cast<void*>(mcontext.__gregs[_REG_FP]);
13
+#elif V8_TARGET_ARCH_PPC_BE
14
+  state->pc = reinterpret_cast<void*>(mcontext.mc_srr0);
15
+  state->sp = reinterpret_cast<void*>(mcontext.mc_frame[1]);
16
+  state->fp = reinterpret_cast<void*>(mcontext.mc_frame[31]);
13
 #endif  // V8_HOST_ARCH_*
17
 #endif  // V8_HOST_ARCH_*
14
 #elif V8_OS_NETBSD
18
 #elif V8_OS_NETBSD
15
 #if V8_HOST_ARCH_IA32
19
 #if V8_HOST_ARCH_IA32

Return to bug 237617