Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 1141920a805b0f8d9529219f15f278e17ce0709a..e3544c5eec9afdf65237843f334ca336e42977b9 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -5240,6 +5240,17 @@ void MacroAssembler::AssertBoundFunction(Register object) { |
} |
+void MacroAssembler::AssertReceiver(Register object) { |
+ if (emit_debug_code()) { |
+ STATIC_ASSERT(kSmiTag == 0); |
+ SmiTst(object, t8); |
+ Check(ne, kOperandIsASmiAndNotAReceiver, t8, Operand(zero_reg)); |
+ GetObjectType(object, t8, t8); |
+ Check(ge, kOperandIsNotAReceiver, t8, Operand(FIRST_JS_RECEIVER_TYPE)); |
+ } |
+} |
+ |
+ |
void MacroAssembler::AssertUndefinedOrAllocationSite(Register object, |
Register scratch) { |
if (emit_debug_code()) { |