Add JIT warm-up threshold preferences for baseline and ion compilation

This commit is contained in:
ownedbywuigi 2026-03-28 07:34:59 +00:00
commit 6f4da14ee2
2 changed files with 24 additions and 2 deletions

View file

@ -1265,6 +1265,11 @@ pref("javascript.options.unboxed_objects", false);
pref("javascript.options.baselinejit", true);
pref("javascript.options.ion", true);
pref("javascript.options.ion.inlining", true);
// JIT warm-up thresholds (-1 keeps engine defaults).
// Lower values can improve sustained throughput on large script bundles
// (e.g. React/jQuery-heavy apps) at some startup compile cost.
pref("javascript.options.baselinejit.threshold", 8);
pref("javascript.options.ion.threshold", 80);
pref("javascript.options.asmjs", true);
pref("javascript.options.wasm", true);
// wasm jit crashes in 32bit builds because of 64bit casts so