Bug 1010775 part 4 - Pass ImmPtr by value instead of const-ref. r=sunfish

This commit is contained in:
Jan de Mooij 2014-05-15 17:42:38 +02:00
parent cef6c4491f
commit 97feec9143
7 changed files with 14 additions and 14 deletions

View File

@ -2028,7 +2028,7 @@ MacroAssemblerARMCompat::movePtr(const ImmGCPtr &imm, Register dest)
ma_mov(imm, dest);
}
void
MacroAssemblerARMCompat::movePtr(const ImmPtr &imm, Register dest)
MacroAssemblerARMCompat::movePtr(ImmPtr imm, Register dest)
{
movePtr(ImmWord(uintptr_t(imm.value)), dest);
}
@ -2501,7 +2501,7 @@ MacroAssemblerARMCompat::cmpPtr(Register lhs, ImmWord rhs)
}
void
MacroAssemblerARMCompat::cmpPtr(Register lhs, const ImmPtr &rhs)
MacroAssemblerARMCompat::cmpPtr(Register lhs, ImmPtr rhs)
{
return cmpPtr(lhs, ImmWord(uintptr_t(rhs.value)));
}
@ -2539,7 +2539,7 @@ MacroAssemblerARMCompat::cmpPtr(const Address &lhs, ImmWord rhs)
}
void
MacroAssemblerARMCompat::cmpPtr(const Address &lhs, const ImmPtr &rhs)
MacroAssemblerARMCompat::cmpPtr(const Address &lhs, ImmPtr rhs)
{
cmpPtr(lhs, ImmWord(uintptr_t(rhs.value)));
}

View File

@ -1235,7 +1235,7 @@ class MacroAssemblerARMCompat : public MacroAssemblerARM
framePushed_ += sizeof(word.value);
return pushWithPatch(word);
}
CodeOffsetLabel PushWithPatch(const ImmPtr &imm) {
CodeOffsetLabel PushWithPatch(ImmPtr imm) {
return PushWithPatch(ImmWord(uintptr_t(imm.value)));
}
@ -1313,7 +1313,7 @@ class MacroAssemblerARMCompat : public MacroAssemblerARM
void movePtr(Register src, Register dest);
void movePtr(ImmWord imm, Register dest);
void movePtr(const ImmPtr &imm, Register dest);
void movePtr(ImmPtr imm, Register dest);
void movePtr(const AsmJSImmPtr &imm, Register dest);
void movePtr(const ImmGCPtr &imm, Register dest);
@ -1412,13 +1412,13 @@ class MacroAssemblerARMCompat : public MacroAssemblerARM
void cmp32(const Operand &lhs, Register rhs);
void cmpPtr(Register lhs, ImmWord rhs);
void cmpPtr(Register lhs, const ImmPtr &rhs);
void cmpPtr(Register lhs, ImmPtr rhs);
void cmpPtr(Register lhs, Register rhs);
void cmpPtr(Register lhs, const ImmGCPtr &rhs);
void cmpPtr(Register lhs, Imm32 rhs);
void cmpPtr(const Address &lhs, Register rhs);
void cmpPtr(const Address &lhs, ImmWord rhs);
void cmpPtr(const Address &lhs, const ImmPtr &rhs);
void cmpPtr(const Address &lhs, ImmPtr rhs);
void subPtr(Imm32 imm, const Register dest);
void subPtr(const Address &addr, const Register dest);

View File

@ -1767,7 +1767,7 @@ MacroAssemblerMIPSCompat::movePtr(const ImmGCPtr &imm, Register dest)
ma_li(dest, imm);
}
void
MacroAssemblerMIPSCompat::movePtr(const ImmPtr &imm, Register dest)
MacroAssemblerMIPSCompat::movePtr(ImmPtr imm, Register dest)
{
movePtr(ImmWord(uintptr_t(imm.value)), dest);
}

View File

@ -935,7 +935,7 @@ public:
framePushed_ += sizeof(word.value);
return pushWithPatch(word);
}
CodeOffsetLabel PushWithPatch(const ImmPtr &imm) {
CodeOffsetLabel PushWithPatch(ImmPtr imm) {
return PushWithPatch(ImmWord(uintptr_t(imm.value)));
}
@ -1025,7 +1025,7 @@ public:
void movePtr(Register src, Register dest);
void movePtr(ImmWord imm, Register dest);
void movePtr(const ImmPtr &imm, Register dest);
void movePtr(ImmPtr imm, Register dest);
void movePtr(const AsmJSImmPtr &imm, Register dest);
void movePtr(const ImmGCPtr &imm, Register dest);

View File

@ -260,7 +260,7 @@ class MacroAssemblerX86Shared : public Assembler
framePushed_ += sizeof(word.value);
return pushWithPatch(word);
}
CodeOffsetLabel PushWithPatch(const ImmPtr &imm) {
CodeOffsetLabel PushWithPatch(ImmPtr imm) {
return PushWithPatch(ImmWord(uintptr_t(imm.value)));
}

View File

@ -279,7 +279,7 @@ class Assembler : public AssemblerX86Shared
push(ScratchReg);
}
}
void push(const ImmPtr &imm) {
void push(ImmPtr imm) {
push(ImmWord(uintptr_t(imm.value)));
}
void push(const FloatRegister &src) {
@ -301,7 +301,7 @@ class Assembler : public AssemblerX86Shared
masm.movq_i64r(word.value, dest.code());
return masm.currentOffset();
}
CodeOffsetLabel movWithPatch(const ImmPtr &imm, Register dest) {
CodeOffsetLabel movWithPatch(ImmPtr imm, Register dest) {
return movWithPatch(ImmWord(uintptr_t(imm.value)), dest);
}

View File

@ -214,7 +214,7 @@ class Assembler : public AssemblerX86Shared
movl(Imm32(word.value), dest);
return masm.currentOffset();
}
CodeOffsetLabel movWithPatch(const ImmPtr &imm, Register dest) {
CodeOffsetLabel movWithPatch(ImmPtr imm, Register dest) {
return movWithPatch(ImmWord(uintptr_t(imm.value)), dest);
}