зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1374726: Rename MAsmJSNeg to MWasmNeg; r=jolesen
MozReview-Commit-ID: IIbuvqFFUkE --HG-- extra : rebase_source : 3cb3e960a06baa3277690fda48df2ba8b44034f8
This commit is contained in:
Родитель
d3036a1aa0
Коммит
17a1672b16
|
@ -13767,11 +13767,14 @@ class MDebugCheckSelfHosted
|
|||
|
||||
};
|
||||
|
||||
class MAsmJSNeg
|
||||
// Flips the input's sign bit, independently of the rest of the number's
|
||||
// payload. Note this is different from multiplying by minus-one, which has
|
||||
// side-effects for e.g. NaNs.
|
||||
class MWasmNeg
|
||||
: public MUnaryInstruction,
|
||||
public NoTypePolicy::Data
|
||||
{
|
||||
MAsmJSNeg(MDefinition* op, MIRType type)
|
||||
MWasmNeg(MDefinition* op, MIRType type)
|
||||
: MUnaryInstruction(op)
|
||||
{
|
||||
setResultType(type);
|
||||
|
@ -13779,7 +13782,7 @@ class MAsmJSNeg
|
|||
}
|
||||
|
||||
public:
|
||||
INSTRUCTION_HEADER(AsmJSNeg)
|
||||
INSTRUCTION_HEADER(WasmNeg)
|
||||
TRIVIAL_NEW_WRAPPERS
|
||||
};
|
||||
|
||||
|
|
|
@ -294,12 +294,12 @@ namespace jit {
|
|||
_(CheckIsCallable) \
|
||||
_(CheckObjCoercible) \
|
||||
_(DebugCheckSelfHosted) \
|
||||
_(AsmJSNeg) \
|
||||
_(AsmJSLoadHeap) \
|
||||
_(AsmJSStoreHeap) \
|
||||
_(AsmJSCompareExchangeHeap) \
|
||||
_(AsmJSAtomicExchangeHeap) \
|
||||
_(AsmJSAtomicBinopHeap) \
|
||||
_(WasmNeg) \
|
||||
_(WasmBoundsCheck) \
|
||||
_(WasmLoadTls) \
|
||||
_(WasmAddOffset) \
|
||||
|
|
|
@ -537,7 +537,7 @@ LIRGeneratorARM::visitWasmSelect(MWasmSelect* ins)
|
|||
}
|
||||
|
||||
void
|
||||
LIRGeneratorARM::visitAsmJSNeg(MAsmJSNeg* ins)
|
||||
LIRGeneratorARM::visitWasmNeg(MWasmNeg* ins)
|
||||
{
|
||||
if (ins->type() == MIRType::Int32) {
|
||||
define(new(alloc()) LNegI(useRegisterAtStart(ins->input())), ins);
|
||||
|
|
|
@ -89,7 +89,7 @@ class LIRGeneratorARM : public LIRGeneratorShared
|
|||
void lowerUDiv(MDiv* div);
|
||||
void lowerUMod(MMod* mod);
|
||||
void visitPowHalf(MPowHalf* ins);
|
||||
void visitAsmJSNeg(MAsmJSNeg* ins);
|
||||
void visitWasmNeg(MWasmNeg* ins);
|
||||
|
||||
LTableSwitch* newLTableSwitch(const LAllocation& in, const LDefinition& inputCopy,
|
||||
MTableSwitch* ins);
|
||||
|
|
|
@ -216,9 +216,9 @@ LIRGeneratorARM64::lowerUrshD(MUrsh* mir)
|
|||
}
|
||||
|
||||
void
|
||||
LIRGeneratorARM64::visitAsmJSNeg(MAsmJSNeg* ins)
|
||||
LIRGeneratorARM64::visitWasmNeg(MWasmNeg* ins)
|
||||
{
|
||||
MOZ_CRASH("visitAsmJSNeg");
|
||||
MOZ_CRASH("visitWasmNeg");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -88,7 +88,7 @@ class LIRGeneratorARM64 : public LIRGeneratorShared
|
|||
void lowerUDiv(MDiv* div);
|
||||
void lowerUMod(MMod* mod);
|
||||
void visitPowHalf(MPowHalf* ins);
|
||||
void visitAsmJSNeg(MAsmJSNeg* ins);
|
||||
void visitWasmNeg(MWasmNeg* ins);
|
||||
void visitWasmSelect(MWasmSelect* ins);
|
||||
|
||||
LTableSwitchV* newLTableSwitchV(MTableSwitch* ins);
|
||||
|
|
|
@ -304,7 +304,7 @@ LIRGeneratorMIPSShared::lowerUrshD(MUrsh* mir)
|
|||
}
|
||||
|
||||
void
|
||||
LIRGeneratorMIPSShared::visitAsmJSNeg(MAsmJSNeg* ins)
|
||||
LIRGeneratorMIPSShared::visitWasmNeg(MWasmNeg* ins)
|
||||
{
|
||||
if (ins->type() == MIRType::Int32) {
|
||||
define(new(alloc()) LNegI(useRegisterAtStart(ins->input())), ins);
|
||||
|
|
|
@ -70,7 +70,7 @@ class LIRGeneratorMIPSShared : public LIRGeneratorShared
|
|||
void lowerUDiv(MDiv* div);
|
||||
void lowerUMod(MMod* mod);
|
||||
void visitPowHalf(MPowHalf* ins);
|
||||
void visitAsmJSNeg(MAsmJSNeg* ins);
|
||||
void visitWasmNeg(MWasmNeg* ins);
|
||||
void visitWasmLoad(MWasmLoad* ins);
|
||||
void visitWasmStore(MWasmStore* ins);
|
||||
void visitWasmSelect(MWasmSelect* ins);
|
||||
|
|
|
@ -74,7 +74,7 @@ class LIRGeneratorNone : public LIRGeneratorShared
|
|||
void visitUnbox(MUnbox* unbox) { MOZ_CRASH(); }
|
||||
void visitReturn(MReturn* ret) { MOZ_CRASH(); }
|
||||
void visitPowHalf(MPowHalf*) { MOZ_CRASH(); }
|
||||
void visitAsmJSNeg(MAsmJSNeg*) { MOZ_CRASH(); }
|
||||
void visitWasmNeg(MWasmNeg*) { MOZ_CRASH(); }
|
||||
void visitGuardShape(MGuardShape* ins) { MOZ_CRASH(); }
|
||||
void visitGuardObjectGroup(MGuardObjectGroup* ins) { MOZ_CRASH(); }
|
||||
void visitWasmUnsignedToDouble(MWasmUnsignedToDouble* ins) { MOZ_CRASH(); }
|
||||
|
|
|
@ -307,7 +307,7 @@ LIRGeneratorX86Shared::visitWasmSelect(MWasmSelect* ins)
|
|||
}
|
||||
|
||||
void
|
||||
LIRGeneratorX86Shared::visitAsmJSNeg(MAsmJSNeg* ins)
|
||||
LIRGeneratorX86Shared::visitWasmNeg(MWasmNeg* ins)
|
||||
{
|
||||
switch (ins->type()) {
|
||||
case MIRType::Int32:
|
||||
|
|
|
@ -45,7 +45,7 @@ class LIRGeneratorX86Shared : public LIRGeneratorShared
|
|||
MDefinition* lhs, MDefinition* rhs);
|
||||
void lowerForBitAndAndBranch(LBitAndAndBranch* baab, MInstruction* mir,
|
||||
MDefinition* lhs, MDefinition* rhs);
|
||||
void visitAsmJSNeg(MAsmJSNeg* ins);
|
||||
void visitWasmNeg(MWasmNeg* ins);
|
||||
void visitWasmSelect(MWasmSelect* ins);
|
||||
void lowerMulI(MMul* mul, MDefinition* lhs, MDefinition* rhs);
|
||||
void lowerDivI(MDiv* div);
|
||||
|
|
|
@ -3506,7 +3506,7 @@ EmitBodyExprs(FunctionCompiler& f)
|
|||
case uint16_t(Op::F32Abs):
|
||||
CHECK(EmitUnaryWithType<MAbs>(f, ValType::F32, MIRType::Float32));
|
||||
case uint16_t(Op::F32Neg):
|
||||
CHECK(EmitUnaryWithType<MAsmJSNeg>(f, ValType::F32, MIRType::Float32));
|
||||
CHECK(EmitUnaryWithType<MWasmNeg>(f, ValType::F32, MIRType::Float32));
|
||||
case uint16_t(Op::F32Ceil):
|
||||
CHECK(EmitUnaryMathBuiltinCall(f, SymbolicAddress::CeilF, ValType::F32));
|
||||
case uint16_t(Op::F32Floor):
|
||||
|
@ -3533,7 +3533,7 @@ EmitBodyExprs(FunctionCompiler& f)
|
|||
case uint16_t(Op::F64Abs):
|
||||
CHECK(EmitUnaryWithType<MAbs>(f, ValType::F64, MIRType::Double));
|
||||
case uint16_t(Op::F64Neg):
|
||||
CHECK(EmitUnaryWithType<MAsmJSNeg>(f, ValType::F64, MIRType::Double));
|
||||
CHECK(EmitUnaryWithType<MWasmNeg>(f, ValType::F64, MIRType::Double));
|
||||
case uint16_t(Op::F64Ceil):
|
||||
CHECK(EmitUnaryMathBuiltinCall(f, SymbolicAddress::CeilD, ValType::F64));
|
||||
case uint16_t(Op::F64Floor):
|
||||
|
@ -3613,7 +3613,7 @@ EmitBodyExprs(FunctionCompiler& f)
|
|||
case uint16_t(Op::I32Max):
|
||||
CHECK_ASMJS(EmitMinMax(f, ValType::I32, MIRType::Int32, Op(op) == Op::I32Max));
|
||||
case uint16_t(Op::I32Neg):
|
||||
CHECK_ASMJS(EmitUnaryWithType<MAsmJSNeg>(f, ValType::I32, MIRType::Int32));
|
||||
CHECK_ASMJS(EmitUnaryWithType<MWasmNeg>(f, ValType::I32, MIRType::Int32));
|
||||
case uint16_t(Op::I32BitNot):
|
||||
CHECK_ASMJS(EmitBitNot(f, ValType::I32));
|
||||
case uint16_t(Op::I32Abs):
|
||||
|
|
Загрузка…
Ссылка в новой задаче