tor-browser

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

commit f6641e56e6d0b478da576e004e0bf19cf7fb3b6f
parent 989a58c767abfea3466cc58ff9a32443ce9bb49c
Author: André Bargull <andre.bargull@gmail.com>
Date:   Wed,  5 Nov 2025 20:55:56 +0000

Bug 1997975 - Part 7: Remove unused function bailoutTestPtr. r=spidermonkey-reviewers,iain

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

Diffstat:
Mjs/src/jit/arm/CodeGenerator-arm.h | 5-----
Mjs/src/jit/arm64/CodeGenerator-arm64.h | 5-----
Mjs/src/jit/loong64/CodeGenerator-loong64.h | 7-------
Mjs/src/jit/mips-shared/CodeGenerator-mips-shared.h | 7-------
Mjs/src/jit/none/CodeGenerator-none.h | 3---
Mjs/src/jit/riscv64/CodeGenerator-riscv64.h | 7-------
Mjs/src/jit/wasm32/CodeGenerator-wasm32.h | 3---
Mjs/src/jit/x86-shared/CodeGenerator-x86-shared.h | 5-----
8 files changed, 0 insertions(+), 42 deletions(-)

diff --git a/js/src/jit/arm/CodeGenerator-arm.h b/js/src/jit/arm/CodeGenerator-arm.h @@ -41,11 +41,6 @@ class CodeGeneratorARM : public CodeGeneratorShared { masm.cmpPtr(lhs, rhs); bailoutIf(c, snapshot); } - void bailoutTestPtr(Assembler::Condition c, Register lhs, Register rhs, - LSnapshot* snapshot) { - masm.testPtr(lhs, rhs); - bailoutIf(c, snapshot); - } template <typename T1, typename T2> void bailoutCmp32(Assembler::Condition c, T1 lhs, T2 rhs, LSnapshot* snapshot) { diff --git a/js/src/jit/arm64/CodeGenerator-arm64.h b/js/src/jit/arm64/CodeGenerator-arm64.h @@ -40,11 +40,6 @@ class CodeGeneratorARM64 : public CodeGeneratorShared { masm.cmpPtr(lhs, rhs); return bailoutIf(c, snapshot); } - void bailoutTestPtr(Assembler::Condition c, Register lhs, Register rhs, - LSnapshot* snapshot) { - masm.testPtr(lhs, rhs); - return bailoutIf(c, snapshot); - } template <typename T1, typename T2> void bailoutCmp32(Assembler::Condition c, T1 lhs, T2 rhs, LSnapshot* snapshot) { diff --git a/js/src/jit/loong64/CodeGenerator-loong64.h b/js/src/jit/loong64/CodeGenerator-loong64.h @@ -55,13 +55,6 @@ class CodeGeneratorLOONG64 : public CodeGeneratorShared { masm.branchPtr(c, lhs, rhs, &bail); bailoutFrom(&bail, snapshot); } - template <typename T1, typename T2> - void bailoutTestPtr(Assembler::Condition c, T1 lhs, T2 rhs, - LSnapshot* snapshot) { - Label bail; - masm.branchTestPtr(c, lhs, rhs, &bail); - bailoutFrom(&bail, snapshot); - } void bailoutIfFalseBool(Register reg, LSnapshot* snapshot) { Label bail; UseScratchRegisterScope temps(masm); diff --git a/js/src/jit/mips-shared/CodeGenerator-mips-shared.h b/js/src/jit/mips-shared/CodeGenerator-mips-shared.h @@ -55,13 +55,6 @@ class CodeGeneratorMIPSShared : public CodeGeneratorShared { masm.branchPtr(c, lhs, rhs, &bail); bailoutFrom(&bail, snapshot); } - template <typename T1, typename T2> - void bailoutTestPtr(Assembler::Condition c, T1 lhs, T2 rhs, - LSnapshot* snapshot) { - Label bail; - masm.branchTestPtr(c, lhs, rhs, &bail); - bailoutFrom(&bail, snapshot); - } template <typename T> void bailoutIfFalseBool(T reg, LSnapshot* snapshot) { Label bail; diff --git a/js/src/jit/none/CodeGenerator-none.h b/js/src/jit/none/CodeGenerator-none.h @@ -33,9 +33,6 @@ class CodeGeneratorNone : public CodeGeneratorShared { void bailoutCmpPtr(Assembler::Condition, T1, T2, LSnapshot*) { MOZ_CRASH(); } - void bailoutTestPtr(Assembler::Condition, Register, Register, LSnapshot*) { - MOZ_CRASH(); - } void bailoutIfFalseBool(Register, LSnapshot*) { MOZ_CRASH(); } void bailoutFrom(Label*, LSnapshot*) { MOZ_CRASH(); } void bailout(LSnapshot*) { MOZ_CRASH(); } diff --git a/js/src/jit/riscv64/CodeGenerator-riscv64.h b/js/src/jit/riscv64/CodeGenerator-riscv64.h @@ -56,13 +56,6 @@ class CodeGeneratorRiscv64 : public CodeGeneratorShared { masm.branchPtr(c, lhs, rhs, &bail); bailoutFrom(&bail, snapshot); } - template <typename T1, typename T2> - void bailoutTestPtr(Assembler::Condition c, T1 lhs, T2 rhs, - LSnapshot* snapshot) { - Label bail; - masm.branchTestPtr(c, lhs, rhs, &bail); - bailoutFrom(&bail, snapshot); - } void bailoutIfFalseBool(Register reg, LSnapshot* snapshot) { Label bail; UseScratchRegisterScope temps(&masm); diff --git a/js/src/jit/wasm32/CodeGenerator-wasm32.h b/js/src/jit/wasm32/CodeGenerator-wasm32.h @@ -32,9 +32,6 @@ class CodeGeneratorWasm32 : public CodeGeneratorShared { void bailoutCmpPtr(Assembler::Condition, T1, T2, LSnapshot*) { MOZ_CRASH(); } - void bailoutTestPtr(Assembler::Condition, Register, Register, LSnapshot*) { - MOZ_CRASH(); - } void bailoutIfFalseBool(Register, LSnapshot*) { MOZ_CRASH(); } void bailoutFrom(Label*, LSnapshot*) { MOZ_CRASH(); } void bailout(LSnapshot*) { MOZ_CRASH(); } diff --git a/js/src/jit/x86-shared/CodeGenerator-x86-shared.h b/js/src/jit/x86-shared/CodeGenerator-x86-shared.h @@ -55,11 +55,6 @@ class CodeGeneratorX86Shared : public CodeGeneratorShared { masm.cmpPtr(lhs, rhs); bailoutIf(c, snapshot); } - void bailoutTestPtr(Assembler::Condition c, Register lhs, Register rhs, - LSnapshot* snapshot) { - masm.testPtr(lhs, rhs); - bailoutIf(c, snapshot); - } template <typename T1, typename T2> void bailoutCmp32(Assembler::Condition c, T1 lhs, T2 rhs, LSnapshot* snapshot) {