Lines 1-6
Link Here
|
1 |
--- deps/v8/src/libsampler/sampler.cc.orig 2019-04-23 12:30:43 UTC |
1 |
--- deps/v8/src/libsampler/sampler.cc.orig 2019-04-23 12:30:43 UTC |
2 |
+++ deps/v8/src/libsampler/sampler.cc |
2 |
+++ deps/v8/src/libsampler/sampler.cc |
3 |
@@ -466,9 +466,9 @@ void SignalHandler::FillRegisterState(void* context, R |
3 |
@@ -466,9 +466,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 |