aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authortcberner <tcberner@FreeBSD.org>2017-07-07 17:10:12 +0800
committertcberner <tcberner@FreeBSD.org>2017-07-07 17:10:12 +0800
commit8fefc6dac44f92ec79340e7b2ddecca702496d87 (patch)
tree91dac5d5df56b9bc1fbddd3aed7e79abec12aff6 /www
parentc66259ea8fa30194ce904d3258d523354ba77499 (diff)
downloadfreebsd-ports-gnome-8fefc6dac44f92ec79340e7b2ddecca702496d87.tar.gz
freebsd-ports-gnome-8fefc6dac44f92ec79340e7b2ddecca702496d87.tar.zst
freebsd-ports-gnome-8fefc6dac44f92ec79340e7b2ddecca702496d87.zip
www/qt4-webkit: unbreak build on aarch64
PR: 220396 Submitted by: phk (original version)
Diffstat (limited to 'www')
-rw-r--r--www/qt4-webkit/files/patch-src_3rdparty_webkit_Source_JavaScriptCore_runtime_JSGlobalData.cpp14
-rw-r--r--www/qt4-webkit/files/patch-src__3rdparty__webkit__Source__JavaScriptCore__runtime__JSValueInlineMethods.h12
2 files changed, 20 insertions, 6 deletions
diff --git a/www/qt4-webkit/files/patch-src_3rdparty_webkit_Source_JavaScriptCore_runtime_JSGlobalData.cpp b/www/qt4-webkit/files/patch-src_3rdparty_webkit_Source_JavaScriptCore_runtime_JSGlobalData.cpp
new file mode 100644
index 000000000000..d494b4897077
--- /dev/null
+++ b/www/qt4-webkit/files/patch-src_3rdparty_webkit_Source_JavaScriptCore_runtime_JSGlobalData.cpp
@@ -0,0 +1,14 @@
+--- src/3rdparty/webkit/Source/JavaScriptCore/runtime/JSGlobalData.cpp.orig 2017-07-01 07:49:26 UTC
++++ src/3rdparty/webkit/Source/JavaScriptCore/runtime/JSGlobalData.cpp
+@@ -121,7 +121,11 @@ void JSGlobalData::storeVPtrs()
+ {
+ // Enough storage to fit a JSArray, JSByteArray, JSString, or JSFunction.
+ // COMPILE_ASSERTS below check that this is true.
++#if defined(__aarch64__)
++ char storage[128];
++#else
+ char storage[64];
++#endif
+
+ COMPILE_ASSERT(sizeof(JSArray) <= sizeof(storage), sizeof_JSArray_must_be_less_than_storage);
+ JSCell* jsArray = new (storage) JSArray(JSArray::VPtrStealingHack);
diff --git a/www/qt4-webkit/files/patch-src__3rdparty__webkit__Source__JavaScriptCore__runtime__JSValueInlineMethods.h b/www/qt4-webkit/files/patch-src__3rdparty__webkit__Source__JavaScriptCore__runtime__JSValueInlineMethods.h
index e2b4f74d54ac..fd03c51fbb00 100644
--- a/www/qt4-webkit/files/patch-src__3rdparty__webkit__Source__JavaScriptCore__runtime__JSValueInlineMethods.h
+++ b/www/qt4-webkit/files/patch-src__3rdparty__webkit__Source__JavaScriptCore__runtime__JSValueInlineMethods.h
@@ -1,10 +1,10 @@
---- ./src/3rdparty/webkit/Source/JavaScriptCore/runtime/JSValueInlineMethods.h.orig 2011-12-08 06:06:02.000000000 +0100
-+++ ./src/3rdparty/webkit/Source/JavaScriptCore/runtime/JSValueInlineMethods.h 2012-01-08 17:18:52.511348683 +0100
-@@ -227,7 +227,11 @@
+--- src/3rdparty/webkit/Source/JavaScriptCore/runtime/JSValueInlineMethods.h.orig 2015-05-07 14:14:45 UTC
++++ src/3rdparty/webkit/Source/JavaScriptCore/runtime/JSValueInlineMethods.h
+@@ -227,7 +227,11 @@ namespace JSC {
u.asBits.tag = CellTag;
else
u.asBits.tag = EmptyValueTag;
-+#if defined(__sparc64__)
++#if defined(__sparc64__) || defined(__aarch64__)
+ u.asBits.payload = reinterpret_cast<int64_t>(ptr);
+#else
u.asBits.payload = reinterpret_cast<int32_t>(ptr);
@@ -12,11 +12,11 @@
#if ENABLE(JSC_ZOMBIES)
ASSERT(!isZombie());
#endif
-@@ -239,7 +243,11 @@
+@@ -239,7 +243,11 @@ namespace JSC {
u.asBits.tag = CellTag;
else
u.asBits.tag = EmptyValueTag;
-+#if defined(__sparc64__)
++#if defined(__sparc64__) || defined(__aarch64__)
+ u.asBits.payload = reinterpret_cast<int64_t>(const_cast<JSCell*>(ptr));
+#else
u.asBits.payload = reinterpret_cast<int32_t>(const_cast<JSCell*>(ptr));