Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index 40d77dc199a3f989c5492d82e76be9378621b25a..b4a9d3bfde7092ad3f3f522f97078b5d36b044c7 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -3518,6 +3518,30 @@ void BinaryOpICWithAllocationSiteStub::Generate(MacroAssembler* masm) { |
} |
+void CompareICStub::GenerateBooleans(MacroAssembler* masm) { |
+ DCHECK_EQ(CompareICState::BOOLEAN, state()); |
+ Label miss; |
+ |
+ __ CheckMap(a1, a2, Heap::kBooleanMapRootIndex, &miss, DO_SMI_CHECK); |
+ __ CheckMap(a0, a3, Heap::kBooleanMapRootIndex, &miss, DO_SMI_CHECK); |
+ if (op() != Token::EQ_STRICT && is_strong(strength())) { |
+ __ TailCallRuntime(Runtime::kThrowStrongModeImplicitConversion, 0, 1); |
+ } else { |
+ if (!Token::IsEqualityOp(op())) { |
+ __ lw(a1, FieldMemOperand(a1, Oddball::kToNumberOffset)); |
+ __ AssertSmi(a1); |
+ __ lw(a0, FieldMemOperand(a0, Oddball::kToNumberOffset)); |
+ __ AssertSmi(a0); |
+ } |
+ __ Ret(USE_DELAY_SLOT); |
+ __ Subu(v0, a1, a0); |
+ } |
+ |
+ __ bind(&miss); |
+ GenerateMiss(masm); |
+} |
+ |
+ |
void CompareICStub::GenerateSmis(MacroAssembler* masm) { |
DCHECK(state() == CompareICState::SMI); |
Label miss; |