Index: src/s390/macro-assembler-s390.cc |
diff --git a/src/s390/macro-assembler-s390.cc b/src/s390/macro-assembler-s390.cc |
index d7b80ee90bda7414bd3d6867e786794c487ca981..6bfe522651cff39a5b52aaa45fe75107bd7231e7 100644 |
--- a/src/s390/macro-assembler-s390.cc |
+++ b/src/s390/macro-assembler-s390.cc |
@@ -2413,6 +2413,18 @@ void MacroAssembler::AssertGeneratorObject(Register object) { |
} |
} |
+void MacroAssembler::AssertAsyncGeneratorObject(Register object) { |
+ if (emit_debug_code()) { |
+ STATIC_ASSERT(kSmiTag == 0); |
+ TestIfSmi(object); |
+ Check(ne, kOperandIsASmiAndNotAGeneratorObject); |
+ push(object); |
+ CompareObjectType(object, object, object, JS_ASYNC_GENERATOR_OBJECT_TYPE); |
+ pop(object); |
+ Check(eq, kOperandIsNotAGeneratorObject); |
+ } |
+} |
+ |
void MacroAssembler::AssertUndefinedOrAllocationSite(Register object, |
Register scratch) { |
if (emit_debug_code()) { |