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

Unified Diff: src/mips/full-codegen-mips.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/mips/assembler-mips.h ('k') | src/mips64/assembler-mips64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips/full-codegen-mips.cc
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
index ec362afba465c81b09f16ce8313158cf4b5d417a..8f45b7d5d9c56368237214aa31c6df53806c0095 100644
--- a/src/mips/full-codegen-mips.cc
+++ b/src/mips/full-codegen-mips.cc
@@ -2165,8 +2165,8 @@ void FullCodeGenerator::VisitYield(Yield* expr) {
Label suspend, continuation, post_runtime, resume;
__ jmp(&suspend);
-
__ bind(&continuation);
+ __ RecordGeneratorContinuation();
__ jmp(&resume);
__ bind(&suspend);
@@ -2237,10 +2237,13 @@ void FullCodeGenerator::VisitYield(Yield* expr) {
EnterTryBlock(handler_index, &l_catch);
const int try_block_size = TryCatch::kElementCount * kPointerSize;
__ push(a0); // result
+
__ jmp(&l_suspend);
__ bind(&l_continuation);
+ __ RecordGeneratorContinuation();
__ mov(a0, v0);
__ jmp(&l_resume);
+
__ bind(&l_suspend);
const int generator_object_depth = kPointerSize + try_block_size;
__ lw(a0, MemOperand(sp, generator_object_depth));
« no previous file with comments | « src/mips/assembler-mips.h ('k') | src/mips64/assembler-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698