aboutsummaryrefslogtreecommitdiffstats
path: root/www/firefox
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2015-01-27 04:30:05 +0800
committerjbeich <jbeich@FreeBSD.org>2015-01-27 04:30:05 +0800
commit6404f0f48246d55d0f789b5c9e167936d80907f5 (patch)
treed6e70f0fbb4bf8dc67da2e333722f36d1a1a7fb8 /www/firefox
parentbfbffac2611592932bea69174c58c85142d6e564 (diff)
downloadfreebsd-ports-gnome-6404f0f48246d55d0f789b5c9e167936d80907f5.tar.gz
freebsd-ports-gnome-6404f0f48246d55d0f789b5c9e167936d80907f5.tar.zst
freebsd-ports-gnome-6404f0f48246d55d0f789b5c9e167936d80907f5.zip
Add ARM build fixes for JavaScript engine
PR: 197058 Differential Revision: https://reviews.freebsd.org/D1683 Submitted by: sbruno (earlier version) Approved by: bapt (mentor)
Diffstat (limited to 'www/firefox')
-rw-r--r--www/firefox/files/patch-bug112557916
-rw-r--r--www/firefox/files/patch-bug112558013
2 files changed, 29 insertions, 0 deletions
diff --git a/www/firefox/files/patch-bug1125579 b/www/firefox/files/patch-bug1125579
new file mode 100644
index 000000000000..ca1a61af5364
--- /dev/null
+++ b/www/firefox/files/patch-bug1125579
@@ -0,0 +1,16 @@
+diff --git js/src/jit/ExecutableAllocator.h js/src/jit/ExecutableAllocator.h
+index d55c8ed..ab6188f 100644
+--- js/src/jit/ExecutableAllocator.h
++++ js/src/jit/ExecutableAllocator.h
+@@ -405,6 +405,11 @@ public:
+ _flush_cache(reinterpret_cast<char*>(code), size, BCACHE);
+ #endif
+ }
++#elif defined(JS_CODEGEN_ARM) && (defined(__FreeBSD__) || defined(__NetBSD__))
++ static void cacheFlush(void* code, size_t size)
++ {
++ __clear_cache(code, reinterpret_cast<char*>(code) + size);
++ }
+ #elif defined(JS_CODEGEN_ARM) && (defined(__linux__) || defined(ANDROID)) && defined(__GNUC__)
+ static void cacheFlush(void* code, size_t size)
+ {
diff --git a/www/firefox/files/patch-bug1125580 b/www/firefox/files/patch-bug1125580
new file mode 100644
index 000000000000..1495a4567d63
--- /dev/null
+++ b/www/firefox/files/patch-bug1125580
@@ -0,0 +1,13 @@
+diff --git js/src/jit/arm/Architecture-arm.cpp js/src/jit/arm/Architecture-arm.cpp
+index fe1373b..76641aa 100644
+--- js/src/jit/arm/Architecture-arm.cpp
++++ js/src/jit/arm/Architecture-arm.cpp
+@@ -16,7 +16,7 @@
+ #include "jit/arm/Assembler-arm.h"
+ #include "jit/RegisterSets.h"
+
+-#if defined(ANDROID) || defined(JS_ARM_SIMULATOR)
++#if !defined(__linux__) || defined(ANDROID) || defined(JS_ARM_SIMULATOR)
+ // The Android NDK and B2G do not include the hwcap.h kernel header, and it is not
+ // defined when building the simulator, so inline the header defines we need.
+ # define HWCAP_VFP (1 << 6)