tor-browser

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

commit 0b6014c45e45c9e2e13d6cf49a1ad9669e615087
parent d39aabe0d530c14272a2038e85b946189136a577
Author: Jan de Mooij <jdemooij@mozilla.com>
Date:   Tue, 28 Oct 2025 18:41:06 +0000

Bug 1996803 - Remove workaround for calling constructors without a JitScript. r=iain

This check should no longer be needed because we don't allocate a template object
anymore since bug 1738721.

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

Diffstat:
Mjs/src/jit/CacheIR.cpp | 7-------
1 file changed, 0 insertions(+), 7 deletions(-)

diff --git a/js/src/jit/CacheIR.cpp b/js/src/jit/CacheIR.cpp @@ -13765,13 +13765,6 @@ AttachDecision CallIRGenerator::tryAttachCallScripted( return AttachDecision::NoAction; } - if (isConstructing && !calleeFunc->hasJitScript()) { - // If we're constructing, require the callee to have a JitScript. This isn't - // required for correctness but avoids allocating a template object below - // for constructors that aren't hot. See bug 1419758. - return AttachDecision::TemporarilyUnoptimizable; - } - // Verify that spread calls have a reasonable number of arguments. if (isSpread && args_.length() > JIT_ARGS_LENGTH_MAX) { return AttachDecision::NoAction;