Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 6bd74016ec4c6d7834b75de607b9b049bab08ef5..25156946469da6944dbd065c4bc4bb75ffcb96cd 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -2080,8 +2080,8 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
Label suspend, continuation, post_runtime, resume; |
__ jmp(&suspend); |
- |
__ bind(&continuation); |
+ __ RecordGeneratorContinuation(); |
__ jmp(&resume); |
__ bind(&suspend); |
@@ -2154,9 +2154,12 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
EnterTryBlock(handler_index, &l_catch); |
const int try_block_size = TryCatch::kElementCount * kPointerSize; |
__ push(eax); // result |
+ |
__ jmp(&l_suspend); |
__ bind(&l_continuation); |
+ __ RecordGeneratorContinuation(); |
__ jmp(&l_resume); |
+ |
__ bind(&l_suspend); |
const int generator_object_depth = kPointerSize + try_block_size; |
__ mov(eax, Operand(esp, generator_object_depth)); |