Bug 1093628 - IonMonkey MIPS: Fix scratch usage in store macro instructions. r=jandem

This commit is contained in:
Branislav Rankov 2014-12-01 14:57:17 +01:00
Родитель f2394998f5
Коммит 3a270249dc
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -2033,8 +2033,8 @@ MacroAssemblerMIPSCompat::store32(Register src, const Address &address)
void
MacroAssemblerMIPSCompat::store32(Imm32 src, const Address &address)
{
move32(src, ScratchRegister);
storePtr(ScratchRegister, address);
move32(src, SecondScratchReg);
storePtr(SecondScratchReg, address);
}
void
@ -2053,8 +2053,8 @@ template <typename T>
void
MacroAssemblerMIPSCompat::storePtr(ImmWord imm, T address)
{
ma_li(ScratchRegister, Imm32(imm.value));
ma_sw(ScratchRegister, address);
ma_li(SecondScratchReg, Imm32(imm.value));
ma_sw(SecondScratchReg, address);
}
template void MacroAssemblerMIPSCompat::storePtr<Address>(ImmWord imm, Address address);
@ -2074,8 +2074,8 @@ template <typename T>
void
MacroAssemblerMIPSCompat::storePtr(ImmGCPtr imm, T address)
{
ma_li(ScratchRegister, imm);
ma_sw(ScratchRegister, address);
ma_li(SecondScratchReg, imm);
ma_sw(SecondScratchReg, address);
}
template void MacroAssemblerMIPSCompat::storePtr<Address>(ImmGCPtr imm, Address address);