Bug 1483093 - Fix mips64 compiling error for ma_cmp_set(). r=dragan.mladjenovic
authorqiaopengcheng <qiaopengcheng-hf@loongson.cn>
Tue, 14 Aug 2018 01:56:00 +0300
changeset 431439 8dd8272a5aea4e3097acba8407540797cec9d8a8
parent 431438 83793017b08643c4ef917fcb477e46a936114e08
child 431440 2070b60e32cdfeeec032f734070900fa9d24fb3e
push id34443
push usercsabou@mozilla.com
push dateWed, 15 Aug 2018 00:53:32 +0000
treeherdermozilla-central@b80906e2fbc9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdragan.mladjenovic
bugs1483093
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1483093 - Fix mips64 compiling error for ma_cmp_set(). r=dragan.mladjenovic
js/src/jit/mips64/MacroAssembler-mips64-inl.h
--- a/js/src/jit/mips64/MacroAssembler-mips64-inl.h
+++ b/js/src/jit/mips64/MacroAssembler-mips64-inl.h
@@ -780,16 +780,25 @@ template<>
 inline void
 MacroAssembler::cmp32Set(Assembler::Condition cond, Register lhs, Address rhs,
                          Register dest)
 {
     load32(rhs, ScratchRegister);
     cmp32Set(cond, lhs, ScratchRegister, dest);
 }
 
+template<>
+inline void
+MacroAssembler::cmp32Set(Assembler::Condition cond, Address lhs, Register rhs,
+                         Register dest)
+{
+    load32(lhs, ScratchRegister);
+    cmp32Set(cond, ScratchRegister, rhs, dest);
+}
+
 void
 MacroAssemblerMIPS64Compat::incrementInt32Value(const Address& addr)
 {
     asMasm().add32(Imm32(1), addr);
 }
 
 void
 MacroAssemblerMIPS64Compat::computeEffectiveAddress(const BaseIndex& address, Register dest)