mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1229802 - Simplify MacroAssemblerARMCompat::decBranchPtr. r=nbp
This commit is contained in:
parent
e79049a1f2
commit
09efe1e0a3
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user