mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-11 02:51:18 +02:00
27 lines
931 B
C
27 lines
931 B
C
--- ./src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h.orig 2015-05-07 16:14:48.000000000 +0200
|
|
+++ ./src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h 2019-03-22 13:54:51.707914000 +0200
|
|
@@ -491,7 +491,11 @@
|
|
u.asBits.tag = CellTag;
|
|
else
|
|
u.asBits.tag = EmptyValueTag;
|
|
+#if defined(__sparc64__)
|
|
+ u.asBits.payload = reinterpret_cast<int64_t>(ptr);
|
|
+#else
|
|
u.asBits.payload = reinterpret_cast<int32_t>(ptr);
|
|
+#endif
|
|
#if ENABLE(JSC_ZOMBIES)
|
|
ASSERT(!isZombie());
|
|
#endif
|
|
@@ -503,7 +507,11 @@
|
|
u.asBits.tag = CellTag;
|
|
else
|
|
u.asBits.tag = EmptyValueTag;
|
|
+#if defined(__sparc64__)
|
|
+ u.asBits.payload = reinterpret_cast<int64_t>(const_cast<JSCell*>(ptr));
|
|
+#else
|
|
u.asBits.payload = reinterpret_cast<int32_t>(const_cast<JSCell*>(ptr));
|
|
+#endif
|
|
#if ENABLE(JSC_ZOMBIES)
|
|
ASSERT(!isZombie());
|
|
#endif
|