Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 7cbbd3ae2f1178f03f9363595f126eb370e90f31..fc78eeca3bbfbae42c7d623ced1d906bd103b37c 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -5615,6 +5615,16 @@ void MacroAssembler::AssertBoundFunction(Register object) { |
} |
} |
+void MacroAssembler::AssertGeneratorObject(Register object) { |
+ if (emit_debug_code()) { |
+ STATIC_ASSERT(kSmiTag == 0); |
+ SmiTst(object, t8); |
+ Check(ne, kOperandIsASmiAndNotAGeneratorObject, t8, Operand(zero_reg)); |
+ GetObjectType(object, t8, t8); |
+ Check(eq, kOperandIsNotAGeneratorObject, t8, |
+ Operand(JS_GENERATOR_OBJECT_TYPE)); |
+ } |
+} |
void MacroAssembler::AssertReceiver(Register object) { |
if (emit_debug_code()) { |