зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1424978 MIPS: Fix some function implement. r=lth
--HG-- extra : rebase_source : ad2ad6256f201de90b4e7949061a34cf2809e9a0
This commit is contained in:
Родитель
d644f669bc
Коммит
b5a7934b36
|
@ -328,9 +328,16 @@ template <typename L>
|
|||
void
|
||||
MacroAssemblerMIPSShared::ma_addTestCarry(Register rd, Register rs, Register rt, L overflow)
|
||||
{
|
||||
as_addu(rd, rs, rt);
|
||||
as_sltu(SecondScratchReg, rd, rs);
|
||||
ma_b(SecondScratchReg, SecondScratchReg, overflow, Assembler::NonZero);
|
||||
if (rd != rs) {
|
||||
as_addu(rd, rs, rt);
|
||||
as_sltu(SecondScratchReg, rd, rs);
|
||||
ma_b(SecondScratchReg, SecondScratchReg, overflow, Assembler::NonZero);
|
||||
} else {
|
||||
ma_move(SecondScratchReg, rs);
|
||||
as_addu(rd, rs, rt);
|
||||
as_sltu(SecondScratchReg, rd, SecondScratchReg);
|
||||
ma_b(SecondScratchReg, SecondScratchReg, overflow, Assembler::NonZero);
|
||||
}
|
||||
}
|
||||
|
||||
template void
|
||||
|
@ -709,7 +716,7 @@ MacroAssemblerMIPSShared::ma_store_unaligned(const wasm::MemoryAccessDesc& acces
|
|||
int16_t lowOffset, hiOffset;
|
||||
Register base;
|
||||
|
||||
asMasm().computeEffectiveAddress(dest, SecondScratchReg);
|
||||
asMasm().computeScaledAddress(dest, SecondScratchReg);
|
||||
|
||||
if (Imm16::IsInSignedRange(dest.offset) && Imm16::IsInSignedRange(dest.offset + size / 8 - 1)) {
|
||||
base = SecondScratchReg;
|
||||
|
|
|
@ -65,8 +65,6 @@ struct EnterJITRegs
|
|||
static void
|
||||
GenerateReturn(MacroAssembler& masm, int returnCode)
|
||||
{
|
||||
MOZ_ASSERT(masm.framePushed() == sizeof(EnterJITRegs));
|
||||
|
||||
if (isLoongson()) {
|
||||
// Restore non-volatile registers
|
||||
masm.as_ld(s0, StackPointer, offsetof(EnterJITRegs, s0));
|
||||
|
|
Загрузка…
Ссылка в новой задаче