Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index e17dab0ae5f245ba5de2c18ba6ecd715097f81aa..b28ad8f4ae04ff65d9c82cd0ff29951d18b8f741 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -2995,13 +2995,21 @@ void MacroAssembler::AssertBoundFunction(Register object) { |
void MacroAssembler::AssertGeneratorObject(Register object) { |
if (emit_debug_code()) { |
+ Label ok; |
STATIC_ASSERT(kSmiTag == 0); |
tst(object, Operand(kSmiTagMask)); |
Check(ne, kOperandIsASmiAndNotAGeneratorObject); |
push(object); |
CompareObjectType(object, object, object, JS_GENERATOR_OBJECT_TYPE); |
pop(object); |
+ b(eq, &ok); |
+ |
+ push(object); |
+ CompareObjectType(object, object, object, JS_ASYNC_GENERATOR_OBJECT_TYPE); |
+ pop(object); |
Check(eq, kOperandIsNotAGeneratorObject); |
+ |
+ bind(&ok); |
} |
} |