Bug 1229802 - Simplify MacroAssemblerARMCompat::decBranchPtr. r=nbp

This commit is contained in:
Tooru Fujisawa 2015-12-22 08:32:59 +09:00
parent e79049a1f2
commit 09efe1e0a3
2 changed files with 4 additions and 8 deletions

View File

@ -407,13 +407,6 @@ MacroAssemblerARMCompat::incrementInt32Value(const Address& addr)
asMasm().add32(Imm32(1), ToPayload(addr));
}
void
MacroAssemblerARMCompat::decBranchPtr(Condition cond, Register lhs, Imm32 imm, Label* label)
{
asMasm().subPtr(imm, lhs);
branch32(cond, lhs, Imm32(0), label);
}
} // namespace jit
} // namespace js

View File

@ -971,7 +971,10 @@ class MacroAssemblerARMCompat : public MacroAssemblerARM
void branchPtr(Condition cond, Register lhs, Imm32 imm, Label* label) {
branch32(cond, lhs, imm, label);
}
inline void decBranchPtr(Condition cond, Register lhs, Imm32 imm, Label* label);
void decBranchPtr(Condition cond, Register lhs, Imm32 imm, Label* label) {
ma_sub(imm, lhs, SetCC);
as_b(label, cond);
}
void branchTest64(Condition cond, Register64 lhs, Register64 rhs, Register temp, Label* label);
void moveValue(const Value& val, Register type, Register data);