Index: src/ppc/macro-assembler-ppc.cc |
diff --git a/src/ppc/macro-assembler-ppc.cc b/src/ppc/macro-assembler-ppc.cc |
index 42e5a13157fc54a97743d617f22026d6f6b2d9ca..ded5bbf3eb1589e90b43ae70b13e23c59143ffaa 100644 |
--- a/src/ppc/macro-assembler-ppc.cc |
+++ b/src/ppc/macro-assembler-ppc.cc |
@@ -2994,6 +2994,18 @@ void MacroAssembler::AssertBoundFunction(Register object) { |
} |
} |
+void MacroAssembler::AssertGeneratorObject(Register object) { |
+ if (emit_debug_code()) { |
+ STATIC_ASSERT(kSmiTag == 0); |
+ TestIfSmi(object, r0); |
+ Check(ne, kOperandIsASmiAndNotAGeneratorObject, cr0); |
+ push(object); |
+ CompareObjectType(object, object, object, JS_GENERATOR_OBJECT_TYPE); |
+ pop(object); |
+ Check(eq, kOperandIsNotAGeneratorObject); |
+ } |
+} |
+ |
void MacroAssembler::AssertReceiver(Register object) { |
if (emit_debug_code()) { |
STATIC_ASSERT(kSmiTag == 0); |