mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Bug 984018 - Fixed build on Arm64. r=nbp
--HG-- extra : rebase_source : cee1b06da3fb8c8ae8a260498e365bc2fc382ba8
This commit is contained in:
parent
d0c4a9db1b
commit
2f51a9688a
@ -120,7 +120,9 @@ void Simulator::init(Decoder* decoder, FILE* stream) {
|
||||
lock_ = PR_NewLock();
|
||||
if (!lock_)
|
||||
MOZ_CRASH("Could not allocate simulator lock.");
|
||||
#ifdef DEBUG
|
||||
lockOwner_ = nullptr;
|
||||
#endif
|
||||
redirection_ = nullptr;
|
||||
}
|
||||
|
||||
|
@ -184,8 +184,12 @@ LIRGeneratorShared::defineSinCos(LInstructionHelper<2, Ops, Temps> *lir, MDefini
|
||||
|
||||
uint32_t vreg = getVirtualRegister();
|
||||
lir->setDef(0, LDefinition(vreg, LDefinition::DOUBLE, LFloatReg(ReturnDoubleReg)));
|
||||
#if defined(JS_CODEGEN_ARM) || defined(JS_CODEGEN_ARM64)
|
||||
lir->setDef(1, LDefinition(vreg + VREG_INCREMENT, LDefinition::DOUBLE, LFloatReg(d1)));
|
||||
#if defined(JS_CODEGEN_ARM)
|
||||
lir->setDef(1, LDefinition(vreg + VREG_INCREMENT, LDefinition::DOUBLE,
|
||||
LFloatReg(FloatRegister(FloatRegisters::d1, FloatRegister::Double))));
|
||||
#elif defined(JS_CODEGEN_ARM64)
|
||||
lir->setDef(1, LDefinition(vreg + VREG_INCREMENT, LDefinition::DOUBLE,
|
||||
LFloatReg(FloatRegister(FloatRegisters::d1, FloatRegisters::Double))));
|
||||
#elif defined(JS_CODEGEN_MIPS32)
|
||||
lir->setDef(1, LDefinition(vreg + VREG_INCREMENT, LDefinition::DOUBLE, LFloatReg(f2)));
|
||||
#elif defined(JS_CODEGEN_NONE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user