www-client/firefox-{45.1.0,46.0}: patch to fix branch64 calls missing from none-jit
authorIan Stakenvicius <axs@gentoo.org>
Fri, 29 Apr 2016 18:16:40 +0000 (14:16 -0400)
committerIan Stakenvicius <axs@gentoo.org>
Fri, 29 Apr 2016 18:17:06 +0000 (14:17 -0400)
Bug: http://bugs.gentoo.org/581474

Package-Manager: portage-2.2.26

www-client/firefox/files/jit-none-branch64.patch [new file with mode: 0644]
www-client/firefox/firefox-45.1.0.ebuild
www-client/firefox/firefox-46.0.ebuild

diff --git a/www-client/firefox/files/jit-none-branch64.patch b/www-client/firefox/files/jit-none-branch64.patch
new file mode 100644 (file)
index 0000000..590f745
--- /dev/null
@@ -0,0 +1,29 @@
+# HG changeset patch
+# User Nicolas B. Pierron <nicolas.b.pierron@mozilla.com>
+
+Bug 1266366 - Add branch64 functions to the none-backend MacroAssembler. r=
+
+diff --git a/js/src/jit/none/MacroAssembler-none.h b/js/src/jit/none/MacroAssembler-none.h
+index 512ae81..4441d8d 100644
+--- a/js/src/jit/none/MacroAssembler-none.h
++++ b/js/src/jit/none/MacroAssembler-none.h
+@@ -254,16 +254,18 @@ class MacroAssemblerNone : public Assembler
+     template <typename T, typename S> void branchSub32(Condition, T, S, Label*) { MOZ_CRASH(); }
+     template <typename T, typename S> void branchPtr(Condition, T, S, Label*) { MOZ_CRASH(); }
+     template <typename T, typename S> void branchTestPtr(Condition, T, S, Label*) { MOZ_CRASH(); }
+     template <typename T, typename S> void branchDouble(DoubleCondition, T, S, Label*) { MOZ_CRASH(); }
+     template <typename T, typename S> void branchFloat(DoubleCondition, T, S, Label*) { MOZ_CRASH(); }
+     template <typename T, typename S> void branchPrivatePtr(Condition, T, S, Label*) { MOZ_CRASH(); }
+     template <typename T, typename S> void decBranchPtr(Condition, T, S, Label*) { MOZ_CRASH(); }
+     template <typename T, typename S> void branchTest64(Condition, T, T, S, Label*) { MOZ_CRASH(); }
++    template <typename T, typename S> void branch64(Condition, T, S, Label*) { MOZ_CRASH(); }
++    template <typename T, typename S> void branch64(Condition, T, T, S, Label*) { MOZ_CRASH(); }
+     template <typename T, typename S> void mov(T, S) { MOZ_CRASH(); }
+     template <typename T, typename S> void movq(T, S) { MOZ_CRASH(); }
+     template <typename T, typename S> void movePtr(T, S) { MOZ_CRASH(); }
+     template <typename T, typename S> void move32(T, S) { MOZ_CRASH(); }
+     template <typename T, typename S> void moveFloat32(T, S) { MOZ_CRASH(); }
+     template <typename T, typename S> void moveDouble(T, S) { MOZ_CRASH(); }
+     template <typename T, typename S> void move64(T, S) { MOZ_CRASH(); }
+     template <typename T> CodeOffset movWithPatch(T, Register) { MOZ_CRASH(); }
+
index 67e1b8b47706583cb6e524bad9b71d676daa0752..832e18beb90d02f45bab70507669f9391b55f6a6 100644 (file)
@@ -132,7 +132,8 @@ src_prepare() {
        # Apply our patches
        eapply "${WORKDIR}/firefox" \
                "${FILESDIR}"/arm64-4-link-chromium-mutex-based-atomics.patch \
-               "${FILESDIR}"/arm64-5-mozjemalloc-no-static-page-sizes.patch
+               "${FILESDIR}"/arm64-5-mozjemalloc-no-static-page-sizes.patch \
+               "${FILESDIR}"/jit-none-branch64.patch
 
        # Allow user to apply any additional patches without modifing ebuild
        eapply_user
index 3dd0989d0dd9606ac91aef01de118d54f13f3bba..80407c0de119b537a8e68e73b9929e76b1a22478 100644 (file)
@@ -116,7 +116,8 @@ src_unpack() {
 
 src_prepare() {
        # Apply our patches
-       eapply "${WORKDIR}/firefox"
+       eapply "${WORKDIR}/firefox" \
+               "${FILESDIR}"/jit-none-branch64.patch
 
        # Enable gnomebreakpad
        if use debug ; then