Bug 1556197 - amend Bug-1544631 for fixing mips32.
authorqiaopengcheng <qiaopengcheng-hf@loongson.cn>
Sat, 1 Jun 2019 22:28:24 +0000 (07:28 +0900)
committerMike Hommey <glandium@debian.org>
Wed, 1 Jul 2020 00:08:58 +0000 (01:08 +0100)
Gbp-Pq: Topic fixes
Gbp-Pq: Name Bug-1556197-amend-Bug-1544631-for-fixing-mips32.patch

js/src/jit/mips32/MacroAssembler-mips32-inl.h

index 1f7f4d1cf319aae1f30eb9f1a231fc887c7f2ed4..06d8773e92a1cbb87727aafc759a1d1758f05426 100644 (file)
@@ -820,19 +820,23 @@ void MacroAssembler::branchTestSymbol(Condition cond, const ValueOperand& value,
 
 void MacroAssembler::branchTestBigInt(Condition cond, Register tag,
                                       Label* label) {
-  branchTestBigIntImpl(cond, tag, label);
+  MOZ_ASSERT(cond == Equal || cond == NotEqual);
+  ma_b(tag, ImmTag(JSVAL_TAG_BIGINT), label, cond);
 }
 
 void MacroAssembler::branchTestBigInt(Condition cond, const BaseIndex& address,
                                       Label* label) {
   SecondScratchRegisterScope scratch2(*this);
-  splitTag(value, scratch2);
+  computeEffectiveAddress(address, scratch2);
+  splitTag(scratch2, scratch2);
   branchTestBigInt(cond, scratch2, label);
 }
 
 void MacroAssembler::branchTestBigInt(Condition cond, const ValueOperand& value,
                                       Label* label) {
-  branchTestBigInt(cond, value.typeReg(), label);
+  SecondScratchRegisterScope scratch2(*this);
+  splitTag(value, scratch2);
+  branchTestBigInt(cond, scratch2, label);
 }
 
 void MacroAssembler::branchTestBigIntTruthy(bool b, const ValueOperand& value,