aboutsummaryrefslogtreecommitdiff
path: root/www/node10
diff options
context:
space:
mode:
authorBradley T. Hughes <bhughes@FreeBSD.org>2019-05-08 19:08:34 +0000
committerBradley T. Hughes <bhughes@FreeBSD.org>2019-05-08 19:08:34 +0000
commit0671924f5c81a6f65a9ac8810c3a001c0ac0b2fe (patch)
tree76ccc796d1a438685dce139b89248142b8d25a08 /www/node10
parent170bab3cc04d122cb5376091cb782dd262ecb552 (diff)
downloadports-0671924f5c81a6f65a9ac8810c3a001c0ac0b2fe.tar.gz
ports-0671924f5c81a6f65a9ac8810c3a001c0ac0b2fe.zip
www/node10: add registers used by powerpc64 to sampler
Add missing registers used by powerpc64. PR: 237618 Submitted by: pkubaj Sponsored by: Miles AS
Notes
Notes: svn path=/head/; revision=501037
Diffstat (limited to 'www/node10')
-rw-r--r--www/node10/files/patch-deps_v8_src_libsampler_sampler.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/www/node10/files/patch-deps_v8_src_libsampler_sampler.cc b/www/node10/files/patch-deps_v8_src_libsampler_sampler.cc
index 1d8c08afc8e4..1548b15aae4b 100644
--- a/www/node10/files/patch-deps_v8_src_libsampler_sampler.cc
+++ b/www/node10/files/patch-deps_v8_src_libsampler_sampler.cc
@@ -1,6 +1,6 @@
---- deps/v8/src/libsampler/sampler.cc.orig 2018-08-15 13:53:25 UTC
+--- deps/v8/src/libsampler/sampler.cc.orig 2019-03-05 15:16:28 UTC
+++ deps/v8/src/libsampler/sampler.cc
-@@ -550,9 +550,9 @@ void SignalHandler::FillRegisterState(vo
+@@ -550,9 +550,13 @@ void SignalHandler::FillRegisterState(void* context, R
state->sp = reinterpret_cast<void*>(mcontext.mc_rsp);
state->fp = reinterpret_cast<void*>(mcontext.mc_rbp);
#elif V8_HOST_ARCH_ARM
@@ -10,6 +10,10 @@
+ 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]);
++#elif V8_TARGET_ARCH_PPC_BE
++ state->pc = reinterpret_cast<void*>(mcontext.mc_srr0);
++ state->sp = reinterpret_cast<void*>(mcontext.mc_frame[1]);
++ state->fp = reinterpret_cast<void*>(mcontext.mc_frame[31]);
#endif // V8_HOST_ARCH_*
#elif V8_OS_NETBSD
#if V8_HOST_ARCH_IA32