From: Heiher Date: Sat, 31 Oct 2015 23:36:57 +0000 (+0800) Subject: Bug 1213146 - IonMonkey: MIPS: Modify the last two args of Assembler::bind to generic... X-Git-Tag: archive/raspbian/60.4.0esr-1+rpi1~1^2^2~22 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=24415060f690253993be191295ce4e8d1751f85e;p=firefox-esr.git Bug 1213146 - IonMonkey: MIPS: Modify the last two args of Assembler::bind to generic type. r=arai Gbp-Pq: Topic fixes Gbp-Pq: Name Bug-1213146-IonMonkey-MIPS-Modify-the-last-two-args-.patch --- diff --git a/js/src/jit/mips-shared/Assembler-mips-shared.h b/js/src/jit/mips-shared/Assembler-mips-shared.h index a42a97650e2..137f7afff12 100644 --- a/js/src/jit/mips-shared/Assembler-mips-shared.h +++ b/js/src/jit/mips-shared/Assembler-mips-shared.h @@ -1030,7 +1030,7 @@ class AssemblerMIPSShared : public AssemblerShared // label operations void bind(Label* label, BufferOffset boff = BufferOffset()); - virtual void bind(InstImm* inst, uint32_t branch, uint32_t target) = 0; + virtual void bind(InstImm* inst, uintptr_t branch, uintptr_t target) = 0; virtual void Bind(uint8_t* rawCode, AbsoluteLabel* label, const void* address) = 0; uint32_t currentOffset() { return nextOffset().getOffset(); diff --git a/js/src/jit/mips32/Assembler-mips32.cpp b/js/src/jit/mips32/Assembler-mips32.cpp index 87a963e6c6e..a53d6796a7d 100644 --- a/js/src/jit/mips32/Assembler-mips32.cpp +++ b/js/src/jit/mips32/Assembler-mips32.cpp @@ -261,7 +261,7 @@ Assembler::Bind(uint8_t* rawCode, AbsoluteLabel* label, const void* address) } void -Assembler::bind(InstImm* inst, uint32_t branch, uint32_t target) +Assembler::bind(InstImm* inst, uintptr_t branch, uintptr_t target) { int32_t offset = target - branch; InstImm inst_bgezal = InstImm(op_regimm, zero, rt_bgezal, BOffImm16(0)); diff --git a/js/src/jit/mips32/Assembler-mips32.h b/js/src/jit/mips32/Assembler-mips32.h index 25877b18e0e..4c067579e9e 100644 --- a/js/src/jit/mips32/Assembler-mips32.h +++ b/js/src/jit/mips32/Assembler-mips32.h @@ -129,7 +129,7 @@ class Assembler : public AssemblerMIPSShared static void TraceJumpRelocations(JSTracer* trc, JitCode* code, CompactBufferReader& reader); static void TraceDataRelocations(JSTracer* trc, JitCode* code, CompactBufferReader& reader); - void bind(InstImm* inst, uint32_t branch, uint32_t target); + void bind(InstImm* inst, uintptr_t branch, uintptr_t target); // Copy the assembly code to the given buffer, and perform any pending // relocations relying on the target address. diff --git a/js/src/jit/mips64/Assembler-mips64.cpp b/js/src/jit/mips64/Assembler-mips64.cpp index 5a199adfdf1..a3584026caa 100644 --- a/js/src/jit/mips64/Assembler-mips64.cpp +++ b/js/src/jit/mips64/Assembler-mips64.cpp @@ -256,7 +256,7 @@ Assembler::Bind(uint8_t* rawCode, AbsoluteLabel* label, const void* address) } void -Assembler::bind(InstImm* inst, uint64_t branch, uint64_t target) +Assembler::bind(InstImm* inst, uintptr_t branch, uintptr_t target) { int64_t offset = target - branch; InstImm inst_bgezal = InstImm(op_regimm, zero, rt_bgezal, BOffImm16(0)); diff --git a/js/src/jit/mips64/Assembler-mips64.h b/js/src/jit/mips64/Assembler-mips64.h index 85ca1c1890a..6dd8e523983 100644 --- a/js/src/jit/mips64/Assembler-mips64.h +++ b/js/src/jit/mips64/Assembler-mips64.h @@ -131,7 +131,7 @@ class Assembler : public AssemblerMIPSShared static void TraceJumpRelocations(JSTracer* trc, JitCode* code, CompactBufferReader& reader); static void TraceDataRelocations(JSTracer* trc, JitCode* code, CompactBufferReader& reader); - void bind(InstImm* inst, uint64_t branch, uint64_t target); + void bind(InstImm* inst, uintptr_t branch, uintptr_t target); // Copy the assembly code to the given buffer, and perform any pending // relocations relying on the target address.