diff --git a/js/src/jit/arm/MacroAssembler-arm.cpp b/js/src/jit/arm/MacroAssembler-arm.cpp index 5dd8300e506..f7aa0f47335 100644 --- a/js/src/jit/arm/MacroAssembler-arm.cpp +++ b/js/src/jit/arm/MacroAssembler-arm.cpp @@ -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))); } diff --git a/js/src/jit/arm/MacroAssembler-arm.h b/js/src/jit/arm/MacroAssembler-arm.h index db205287ffc..85f550a3068 100644 --- a/js/src/jit/arm/MacroAssembler-arm.h +++ b/js/src/jit/arm/MacroAssembler-arm.h @@ -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); diff --git a/js/src/jit/mips/MacroAssembler-mips.cpp b/js/src/jit/mips/MacroAssembler-mips.cpp index d2eb650efb1..917a8eb0b64 100644 --- a/js/src/jit/mips/MacroAssembler-mips.cpp +++ b/js/src/jit/mips/MacroAssembler-mips.cpp @@ -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); } diff --git a/js/src/jit/mips/MacroAssembler-mips.h b/js/src/jit/mips/MacroAssembler-mips.h index 4ca84485488..c3e4e8a7409 100644 --- a/js/src/jit/mips/MacroAssembler-mips.h +++ b/js/src/jit/mips/MacroAssembler-mips.h @@ -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); diff --git a/js/src/jit/shared/MacroAssembler-x86-shared.h b/js/src/jit/shared/MacroAssembler-x86-shared.h index 15d49750a42..72c8d4a9846 100644 --- a/js/src/jit/shared/MacroAssembler-x86-shared.h +++ b/js/src/jit/shared/MacroAssembler-x86-shared.h @@ -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))); } diff --git a/js/src/jit/x64/Assembler-x64.h b/js/src/jit/x64/Assembler-x64.h index 952f7f30ae9..85ce727f542 100644 --- a/js/src/jit/x64/Assembler-x64.h +++ b/js/src/jit/x64/Assembler-x64.h @@ -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); } diff --git a/js/src/jit/x86/Assembler-x86.h b/js/src/jit/x86/Assembler-x86.h index 87f6212fbfd..99e948413dd 100644 --- a/js/src/jit/x86/Assembler-x86.h +++ b/js/src/jit/x86/Assembler-x86.h @@ -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); }