tor-browser

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

commit c9aa1d1a1c9a622658cec3ca2c4b1d29b78eb6d5
parent e716a6eaa68a7f2abef18e60df96722780f37433
Author: André Bargull <andre.bargull@gmail.com>
Date:   Fri, 24 Oct 2025 14:58:54 +0000

Bug 1996084: Call lowerForFPU for LCopySign on {mips,loong,riscv}64. r=spidermonkey-reviewers,jandem

Lowering can be simplified by directly calling `lowerForFPU`.

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

Diffstat:
Mjs/src/jit/loong64/Lowering-loong64.cpp | 4+---
Mjs/src/jit/mips-shared/Lowering-mips-shared.cpp | 4+---
Mjs/src/jit/riscv64/Lowering-riscv64.cpp | 4+---
3 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/js/src/jit/loong64/Lowering-loong64.cpp b/js/src/jit/loong64/Lowering-loong64.cpp @@ -526,9 +526,7 @@ void LIRGenerator::visitCopySign(MCopySign* ins) { lir = new (alloc()) LCopySignF(); } - lir->setOperand(0, useRegisterAtStart(lhs)); - lir->setOperand(1, useRegisterAtStart(rhs)); - define(lir, ins); + lowerForFPU(lir, ins, lhs, rhs); } void LIRGenerator::visitExtendInt32ToInt64(MExtendInt32ToInt64* ins) { diff --git a/js/src/jit/mips-shared/Lowering-mips-shared.cpp b/js/src/jit/mips-shared/Lowering-mips-shared.cpp @@ -803,9 +803,7 @@ void LIRGenerator::visitCopySign(MCopySign* ins) { lir = new (alloc()) LCopySignF(); } - lir->setOperand(0, useRegisterAtStart(lhs)); - lir->setOperand(1, useRegisterAtStart(rhs)); - define(lir, ins); + lowerForFPU(lir, ins, lhs, rhs); } void LIRGenerator::visitExtendInt32ToInt64(MExtendInt32ToInt64* ins) { diff --git a/js/src/jit/riscv64/Lowering-riscv64.cpp b/js/src/jit/riscv64/Lowering-riscv64.cpp @@ -525,9 +525,7 @@ void LIRGenerator::visitCopySign(MCopySign* ins) { lir = new (alloc()) LCopySignF(); } - lir->setOperand(0, useRegisterAtStart(lhs)); - lir->setOperand(1, useRegisterAtStart(rhs)); - define(lir, ins); + lowerForFPU(lir, ins, lhs, rhs); } void LIRGenerator::visitExtendInt32ToInt64(MExtendInt32ToInt64* ins) {