зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1446766 part 3 - Remove unused setReturnDoubleRegs methods. r=nbp
This commit is contained in:
Родитель
31dc39303a
Коммит
22ab8f3704
|
@ -2492,17 +2492,6 @@ CodeGenerator::visitMemoryBarrier(LMemoryBarrier* ins)
|
|||
masm.memoryBarrier(ins->type());
|
||||
}
|
||||
|
||||
void
|
||||
CodeGeneratorARM::setReturnDoubleRegs(LiveRegisterSet* regs)
|
||||
{
|
||||
MOZ_ASSERT(ReturnFloat32Reg.code_ == FloatRegisters::s0);
|
||||
MOZ_ASSERT(ReturnDoubleReg.code_ == FloatRegisters::s0);
|
||||
FloatRegister s1 = {FloatRegisters::s1, VFPRegister::Single};
|
||||
regs->add(ReturnFloat32Reg);
|
||||
regs->add(s1);
|
||||
regs->add(ReturnDoubleReg);
|
||||
}
|
||||
|
||||
void
|
||||
CodeGenerator::visitWasmTruncateToInt32(LWasmTruncateToInt32* lir)
|
||||
{
|
||||
|
|
|
@ -122,8 +122,6 @@ class CodeGeneratorARM : public CodeGeneratorShared
|
|||
|
||||
void generateInvalidateEpilogue();
|
||||
|
||||
void setReturnDoubleRegs(LiveRegisterSet* regs);
|
||||
|
||||
// Generating a result.
|
||||
template<typename S, typename T>
|
||||
void atomicBinopToTypedIntArray(AtomicOp op, Scalar::Type arrayType, const S& value,
|
||||
|
|
|
@ -646,17 +646,6 @@ CodeGenerator::visitNegF(LNegF* ins)
|
|||
MOZ_CRASH("visitNegF");
|
||||
}
|
||||
|
||||
void
|
||||
CodeGeneratorARM64::setReturnDoubleRegs(LiveRegisterSet* regs)
|
||||
{
|
||||
MOZ_ASSERT(ReturnFloat32Reg.code_ == FloatRegisters::s0);
|
||||
MOZ_ASSERT(ReturnDoubleReg.code_ == FloatRegisters::d0);
|
||||
FloatRegister s1 = {FloatRegisters::s1, FloatRegisters::Single};
|
||||
regs->add(ReturnFloat32Reg);
|
||||
regs->add(s1);
|
||||
regs->add(ReturnDoubleReg);
|
||||
}
|
||||
|
||||
void
|
||||
CodeGenerator::visitCompareExchangeTypedArrayElement(LCompareExchangeTypedArrayElement* lir)
|
||||
{
|
||||
|
|
|
@ -107,12 +107,6 @@ class CodeGeneratorARM64 : public CodeGeneratorShared
|
|||
|
||||
void generateInvalidateEpilogue();
|
||||
|
||||
void setReturnDoubleRegs(LiveRegisterSet* regs);
|
||||
|
||||
void postWasmCall(LWasmCall* lir) {
|
||||
MOZ_CRASH("postWasmCall");
|
||||
}
|
||||
|
||||
public:
|
||||
void visitOutOfLineBailout(OutOfLineBailout* ool);
|
||||
void visitOutOfLineTableSwitch(OutOfLineTableSwitch* ool);
|
||||
|
|
|
@ -577,14 +577,6 @@ CodeGenerator::visitTestI64AndBranch(LTestI64AndBranch* lir)
|
|||
emitBranch(input.low, Imm32(0), Assembler::NonZero, lir->ifTrue(), lir->ifFalse());
|
||||
}
|
||||
|
||||
void
|
||||
CodeGeneratorMIPS::setReturnDoubleRegs(LiveRegisterSet* regs)
|
||||
{
|
||||
MOZ_ASSERT(ReturnFloat32Reg.code_ == ReturnDoubleReg.code_);
|
||||
regs->add(ReturnFloat32Reg);
|
||||
regs->add(ReturnDoubleReg);
|
||||
}
|
||||
|
||||
void
|
||||
CodeGenerator::visitWasmAtomicLoadI64(LWasmAtomicLoadI64* lir)
|
||||
{
|
||||
|
|
|
@ -45,8 +45,6 @@ class CodeGeneratorMIPS : public CodeGeneratorMIPSShared
|
|||
|
||||
// Functions for LTestVAndBranch.
|
||||
void splitTagForTest(const ValueOperand& value, ScratchTagScope& tag);
|
||||
|
||||
void setReturnDoubleRegs(LiveRegisterSet* regs);
|
||||
};
|
||||
|
||||
typedef CodeGeneratorMIPS CodeGeneratorSpecific;
|
||||
|
|
|
@ -544,14 +544,3 @@ CodeGenerator::visitTestI64AndBranch(LTestI64AndBranch* lir)
|
|||
|
||||
emitBranch(input.reg, Imm32(0), Assembler::NonZero, ifTrue, ifFalse);
|
||||
}
|
||||
|
||||
void
|
||||
CodeGeneratorMIPS64::setReturnDoubleRegs(LiveRegisterSet* regs)
|
||||
{
|
||||
MOZ_ASSERT(ReturnFloat32Reg.reg_ == FloatRegisters::f0);
|
||||
MOZ_ASSERT(ReturnDoubleReg.reg_ == FloatRegisters::f0);
|
||||
FloatRegister f1 = { FloatRegisters::f1, FloatRegisters::Single };
|
||||
regs->add(ReturnFloat32Reg);
|
||||
regs->add(f1);
|
||||
regs->add(ReturnDoubleReg);
|
||||
}
|
||||
|
|
|
@ -52,8 +52,6 @@ class CodeGeneratorMIPS64 : public CodeGeneratorMIPSShared
|
|||
|
||||
// Functions for LTestVAndBranch.
|
||||
void splitTagForTest(const ValueOperand& value, ScratchTagScope& tag);
|
||||
|
||||
void setReturnDoubleRegs(LiveRegisterSet* regs);
|
||||
};
|
||||
|
||||
typedef CodeGeneratorMIPS64 CodeGeneratorSpecific;
|
||||
|
|
|
@ -50,7 +50,6 @@ class CodeGeneratorNone : public CodeGeneratorShared
|
|||
ValueOperand ToValue(LInstruction*, size_t) { MOZ_CRASH(); }
|
||||
ValueOperand ToTempValue(LInstruction*, size_t) { MOZ_CRASH(); }
|
||||
void generateInvalidateEpilogue() { MOZ_CRASH(); }
|
||||
void setReturnDoubleRegs(LiveRegisterSet* regs) { MOZ_CRASH(); }
|
||||
};
|
||||
|
||||
typedef CodeGeneratorNone CodeGeneratorSpecific;
|
||||
|
|
|
@ -4323,17 +4323,6 @@ CodeGenerator::visitMemoryBarrier(LMemoryBarrier* ins)
|
|||
masm.storeLoadFence();
|
||||
}
|
||||
|
||||
void
|
||||
CodeGeneratorX86Shared::setReturnDoubleRegs(LiveRegisterSet* regs)
|
||||
{
|
||||
MOZ_ASSERT(ReturnFloat32Reg.encoding() == X86Encoding::xmm0);
|
||||
MOZ_ASSERT(ReturnDoubleReg.encoding() == X86Encoding::xmm0);
|
||||
MOZ_ASSERT(ReturnSimd128Reg.encoding() == X86Encoding::xmm0);
|
||||
regs->add(ReturnFloat32Reg);
|
||||
regs->add(ReturnDoubleReg);
|
||||
regs->add(ReturnSimd128Reg);
|
||||
}
|
||||
|
||||
void
|
||||
CodeGeneratorX86Shared::visitOutOfLineWasmTruncateCheck(OutOfLineWasmTruncateCheck* ool)
|
||||
{
|
||||
|
|
|
@ -183,8 +183,6 @@ class CodeGeneratorX86Shared : public CodeGeneratorShared
|
|||
|
||||
void generateInvalidateEpilogue();
|
||||
|
||||
void setReturnDoubleRegs(LiveRegisterSet* regs);
|
||||
|
||||
void canonicalizeIfDeterministic(Scalar::Type type, const LAllocation* value);
|
||||
|
||||
public:
|
||||
|
|
Загрузка…
Ссылка в новой задаче