Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index fb83fe9b76872c1b7ace3fb33bc41896173536b0..ef3ba9876ece2a37a849323196a32fc8c2e0dd30 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -6225,6 +6225,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()) { |