tor-browser

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

commit 6cc08e5ca4f2df19f0b465f278e948a4e6fc1940
parent b3e3e9c8efb26cf0ea4001bf1ade985673754f27
Author: Xuan Chen <henry.chen@oss.cipunited.com>
Date:   Mon, 24 Nov 2025 12:24:53 +0000

Bug 2001289 - Part 3: [mips64] Allow and enable WASM JSPI in moz.configure. r=anba

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

Diffstat:
Mjs/moz.configure | 34++++++++++++++++++++++++++++------
1 file changed, 28 insertions(+), 6 deletions(-)

diff --git a/js/moz.configure b/js/moz.configure @@ -710,9 +710,17 @@ def default_wasm_jspi( return if simulator: - return simulator[0] in ("arm64", "arm", "loong64", "riscv64") + return simulator[0] in ("arm64", "arm", "loong64", "mips64", "riscv64") - if target.cpu in ("x86_64", "x86", "aarch64", "arm", "loongarch64", "riscv64"): + if target.cpu in ( + "x86_64", + "x86", + "aarch64", + "arm", + "loongarch64", + "mips64", + "riscv64", + ): return True @@ -737,16 +745,30 @@ def wasm_jspi(value, jit_enabled, simulator, no_experimental, target): if not jit_enabled: die("--enable-wasm-jspi requires --enable-jit") - if simulator and simulator[0] not in ("arm64", "arm", "loong64", "riscv64"): + if simulator and simulator[0] not in ( + "arm64", + "arm", + "loong64", + "mips64", + "riscv64", + ): die( - "--enable-wasm-jspi is only supported for arm64/arm/loong64/riscv64 simulators" + "--enable-wasm-jspi is only supported for arm64/arm/loong64/mips64/riscv64 simulators" ) - if target.cpu in ("x86_64", "x86", "aarch64", "arm", "loongarch64", "riscv64"): + if target.cpu in ( + "x86_64", + "x86", + "aarch64", + "arm", + "loongarch64", + "mips64", + "riscv64", + ): return True die( - "--enable-wasm-jspi only possible when targeting the x86_64/x86/arm64/arm/loongarch64/riscv64 jits" + "--enable-wasm-jspi only possible when targeting the x86_64/x86/arm64/arm/loongarch64/mips64/riscv64 jits" )