Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index 9badac13bb4f70c6934774b02e57710e3250c2f1..10d95ce35122774419feeaf6c4ff51b3d0431bf8 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -1636,13 +1636,17 @@ void MacroAssembler::AssertBoundFunction(Register object) { |
void MacroAssembler::AssertGeneratorObject(Register object) { |
if (emit_debug_code()) { |
+ Label ok; |
AssertNotSmi(object, kOperandIsASmiAndNotAGeneratorObject); |
UseScratchRegisterScope temps(this); |
Register temp = temps.AcquireX(); |
CompareObjectType(object, temp, temp, JS_GENERATOR_OBJECT_TYPE); |
+ B(eq, &ok); |
+ CompareObjectType(object, temp, temp, JS_ASYNC_GENERATOR_OBJECT_TYPE); |
Check(eq, kOperandIsNotAGeneratorObject); |
+ Bind(&ok); |
} |
} |