Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index eac70192053b5a430d9a982f97ab5f101cd41fa3..990fa04c60b843261cb4ef48c616939391bbe9aa 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -2113,8 +2113,8 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
Label suspend, continuation, post_runtime, resume; |
__ jmp(&suspend); |
- |
__ bind(&continuation); |
+ __ RecordGeneratorContinuation(); |
__ jmp(&resume); |
__ bind(&suspend); |
@@ -2188,9 +2188,12 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
EnterTryBlock(handler_index, &l_catch); |
const int try_block_size = TryCatch::kElementCount * kPointerSize; |
__ Push(rax); // result |
+ |
__ jmp(&l_suspend); |
__ bind(&l_continuation); |
+ __ RecordGeneratorContinuation(); |
__ jmp(&l_resume); |
+ |
__ bind(&l_suspend); |
const int generator_object_depth = kPointerSize + try_block_size; |
__ movp(rax, Operand(rsp, generator_object_depth)); |