summaryrefslogtreecommitdiffstats
path: root/modules/libpref/init
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-07-20 08:12:05 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-07-20 08:12:05 -0400
commitd31ca27bbc10fd719a29b5812651a2d0ed74fe11 (patch)
tree015b0b8d48546417225178374562d8a7079d1178 /modules/libpref/init
parent7ee65ec4c9f3fec534849c238b552903f54ce706 (diff)
downloadUXP-d31ca27bbc10fd719a29b5812651a2d0ed74fe11.tar
UXP-d31ca27bbc10fd719a29b5812651a2d0ed74fe11.tar.gz
UXP-d31ca27bbc10fd719a29b5812651a2d0ed74fe11.tar.lz
UXP-d31ca27bbc10fd719a29b5812651a2d0ed74fe11.tar.xz
UXP-d31ca27bbc10fd719a29b5812651a2d0ed74fe11.zip
Issue #1611 - Enable WASM by default but only enable jit when 64bit
Diffstat (limited to 'modules/libpref/init')
-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 766c00d39..855488850 100644
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -1265,8 +1265,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.