tor-browser

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

commit 9b1bf326a69ac2621b258627058c8d0bcebba2dc
parent a56d6f80be525a89537e3c361c63dd914d669cc5
Author: Zhao Jiazhong <zhaojiazhong-hf@loongson.cn>
Date:   Thu, 30 Oct 2025 09:50:25 +0000

Bug 1995508 - [LoongArch] Fix a 32-bit compare over 64-bit loaded value. r=anba

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

Diffstat:
Mjs/src/jit/MacroAssembler.cpp | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/js/src/jit/MacroAssembler.cpp b/js/src/jit/MacroAssembler.cpp @@ -7487,7 +7487,7 @@ void MacroAssembler::wasmNewStructObject(Register instance, Register result, // Don't execute the inline path if gc zeal or tracing are active. loadPtr(Address(instance, wasm::Instance::offsetOfAddressOfGCZealModeBits()), temp); - loadPtr(Address(temp, 0), temp); + load32(Address(temp, 0), temp); branch32(Assembler::NotEqual, temp, Imm32(0), fail); #endif @@ -7544,7 +7544,7 @@ void MacroAssembler::wasmNewArrayObject(Register instance, Register result, // Don't execute the inline path if gc zeal or tracing are active. loadPtr(Address(instance, wasm::Instance::offsetOfAddressOfGCZealModeBits()), temp); - loadPtr(Address(temp, 0), temp); + load32(Address(temp, 0), temp); branch32(Assembler::NotEqual, temp, Imm32(0), fail); #endif @@ -7708,7 +7708,7 @@ void MacroAssembler::wasmNewArrayObjectFixed( // Don't execute the inline path if gc zeal or tracing are active. loadPtr(Address(instance, wasm::Instance::offsetOfAddressOfGCZealModeBits()), temp1); - loadPtr(Address(temp1, 0), temp1); + load32(Address(temp1, 0), temp1); branch32(Assembler::NotEqual, temp1, Imm32(0), fail); #endif