tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 43f63773ead36135608ade38c20b257117f4152e
parent 8edd09b089865a34ef87c8adccaa75b6060f6c7d
Author: Bryan Thrall <bthrall@mozilla.com>
Date:   Thu, 11 Dec 2025 16:25:34 +0000

Bug 2000849 - Raise smallFunctionMaxBytecodeLength default to 140 r=iain

The changes from bug 1966196 increased the bytecode size of some scripts past
this limit.

In particular, the Jetstream3 test raytrace-private-class-fields could no
longer inline its 'Vector' function, which reduced performance.

Differential Revision: https://phabricator.services.mozilla.com/D275863

Diffstat:
Mjs/src/jit/JitOptions.cpp | 2+-
Mmodules/libpref/init/StaticPrefList.yaml | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/js/src/jit/JitOptions.cpp b/js/src/jit/JitOptions.cpp @@ -271,7 +271,7 @@ DefaultJitOptions::DefaultJitOptions() { SET_DEFAULT(osrPcMismatchesBeforeRecompile, 6000); // The bytecode length limit for small function. - SET_DEFAULT(smallFunctionMaxBytecodeLength, 130); + SET_DEFAULT(smallFunctionMaxBytecodeLength, 140); // The minimum entry count for an IC stub before it can be trial-inlined. SET_DEFAULT(inliningEntryThreshold, 100); diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml @@ -8880,7 +8880,7 @@ # NOTE: These must match JitOptions defaults. - name: javascript.options.inlining_bytecode_max_length type: uint32_t - value: 130 + value: 140 mirror: always do_not_use_directly: true