зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1010775 part 7 - Pass AsmJSAbsoluteAddress and AsmJSImmPtr by value instead of const-ref. r=sunfish
This commit is contained in:
Родитель
f3a90413ec
Коммит
b0f52b8dcd
|
@ -2033,7 +2033,7 @@ MacroAssemblerARMCompat::movePtr(ImmPtr imm, Register dest)
|
|||
movePtr(ImmWord(uintptr_t(imm.value)), dest);
|
||||
}
|
||||
void
|
||||
MacroAssemblerARMCompat::movePtr(const AsmJSImmPtr &imm, Register dest)
|
||||
MacroAssemblerARMCompat::movePtr(AsmJSImmPtr imm, Register dest)
|
||||
{
|
||||
RelocStyle rs;
|
||||
if (hasMOVWT())
|
||||
|
@ -2189,7 +2189,7 @@ MacroAssemblerARMCompat::loadPtr(AbsoluteAddress address, Register dest)
|
|||
loadPtr(Address(ScratchRegister, 0x0), dest);
|
||||
}
|
||||
void
|
||||
MacroAssemblerARMCompat::loadPtr(const AsmJSAbsoluteAddress &address, Register dest)
|
||||
MacroAssemblerARMCompat::loadPtr(AsmJSAbsoluteAddress address, Register dest)
|
||||
{
|
||||
movePtr(AsmJSImmPtr(address.kind()), ScratchRegister);
|
||||
loadPtr(Address(ScratchRegister, 0x0), dest);
|
||||
|
|
|
@ -1062,7 +1062,7 @@ class MacroAssemblerARMCompat : public MacroAssemblerARM
|
|||
ma_cmp(ScratchRegister, ptr);
|
||||
ma_b(label, cond);
|
||||
}
|
||||
void branchPtr(Condition cond, const AsmJSAbsoluteAddress &addr, Register ptr, Label *label) {
|
||||
void branchPtr(Condition cond, AsmJSAbsoluteAddress addr, Register ptr, Label *label) {
|
||||
loadPtr(addr, ScratchRegister);
|
||||
ma_cmp(ScratchRegister, ptr);
|
||||
ma_b(label, cond);
|
||||
|
@ -1314,7 +1314,7 @@ class MacroAssemblerARMCompat : public MacroAssemblerARM
|
|||
void movePtr(Register src, Register dest);
|
||||
void movePtr(ImmWord imm, Register dest);
|
||||
void movePtr(ImmPtr imm, Register dest);
|
||||
void movePtr(const AsmJSImmPtr &imm, Register dest);
|
||||
void movePtr(AsmJSImmPtr imm, Register dest);
|
||||
void movePtr(ImmGCPtr imm, Register dest);
|
||||
|
||||
void load8SignExtend(const Address &address, Register dest);
|
||||
|
@ -1336,7 +1336,7 @@ class MacroAssemblerARMCompat : public MacroAssemblerARM
|
|||
void loadPtr(const Address &address, Register dest);
|
||||
void loadPtr(const BaseIndex &src, Register dest);
|
||||
void loadPtr(AbsoluteAddress address, Register dest);
|
||||
void loadPtr(const AsmJSAbsoluteAddress &address, Register dest);
|
||||
void loadPtr(AsmJSAbsoluteAddress address, Register dest);
|
||||
|
||||
void loadPrivate(const Address &address, Register dest);
|
||||
|
||||
|
|
|
@ -1772,7 +1772,7 @@ MacroAssemblerMIPSCompat::movePtr(ImmPtr imm, Register dest)
|
|||
movePtr(ImmWord(uintptr_t(imm.value)), dest);
|
||||
}
|
||||
void
|
||||
MacroAssemblerMIPSCompat::movePtr(const AsmJSImmPtr &imm, Register dest)
|
||||
MacroAssemblerMIPSCompat::movePtr(AsmJSImmPtr imm, Register dest)
|
||||
{
|
||||
MOZ_ASSUME_UNREACHABLE("NYI");
|
||||
}
|
||||
|
@ -1863,7 +1863,7 @@ MacroAssemblerMIPSCompat::loadPtr(AbsoluteAddress address, Register dest)
|
|||
as_lw(dest, ScratchRegister, 0);
|
||||
}
|
||||
void
|
||||
MacroAssemblerMIPSCompat::loadPtr(const AsmJSAbsoluteAddress &address, Register dest)
|
||||
MacroAssemblerMIPSCompat::loadPtr(AsmJSAbsoluteAddress address, Register dest)
|
||||
{
|
||||
movePtr(AsmJSImmPtr(address.kind()), ScratchRegister);
|
||||
loadPtr(Address(ScratchRegister, 0x0), dest);
|
||||
|
|
|
@ -787,7 +787,7 @@ public:
|
|||
loadPtr(addr, ScratchRegister);
|
||||
ma_b(ScratchRegister, ptr, label, cond);
|
||||
}
|
||||
void branchPtr(Condition cond, const AsmJSAbsoluteAddress &addr, Register ptr,
|
||||
void branchPtr(Condition cond, AsmJSAbsoluteAddress addr, Register ptr,
|
||||
Label *label) {
|
||||
loadPtr(addr, ScratchRegister);
|
||||
ma_b(ScratchRegister, ptr, label, cond);
|
||||
|
@ -1026,7 +1026,7 @@ public:
|
|||
void movePtr(Register src, Register dest);
|
||||
void movePtr(ImmWord imm, Register dest);
|
||||
void movePtr(ImmPtr imm, Register dest);
|
||||
void movePtr(const AsmJSImmPtr &imm, Register dest);
|
||||
void movePtr(AsmJSImmPtr imm, Register dest);
|
||||
void movePtr(ImmGCPtr imm, Register dest);
|
||||
|
||||
void load8SignExtend(const Address &address, Register dest);
|
||||
|
@ -1048,7 +1048,7 @@ public:
|
|||
void loadPtr(const Address &address, Register dest);
|
||||
void loadPtr(const BaseIndex &src, Register dest);
|
||||
void loadPtr(AbsoluteAddress address, Register dest);
|
||||
void loadPtr(const AsmJSAbsoluteAddress &address, Register dest);
|
||||
void loadPtr(AsmJSAbsoluteAddress address, Register dest);
|
||||
|
||||
void loadPrivate(const Address &address, Register dest);
|
||||
|
||||
|
|
|
@ -600,7 +600,7 @@ class MacroAssemblerX64 : public MacroAssemblerX86Shared
|
|||
branchPtr(cond, Operand(ScratchReg, 0x0), ptr, label);
|
||||
}
|
||||
}
|
||||
void branchPtr(Condition cond, const AsmJSAbsoluteAddress &addr, Register ptr, Label *label) {
|
||||
void branchPtr(Condition cond, AsmJSAbsoluteAddress addr, Register ptr, Label *label) {
|
||||
JS_ASSERT(ptr != ScratchReg);
|
||||
mov(AsmJSImmPtr(addr.kind()), ScratchReg);
|
||||
branchPtr(cond, Operand(ScratchReg, 0x0), ptr, label);
|
||||
|
|
|
@ -339,7 +339,7 @@ class Assembler : public AssemblerX86Shared
|
|||
MOZ_ASSUME_UNREACHABLE("unexpected operand kind");
|
||||
}
|
||||
}
|
||||
void cmpl(const AsmJSAbsoluteAddress &lhs, Register rhs) {
|
||||
void cmpl(AsmJSAbsoluteAddress lhs, Register rhs) {
|
||||
masm.cmpl_rm_force32(rhs.code(), (void*)-1);
|
||||
enoughMemory_ &= append(AsmJSAbsoluteLink(masm.currentOffset(), lhs.kind()));
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче