Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Unified Diff: src/x64/full-codegen-x64.cc

Issue 1235603002: Debugger: make debug code on-stack replacement more robust. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x87/assembler-x87.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/x64/full-codegen-x64.cc
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc
index 1bcbdfe59999528f1693f2395f0edec2906ea7b4..eb12a4758d805528329126ad00e0c923bbf1bc05 100644
--- a/src/x64/full-codegen-x64.cc
+++ b/src/x64/full-codegen-x64.cc
@@ -2126,8 +2126,8 @@ void FullCodeGenerator::VisitYield(Yield* expr) {
Label suspend, continuation, post_runtime, resume;
__ jmp(&suspend);
-
__ bind(&continuation);
+ __ RecordGeneratorContinuation();
__ jmp(&resume);
__ bind(&suspend);
@@ -2201,9 +2201,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));
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x87/assembler-x87.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698