summaryrefslogtreecommitdiffstats
path: root/modules/libpref/init/all.js
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-07-20 08:12:05 -0400
committerMoonchild <moonchild@palemoon.org>2020-07-23 23:16:56 +0000
commitb92abc83c28b8174aaa5af196a9e1f885a9e6e3d (patch)
treec69b41386cabea46a000207471d3c5e5b23dde21 /modules/libpref/init/all.js
parent4950c982e0465d82a726bd01859fb7fd40160d3b (diff)
downloadUXP-b92abc83c28b8174aaa5af196a9e1f885a9e6e3d.tar
UXP-b92abc83c28b8174aaa5af196a9e1f885a9e6e3d.tar.gz
UXP-b92abc83c28b8174aaa5af196a9e1f885a9e6e3d.tar.lz
UXP-b92abc83c28b8174aaa5af196a9e1f885a9e6e3d.tar.xz
UXP-b92abc83c28b8174aaa5af196a9e1f885a9e6e3d.zip
Issue #1611 - Enable WASM by default but only enable jit when 64bit
Diffstat (limited to 'modules/libpref/init/all.js')
-rw-r--r--modules/libpref/init/all.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js
index 6edd41e70..69a6d0de3 100644
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -1268,8 +1268,14 @@ pref("javascript.options.unboxed_objects", false);
pref("javascript.options.baselinejit", true);
pref("javascript.options.ion", true);
pref("javascript.options.asmjs", true);
-pref("javascript.options.wasm", false);
+pref("javascript.options.wasm", true);
+// wasm jit crashes in 32bit builds because of 64bit casts so
+// only enable it by default for 64bit builds
+#ifdef HAVE_64BIT_BUILD
+pref("javascript.options.wasm_baselinejit", true);
+#else
pref("javascript.options.wasm_baselinejit", false);
+#endif
pref("javascript.options.native_regexp", true);
pref("javascript.options.parallel_parsing", true);
// ayncstack is used for debugging promises in devtools.