Index: src/ppc/full-codegen-ppc.cc |
diff --git a/src/ppc/full-codegen-ppc.cc b/src/ppc/full-codegen-ppc.cc |
index e7b945bc1d27aa1d2aeda912bdb076040a3b5767..97850a190b702ba54d1dc262f07db0a04113db0f 100644 |
--- a/src/ppc/full-codegen-ppc.cc |
+++ b/src/ppc/full-codegen-ppc.cc |
@@ -2137,8 +2137,8 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
Label suspend, continuation, post_runtime, resume; |
__ b(&suspend); |
- |
__ bind(&continuation); |
+ __ RecordGeneratorContinuation(); |
__ b(&resume); |
__ bind(&suspend); |
@@ -2211,9 +2211,12 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
EnterTryBlock(handler_index, &l_catch); |
const int try_block_size = TryCatch::kElementCount * kPointerSize; |
__ push(r3); // result |
+ |
__ b(&l_suspend); |
__ bind(&l_continuation); |
+ __ RecordGeneratorContinuation(); |
__ b(&l_resume); |
+ |
__ bind(&l_suspend); |
const int generator_object_depth = kPointerSize + try_block_size; |
__ LoadP(r3, MemOperand(sp, generator_object_depth)); |