commit 6fb6191f439410b3fcf76bb187a386c6626c7081
parent 0b470379848d5f74b6621dd0a2e282fc2bc6b9a6
Author: André Bargull <andre.bargull@gmail.com>
Date: Wed, 5 Nov 2025 16:01:28 +0000
Bug 1997975 - Part 7: Remove unused function bailoutTestPtr. r=spidermonkey-reviewers,iain
Differential Revision: https://phabricator.services.mozilla.com/D271108
Diffstat:
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) {