|
|
c36c6b5 |
commit 25511c8fd48533d34475dbc9215032ce76e77e93
|
|
|
c36c6b5 |
Author: root <root@rcs-power9-talos>
|
|
|
c36c6b5 |
Date: Mon Aug 20 17:54:30 2018 -0400
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
Enable support for powerpc64 systems
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
All features tested and work, internal checks pass
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
diff --git a/build/premake/premake4.lua b/build/premake/premake4.lua
|
|
|
c36c6b5 |
index 8b997e22a7..c62bcb3634 100644
|
|
|
c36c6b5 |
--- a/build/premake/premake4.lua
|
|
|
c36c6b5 |
+++ b/build/premake/premake4.lua
|
|
|
c36c6b5 |
@@ -88,6 +88,8 @@ else
|
|
|
c36c6b5 |
arch = "arm"
|
|
|
c36c6b5 |
elseif string.find(machine, "aarch64") == 1 then
|
|
|
c36c6b5 |
arch = "aarch64"
|
|
|
c36c6b5 |
+ elseif string.find(machine, "ppc64") == 1 or string.find(machine, "powerpc64") == 1 then
|
|
|
c36c6b5 |
+ arch = "ppc64"
|
|
|
c36c6b5 |
else
|
|
|
c36c6b5 |
print("WARNING: Cannot determine architecture from GCC, assuming x86")
|
|
|
c36c6b5 |
end
|
|
|
c36c6b5 |
@@ -823,6 +825,8 @@ function setup_all_libs ()
|
|
|
c36c6b5 |
table.insert(source_dirs, "lib/sysdep/arch/x86_x64");
|
|
|
c36c6b5 |
elseif arch == "arm" then
|
|
|
c36c6b5 |
table.insert(source_dirs, "lib/sysdep/arch/arm");
|
|
|
c36c6b5 |
+ elseif arch == "ppc64" then
|
|
|
c36c6b5 |
+ table.insert(source_dirs, "lib/sysdep/arch/ppc64");
|
|
|
c36c6b5 |
elseif arch == "aarch64" then
|
|
|
c36c6b5 |
table.insert(source_dirs, "lib/sysdep/arch/aarch64");
|
|
|
c36c6b5 |
end
|
|
|
c36c6b5 |
diff --git a/build/premake/premake5.lua b/build/premake/premake5.lua
|
|
|
c36c6b5 |
index 36928fb290..2dab672961 100644
|
|
|
c36c6b5 |
--- a/build/premake/premake5.lua
|
|
|
c36c6b5 |
+++ b/build/premake/premake5.lua
|
|
|
c36c6b5 |
@@ -81,6 +81,8 @@ else
|
|
|
c36c6b5 |
arch = "arm"
|
|
|
c36c6b5 |
elseif string.find(machine, "aarch64") == 1 then
|
|
|
c36c6b5 |
arch = "aarch64"
|
|
|
c36c6b5 |
+ elseif string.find(machine, "ppc64") == 1 or string.find(machine, "powerpc64") == 1 then
|
|
|
c36c6b5 |
+ arch = "ppc64"
|
|
|
c36c6b5 |
else
|
|
|
c36c6b5 |
print("WARNING: Cannot determine architecture from GCC, assuming x86")
|
|
|
c36c6b5 |
end
|
|
|
c36c6b5 |
@@ -823,6 +825,8 @@ function setup_all_libs ()
|
|
|
c36c6b5 |
table.insert(source_dirs, "lib/sysdep/arch/x86_x64");
|
|
|
c36c6b5 |
elseif arch == "arm" then
|
|
|
c36c6b5 |
table.insert(source_dirs, "lib/sysdep/arch/arm");
|
|
|
c36c6b5 |
+ elseif arch == "ppc64" then
|
|
|
c36c6b5 |
+ table.insert(source_dirs, "lib/sysdep/arch/ppc64");
|
|
|
c36c6b5 |
elseif arch == "aarch64" then
|
|
|
c36c6b5 |
table.insert(source_dirs, "lib/sysdep/arch/aarch64");
|
|
|
c36c6b5 |
end
|
|
|
c36c6b5 |
diff --git a/libraries/source/nvtt/src/src/nvcore/poshlib/posh.h b/libraries/source/nvtt/src/src/nvcore/poshlib/posh.h
|
|
|
c36c6b5 |
index 2a178ab843..953601b327 100644
|
|
|
c36c6b5 |
--- a/libraries/source/nvtt/src/src/nvcore/poshlib/posh.h
|
|
|
c36c6b5 |
+++ b/libraries/source/nvtt/src/src/nvcore/poshlib/posh.h
|
|
|
c36c6b5 |
@@ -663,7 +663,7 @@ Metrowerks:
|
|
|
c36c6b5 |
** the MIPS series, so we have to be careful about those.
|
|
|
c36c6b5 |
** ----------------------------------------------------------------------------
|
|
|
c36c6b5 |
*/
|
|
|
c36c6b5 |
-#if defined POSH_CPU_X86 || defined POSH_CPU_AXP || defined POSH_CPU_STRONGARM || defined POSH_CPU_AARCH64 || defined POSH_OS_WIN32 || defined POSH_OS_WINCE || defined __MIPSEL__
|
|
|
c36c6b5 |
+#if defined POSH_CPU_X86 || defined POSH_CPU_AXP || defined POSH_CPU_STRONGARM || defined POSH_CPU_AARCH64 || defined POSH_OS_WIN32 || defined POSH_OS_WINCE || defined __MIPSEL__ || __LITTLE_ENDIAN__
|
|
|
c36c6b5 |
# define POSH_ENDIAN_STRING "little"
|
|
|
c36c6b5 |
# define POSH_LITTLE_ENDIAN 1
|
|
|
c36c6b5 |
#else
|
|
|
c36c6b5 |
diff --git a/libraries/source/nvtt/src/src/nvmath/Plane.h b/libraries/source/nvtt/src/src/nvmath/Plane.h
|
|
|
c36c6b5 |
index bc7128c4f5..6c989fd075 100644
|
|
|
c36c6b5 |
--- a/libraries/source/nvtt/src/src/nvmath/Plane.h
|
|
|
c36c6b5 |
+++ b/libraries/source/nvtt/src/src/nvmath/Plane.h
|
|
|
c36c6b5 |
@@ -6,6 +6,10 @@
|
|
|
c36c6b5 |
#include <nvmath/nvmath.h>
|
|
|
c36c6b5 |
#include <nvmath/Vector.h>
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
+#if NV_USE_ALTIVEC
|
|
|
c36c6b5 |
+#undef vector
|
|
|
c36c6b5 |
+#endif
|
|
|
c36c6b5 |
+
|
|
|
c36c6b5 |
namespace nv
|
|
|
c36c6b5 |
{
|
|
|
c36c6b5 |
class Matrix;
|
|
|
c36c6b5 |
diff --git a/libraries/source/nvtt/src/src/nvtt/squish/simd_ve.h b/libraries/source/nvtt/src/src/nvtt/squish/simd_ve.h
|
|
|
c36c6b5 |
index 56ed95e0a6..a21ea47fe0 100644
|
|
|
c36c6b5 |
--- a/libraries/source/nvtt/src/src/nvtt/squish/simd_ve.h
|
|
|
c36c6b5 |
+++ b/libraries/source/nvtt/src/src/nvtt/squish/simd_ve.h
|
|
|
c36c6b5 |
@@ -1,6 +1,7 @@
|
|
|
c36c6b5 |
/* -----------------------------------------------------------------------------
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
Copyright (c) 2006 Simon Brown si@sjbrown.co.uk
|
|
|
c36c6b5 |
+ Copyright (c) 2016 Raptor Engineering, LLC
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
Permission is hereby granted, free of charge, to any person obtaining
|
|
|
c36c6b5 |
a copy of this software and associated documentation files (the
|
|
|
c36c6b5 |
@@ -31,7 +32,7 @@
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
namespace squish {
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
-#define VEC4_CONST( X ) Vec4( ( vector float )( X ) )
|
|
|
c36c6b5 |
+#define VEC4_CONST( X ) Vec4( vec_splats( (float)X ) )
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
class Vec4
|
|
|
c36c6b5 |
{
|
|
|
c36c6b5 |
@@ -96,7 +97,7 @@ public:
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
Vec4& operator*=( Arg v )
|
|
|
c36c6b5 |
{
|
|
|
c36c6b5 |
- m_v = vec_madd( m_v, v.m_v, ( vector float )( -0.0f ) );
|
|
|
c36c6b5 |
+ m_v = vec_madd( m_v, v.m_v, vec_splats( -0.0f ) );
|
|
|
c36c6b5 |
return *this;
|
|
|
c36c6b5 |
}
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
@@ -112,7 +113,7 @@ public:
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
friend Vec4 operator*( Vec4::Arg left, Vec4::Arg right )
|
|
|
c36c6b5 |
{
|
|
|
c36c6b5 |
- return Vec4( vec_madd( left.m_v, right.m_v, ( vector float )( -0.0f ) ) );
|
|
|
c36c6b5 |
+ return Vec4( vec_madd( left.m_v, right.m_v, vec_splats( -0.0f ) ) );
|
|
|
c36c6b5 |
}
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
//! Returns a*b + c
|
|
|
c36c6b5 |
@@ -133,7 +134,7 @@ public:
|
|
|
c36c6b5 |
vector float estimate = vec_re( v.m_v );
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
// one round of Newton-Rhaphson refinement
|
|
|
c36c6b5 |
- vector float diff = vec_nmsub( estimate, v.m_v, ( vector float )( 1.0f ) );
|
|
|
c36c6b5 |
+ vector float diff = vec_nmsub( estimate, v.m_v, vec_splats( 1.0f ) );
|
|
|
c36c6b5 |
return Vec4( vec_madd( diff, estimate, estimate ) );
|
|
|
c36c6b5 |
}
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
diff --git a/source/graphics/TextureConverter.cpp b/source/graphics/TextureConverter.cpp
|
|
|
c36c6b5 |
index 05392da6ee..531aec74ca 100644
|
|
|
c36c6b5 |
--- a/source/graphics/TextureConverter.cpp
|
|
|
c36c6b5 |
+++ b/source/graphics/TextureConverter.cpp
|
|
|
c36c6b5 |
@@ -45,6 +45,10 @@ struct BufferOutputHandler : public nvtt::OutputHandler
|
|
|
c36c6b5 |
{
|
|
|
c36c6b5 |
}
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
+ virtual void endImage()
|
|
|
c36c6b5 |
+ {
|
|
|
c36c6b5 |
+ }
|
|
|
c36c6b5 |
+
|
|
|
c36c6b5 |
virtual bool writeData(const void* data, int size)
|
|
|
c36c6b5 |
{
|
|
|
c36c6b5 |
size_t off = buffer.size();
|
|
|
c36c6b5 |
diff --git a/source/lib/alignment.h b/source/lib/alignment.h
|
|
|
c36c6b5 |
index f7b20dd29a..ad81081a55 100644
|
|
|
c36c6b5 |
--- a/source/lib/alignment.h
|
|
|
c36c6b5 |
+++ b/source/lib/alignment.h
|
|
|
c36c6b5 |
@@ -80,7 +80,18 @@ static const size_t cacheLineSize = 64; // (L2)
|
|
|
c36c6b5 |
// MMU pages
|
|
|
c36c6b5 |
//
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
+#ifdef __PPC64__
|
|
|
c36c6b5 |
+// NOTE: ppc64 can operate in either 4k or 64k page size mode
|
|
|
c36c6b5 |
+// If the define page size is larger than the active page size,
|
|
|
c36c6b5 |
+// the allocator functions normally. If the defined page size
|
|
|
c36c6b5 |
+// is less than the active page size, the allocator fails tests.
|
|
|
c36c6b5 |
+//
|
|
|
c36c6b5 |
+// Define the page size to the maximum known architectural page
|
|
|
c36c6b5 |
+// size on ppc64 systems.
|
|
|
c36c6b5 |
+static const size_t g_PageSize = 64 * 1024; // 64 KB
|
|
|
c36c6b5 |
+#else
|
|
|
c36c6b5 |
static const size_t g_PageSize = 4 * 1024; // 4 KB
|
|
|
c36c6b5 |
+#endif
|
|
|
c36c6b5 |
static const size_t g_LargePageSize = 2 * 1024 * 1024; // 2 MB
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
diff --git a/source/lib/byte_order.h b/source/lib/byte_order.h
|
|
|
c36c6b5 |
index c75be1384e..32476eeccc 100644
|
|
|
c36c6b5 |
--- a/source/lib/byte_order.h
|
|
|
c36c6b5 |
+++ b/source/lib/byte_order.h
|
|
|
c36c6b5 |
@@ -33,7 +33,7 @@
|
|
|
c36c6b5 |
#ifndef BYTE_ORDER
|
|
|
c36c6b5 |
# define LITTLE_ENDIAN 0x4321
|
|
|
c36c6b5 |
# define BIG_ENDIAN 0x1234
|
|
|
c36c6b5 |
-# if ARCH_IA32 || ARCH_IA64 || ARCH_AMD64 || ARCH_ALPHA || ARCH_ARM || ARCH_AARCH64 || ARCH_MIPS || defined(__LITTLE_ENDIAN__)
|
|
|
c36c6b5 |
+# if ARCH_IA32 || ARCH_IA64 || ARCH_AMD64 || ARCH_ALPHA || ARCH_ARM || ARCH_AARCH64 || ARCH_PPC64 || ARCH_MIPS || defined(__LITTLE_ENDIAN__)
|
|
|
c36c6b5 |
# define BYTE_ORDER LITTLE_ENDIAN
|
|
|
c36c6b5 |
# else
|
|
|
c36c6b5 |
# define BYTE_ORDER BIG_ENDIAN
|
|
|
c36c6b5 |
diff --git a/source/lib/sysdep/arch.h b/source/lib/sysdep/arch.h
|
|
|
c36c6b5 |
index e3e520f2e1..789a5e3ae3 100644
|
|
|
c36c6b5 |
--- a/source/lib/sysdep/arch.h
|
|
|
c36c6b5 |
+++ b/source/lib/sysdep/arch.h
|
|
|
c36c6b5 |
@@ -64,6 +64,12 @@
|
|
|
c36c6b5 |
#else
|
|
|
c36c6b5 |
# define ARCH_AARCH64 0
|
|
|
c36c6b5 |
#endif
|
|
|
c36c6b5 |
+// .. PowerPC64 (PPC64)
|
|
|
c36c6b5 |
+#if defined(__PPC64__)
|
|
|
c36c6b5 |
+# define ARCH_PPC64 1
|
|
|
c36c6b5 |
+#else
|
|
|
c36c6b5 |
+# define ARCH_PPC64 0
|
|
|
c36c6b5 |
+#endif
|
|
|
c36c6b5 |
// .. MIPS
|
|
|
c36c6b5 |
#if defined(__MIPS__) || defined(__mips__) || defined(__mips)
|
|
|
c36c6b5 |
# define ARCH_MIPS 1
|
|
|
c36c6b5 |
@@ -72,7 +78,7 @@
|
|
|
c36c6b5 |
#endif
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
// ensure exactly one architecture has been detected
|
|
|
c36c6b5 |
-#if (ARCH_IA32+ARCH_IA64+ARCH_AMD64+ARCH_ALPHA+ARCH_ARM+ARCH_AARCH64+ARCH_MIPS) != 1
|
|
|
c36c6b5 |
+#if (ARCH_IA32+ARCH_IA64+ARCH_AMD64+ARCH_ALPHA+ARCH_ARM+ARCH_AARCH64+ARCH_PPC64+ARCH_MIPS) != 1
|
|
|
c36c6b5 |
# error "architecture not correctly detected (either none or multiple ARCH_* defined)"
|
|
|
c36c6b5 |
#endif
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
diff --git a/source/lib/sysdep/arch/ppc64/ppc64.cpp b/source/lib/sysdep/arch/ppc64/ppc64.cpp
|
|
|
c36c6b5 |
new file mode 100644
|
|
|
c36c6b5 |
index 0000000000..66a9b5ff75
|
|
|
c36c6b5 |
--- /dev/null
|
|
|
c36c6b5 |
+++ b/source/lib/sysdep/arch/ppc64/ppc64.cpp
|
|
|
c36c6b5 |
@@ -0,0 +1,50 @@
|
|
|
c36c6b5 |
+/* Copyright (C) 2012 Wildfire Games
|
|
|
c36c6b5 |
+ * Copyright (C) 2018 Raptor Engineering, LLC
|
|
|
c36c6b5 |
+ *
|
|
|
c36c6b5 |
+ * Permission is hereby granted, free of charge, to any person obtaining
|
|
|
c36c6b5 |
+ * a copy of this software and associated documentation files (the
|
|
|
c36c6b5 |
+ * "Software"), to deal in the Software without restriction, including
|
|
|
c36c6b5 |
+ * without limitation the rights to use, copy, modify, merge, publish,
|
|
|
c36c6b5 |
+ * distribute, sublicense, and/or sell copies of the Software, and to
|
|
|
c36c6b5 |
+ * permit persons to whom the Software is furnished to do so, subject to
|
|
|
c36c6b5 |
+ * the following conditions:
|
|
|
c36c6b5 |
+ *
|
|
|
c36c6b5 |
+ * The above copyright notice and this permission notice shall be included
|
|
|
c36c6b5 |
+ * in all copies or substantial portions of the Software.
|
|
|
c36c6b5 |
+ *
|
|
|
c36c6b5 |
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
c36c6b5 |
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
c36c6b5 |
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
|
c36c6b5 |
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
|
c36c6b5 |
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
|
c36c6b5 |
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
|
c36c6b5 |
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
c36c6b5 |
+ */
|
|
|
c36c6b5 |
+
|
|
|
c36c6b5 |
+/*
|
|
|
c36c6b5 |
+ * routines specific to POWER
|
|
|
c36c6b5 |
+ */
|
|
|
c36c6b5 |
+
|
|
|
c36c6b5 |
+#include "precompiled.h"
|
|
|
c36c6b5 |
+
|
|
|
c36c6b5 |
+#include "lib/sysdep/cpu.h"
|
|
|
c36c6b5 |
+
|
|
|
c36c6b5 |
+intptr_t cpu_AtomicAdd(volatile intptr_t* location, intptr_t increment)
|
|
|
c36c6b5 |
+{
|
|
|
c36c6b5 |
+ return __sync_fetch_and_add(location, increment);
|
|
|
c36c6b5 |
+}
|
|
|
c36c6b5 |
+
|
|
|
c36c6b5 |
+bool cpu_CAS(volatile intptr_t* location, intptr_t expected, intptr_t newValue)
|
|
|
c36c6b5 |
+{
|
|
|
c36c6b5 |
+ return __sync_bool_compare_and_swap(location, expected, newValue);
|
|
|
c36c6b5 |
+}
|
|
|
c36c6b5 |
+
|
|
|
c36c6b5 |
+bool cpu_CAS64(volatile i64* location, i64 expected, i64 newValue)
|
|
|
c36c6b5 |
+{
|
|
|
c36c6b5 |
+ return __sync_bool_compare_and_swap(location, expected, newValue);
|
|
|
c36c6b5 |
+}
|
|
|
c36c6b5 |
+
|
|
|
c36c6b5 |
+const char* cpu_IdentifierString()
|
|
|
c36c6b5 |
+{
|
|
|
c36c6b5 |
+ return "IBM POWER"; // TODO
|
|
|
c36c6b5 |
+}
|
|
|
c36c6b5 |
diff --git a/source/ps/GameSetup/HWDetect.cpp b/source/ps/GameSetup/HWDetect.cpp
|
|
|
c36c6b5 |
index f2c0f4765f..82829d80bd 100644
|
|
|
c36c6b5 |
--- a/source/ps/GameSetup/HWDetect.cpp
|
|
|
c36c6b5 |
+++ b/source/ps/GameSetup/HWDetect.cpp
|
|
|
c36c6b5 |
@@ -247,6 +247,7 @@ void RunHardwareDetection()
|
|
|
c36c6b5 |
scriptInterface.SetProperty(settings, "arch_amd64", ARCH_AMD64);
|
|
|
c36c6b5 |
scriptInterface.SetProperty(settings, "arch_arm", ARCH_ARM);
|
|
|
c36c6b5 |
scriptInterface.SetProperty(settings, "arch_aarch64", ARCH_AARCH64);
|
|
|
c36c6b5 |
+ scriptInterface.SetProperty(settings, "arch_ppc64", ARCH_PPC64);
|
|
|
c36c6b5 |
|
|
|
c36c6b5 |
#ifdef NDEBUG
|
|
|
c36c6b5 |
scriptInterface.SetProperty(settings, "build_debug", 0);
|
|
|
c36c6b5 |
diff --git a/extract/0ad-0.0.23b-alpha/libraries/source/spidermonkey/Fixppc64.diff b/extract/0ad-0.0.23b-alpha/libraries/source/spidermonkey/Fixppc64.diff
|
|
|
c36c6b5 |
new file mode 100644
|
|
|
c36c6b5 |
index 0000000..7b8ea69
|
|
|
c36c6b5 |
--- /dev/null
|
|
|
c36c6b5 |
+++ b/libraries/source/spidermonkey/Fixppc64.diff
|
|
|
c36c6b5 |
@@ -0,0 +1,47 @@
|
|
|
c36c6b5 |
+From a0b0b09b078356dcc54113f085042c5deff9050d Mon Sep 17 00:00:00 2001
|
|
|
c36c6b5 |
+From: Mark Benvenuto <mark.benvenuto@mongodb.com>
|
|
|
c36c6b5 |
+Date: Thu, 17 Dec 2015 15:13:41 -0500
|
|
|
c36c6b5 |
+Subject: [PATCH] SERVER-21845 Fix debug non-jit builds of spidermonkey
|
|
|
c36c6b5 |
+
|
|
|
c36c6b5 |
+---
|
|
|
c36c6b5 |
+ .../mozjs-38/extract/js/src/jit/CodeGenerator.cpp | 6 +++---
|
|
|
c36c6b5 |
+ .../mozjs-38/extract/js/src/jit/none/MacroAssembler-none.h | 6 ++++++
|
|
|
c36c6b5 |
+ 2 files changed, 9 insertions(+), 3 deletions(-)
|
|
|
c36c6b5 |
+
|
|
|
c36c6b5 |
+diff --git a/src/third_party/mozjs-38/extract/js/src/jit/CodeGenerator.cpp b/src/third_party/mozjs-38/extract/js/src/jit/CodeGenerator.cpp
|
|
|
c36c6b5 |
+index 82f9cf6869c..f04ef3fa2b0 100644
|
|
|
c36c6b5 |
+--- a/js/src/jit/CodeGenerator.cpp
|
|
|
c36c6b5 |
++++ b/js/src/jit/CodeGenerator.cpp
|
|
|
c36c6b5 |
+@@ -3464,12 +3464,12 @@ CodeGenerator::visitCallDirectEvalV(LCallDirectEvalV* lir)
|
|
|
c36c6b5 |
+ callVM(DirectEvalValueInfo, lir);
|
|
|
c36c6b5 |
+ }
|
|
|
c36c6b5 |
+
|
|
|
c36c6b5 |
+-// Registers safe for use before generatePrologue().
|
|
|
c36c6b5 |
+-static const uint32_t EntryTempMask = Registers::TempMask & ~(1 << OsrFrameReg.code());
|
|
|
c36c6b5 |
+-
|
|
|
c36c6b5 |
+ void
|
|
|
c36c6b5 |
+ CodeGenerator::generateArgumentsChecks(bool bailout)
|
|
|
c36c6b5 |
+ {
|
|
|
c36c6b5 |
++ // Registers safe for use before generatePrologue().
|
|
|
c36c6b5 |
++ static const uint32_t EntryTempMask = Registers::TempMask & ~(1 << OsrFrameReg.code());
|
|
|
c36c6b5 |
++
|
|
|
c36c6b5 |
+ // This function can be used the normal way to check the argument types,
|
|
|
c36c6b5 |
+ // before entering the function and bailout when arguments don't match.
|
|
|
c36c6b5 |
+ // For debug purpose, this is can also be used to force/check that the
|
|
|
c36c6b5 |
+diff --git a/src/third_party/mozjs-38/extract/js/src/jit/none/MacroAssembler-none.h b/src/third_party/mozjs-38/extract/js/src/jit/none/MacroAssembler-none.h
|
|
|
c36c6b5 |
+index 77ed4382749..ef1ec17d766 100644
|
|
|
c36c6b5 |
+--- a/js/src/jit/none/MacroAssembler-none.h
|
|
|
c36c6b5 |
++++ b/js/src/jit/none/MacroAssembler-none.h
|
|
|
c36c6b5 |
+@@ -131,6 +131,12 @@ class Assembler : public AssemblerShared
|
|
|
c36c6b5 |
+ static void ToggleCall(CodeLocationLabel, bool) { MOZ_CRASH(); }
|
|
|
c36c6b5 |
+
|
|
|
c36c6b5 |
+ static uintptr_t GetPointer(uint8_t*) { MOZ_CRASH(); }
|
|
|
c36c6b5 |
++
|
|
|
c36c6b5 |
++ void verifyHeapAccessDisassembly(uint32_t begin, uint32_t end,
|
|
|
c36c6b5 |
++ const Disassembler::HeapAccess &heapAccess)
|
|
|
c36c6b5 |
++ {
|
|
|
c36c6b5 |
++ MOZ_CRASH();
|
|
|
c36c6b5 |
++ }
|
|
|
c36c6b5 |
+ };
|
|
|
c36c6b5 |
+
|
|
|
c36c6b5 |
+ class Operand
|
|
|
c36c6b5 |
diff --git a/extract2/0ad-0.0.23b-alpha/libraries/source/spidermonkey/patch.sh b/extract/0ad-0.0.23b-alpha/libraries/source/spidermonkey/patch.sh
|
|
|
c36c6b5 |
index b10d82f..dd1f6c6 100644
|
|
|
c36c6b5 |
--- a/libraries/source/spidermonkey/patch.sh
|
|
|
c36c6b5 |
+++ b/libraries/source/spidermonkey/patch.sh
|
|
|
c36c6b5 |
@@ -53,3 +53,5 @@ patch -p1 < ../FixTracelogger.diff
|
|
|
c36c6b5 |
# Based on: https://svnweb.freebsd.org/ports/head/sysutils/py-psutil121/files/patch-_psutil_bsd.c?revision=436575&view=markup
|
|
|
c36c6b5 |
# Related: https://bugzilla.mozilla.org/show_bug.cgi?id=1238983
|
|
|
c36c6b5 |
patch -p0 < ../FixpsutilFreeBSD.diff
|
|
|
c36c6b5 |
+
|
|
|
c36c6b5 |
+patch -p1 < ../Fixppc64.diff
|