aboutsummaryrefslogtreecommitdiffstats
path: root/lang/v8
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2016-01-19 22:23:24 +0800
committersunpoet <sunpoet@FreeBSD.org>2016-01-19 22:23:24 +0800
commit0d402668f83c435f64bf346b43610285c01acdb3 (patch)
tree9b82d483487a09732a559db0689b67e36b8bfcf8 /lang/v8
parent373381a77a799f713492a43d702a6009312316e2 (diff)
downloadfreebsd-ports-gnome-0d402668f83c435f64bf346b43610285c01acdb3.tar.gz
freebsd-ports-gnome-0d402668f83c435f64bf346b43610285c01acdb3.tar.zst
freebsd-ports-gnome-0d402668f83c435f64bf346b43610285c01acdb3.zip
- Fix build with Clang 3.7.0+
PR: 206332 Submitted by: dim
Diffstat (limited to 'lang/v8')
-rw-r--r--lang/v8/files/patch-src-x64-disasm-x64.cc11
-rw-r--r--lang/v8/files/patch-src-x64-ic-x64.cc12
2 files changed, 23 insertions, 0 deletions
diff --git a/lang/v8/files/patch-src-x64-disasm-x64.cc b/lang/v8/files/patch-src-x64-disasm-x64.cc
new file mode 100644
index 000000000000..4bcafb5bfb61
--- /dev/null
+++ b/lang/v8/files/patch-src-x64-disasm-x64.cc
@@ -0,0 +1,11 @@
+--- src/x64/disasm-x64.cc.orig 2013-05-01 12:56:28 UTC
++++ src/x64/disasm-x64.cc
+@@ -1851,7 +1851,7 @@ void Disassembler::Disassemble(FILE* f,
+ buffer[0] = '\0';
+ byte* prev_pc = pc;
+ pc += d.InstructionDecode(buffer, pc);
+- fprintf(f, "%p", prev_pc);
++ fprintf(f, "%p", reinterpret_cast<void*>(prev_pc));
+ fprintf(f, " ");
+
+ for (byte* bp = prev_pc; bp < pc; bp++) {
diff --git a/lang/v8/files/patch-src-x64-ic-x64.cc b/lang/v8/files/patch-src-x64-ic-x64.cc
new file mode 100644
index 000000000000..bd10bf35ded6
--- /dev/null
+++ b/lang/v8/files/patch-src-x64-ic-x64.cc
@@ -0,0 +1,12 @@
+--- src/x64/ic-x64.cc.orig 2013-05-01 12:56:28 UTC
++++ src/x64/ic-x64.cc
+@@ -1672,7 +1672,8 @@ void PatchInlinedSmiCode(Address address
+ int8_t delta = *reinterpret_cast<int8_t*>(delta_address);
+ if (FLAG_trace_ic) {
+ PrintF("[ patching ic at %p, test=%p, delta=%d\n",
+- address, test_instruction_address, delta);
++ reinterpret_cast<void*>(address),
++ reinterpret_cast<void*>(test_instruction_address), delta);
+ }
+
+ // Patch with a short conditional jump. Enabling means switching from a short