Index: src/mips64/code-stubs-mips64.cc |
diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc |
index 71fe95858f0c241238dacff00c20f4e96de1bf04..86d0e6ef9b048bb5877810521498b5046ad0600b 100644 |
--- a/src/mips64/code-stubs-mips64.cc |
+++ b/src/mips64/code-stubs-mips64.cc |
@@ -3755,18 +3755,19 @@ void CompareICStub::GenerateStrings(MacroAssembler* masm) { |
} |
-void CompareICStub::GenerateObjects(MacroAssembler* masm) { |
- DCHECK(state() == CompareICState::OBJECT); |
+void CompareICStub::GenerateReceivers(MacroAssembler* masm) { |
+ DCHECK_EQ(CompareICState::RECEIVER, state()); |
Label miss; |
__ And(a2, a1, Operand(a0)); |
__ JumpIfSmi(a2, &miss); |
+ STATIC_ASSERT(LAST_TYPE == LAST_JS_RECEIVER_TYPE); |
__ GetObjectType(a0, a2, a2); |
- __ Branch(&miss, ne, a2, Operand(JS_OBJECT_TYPE)); |
+ __ Branch(&miss, lt, a2, Operand(FIRST_JS_RECEIVER_TYPE)); |
__ GetObjectType(a1, a2, a2); |
- __ Branch(&miss, ne, a2, Operand(JS_OBJECT_TYPE)); |
+ __ Branch(&miss, lt, a2, Operand(FIRST_JS_RECEIVER_TYPE)); |
- DCHECK(GetCondition() == eq); |
+ DCHECK_EQ(eq, GetCondition()); |
__ Ret(USE_DELAY_SLOT); |
__ dsubu(v0, a0, a1); |
@@ -3775,7 +3776,7 @@ void CompareICStub::GenerateObjects(MacroAssembler* masm) { |
} |
-void CompareICStub::GenerateKnownObjects(MacroAssembler* masm) { |
+void CompareICStub::GenerateKnownReceivers(MacroAssembler* masm) { |
Label miss; |
Handle<WeakCell> cell = Map::WeakCellForMap(known_map_); |
__ And(a2, a1, a0); |