зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1633216 - [mips64] Fix MacroAssembler warnings. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D72548
This commit is contained in:
Родитель
d9755f9557
Коммит
a591f8e572
|
@ -687,14 +687,6 @@ void MacroAssemblerMIPS64Compat::incrementInt32Value(const Address& addr) {
|
|||
asMasm().add32(Imm32(1), addr);
|
||||
}
|
||||
|
||||
void MacroAssemblerMIPS64Compat::computeEffectiveAddress(
|
||||
const BaseIndex& address, Register dest) {
|
||||
computeScaledAddress(address, dest);
|
||||
if (address.offset) {
|
||||
asMasm().addPtr(Imm32(address.offset), dest);
|
||||
}
|
||||
}
|
||||
|
||||
void MacroAssemblerMIPS64Compat::retn(Imm32 n) {
|
||||
// pc <- [sp]; sp += n
|
||||
loadPtr(Address(StackPointer, 0), ra);
|
||||
|
|
|
@ -569,6 +569,14 @@ void MacroAssemblerMIPS64Compat::computeScaledAddress(const BaseIndex& address,
|
|||
}
|
||||
}
|
||||
|
||||
void MacroAssemblerMIPS64Compat::computeEffectiveAddress(
|
||||
const BaseIndex& address, Register dest) {
|
||||
computeScaledAddress(address, dest);
|
||||
if (address.offset) {
|
||||
asMasm().addPtr(Imm32(address.offset), dest);
|
||||
}
|
||||
}
|
||||
|
||||
// Shortcut for when we know we're transferring 32 bits of data.
|
||||
void MacroAssemblerMIPS64::ma_pop(Register r) {
|
||||
as_ld(r, StackPointer, 0);
|
||||
|
|
|
@ -207,7 +207,7 @@ class MacroAssemblerMIPS64Compat : public MacroAssemblerMIPS64 {
|
|||
ma_daddu(dest, address.base, Imm32(address.offset));
|
||||
}
|
||||
|
||||
inline void computeEffectiveAddress(const BaseIndex& address, Register dest);
|
||||
void computeEffectiveAddress(const BaseIndex& address, Register dest);
|
||||
|
||||
void j(Label* dest) { ma_b(dest); }
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче