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

Unified Diff: src/assembler.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/assembler.h ('k') | src/debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/assembler.cc
diff --git a/src/assembler.cc b/src/assembler.cc
index 70d35b0f21538b9ad8b589a4af640a733c51d9ff..5a0c0595cb583636061e54a61fb8995ff8f1032c 100644
--- a/src/assembler.cc
+++ b/src/assembler.cc
@@ -774,7 +774,9 @@ const char* RelocInfo::RelocModeName(RelocInfo::Mode rmode) {
case DEBUG_BREAK_SLOT_AT_CONSTRUCT_CALL:
return "debug break slot at construct call";
case CODE_AGE_SEQUENCE:
- return "code_age_sequence";
+ return "code age sequence";
+ case GENERATOR_CONTINUATION:
+ return "generator continuation";
case NUMBER_OF_MODES:
case PC_JUMP:
UNREACHABLE();
@@ -869,6 +871,7 @@ void RelocInfo::Verify(Isolate* isolate) {
case DEBUG_BREAK_SLOT_AT_POSITION:
case DEBUG_BREAK_SLOT_AT_CALL:
case DEBUG_BREAK_SLOT_AT_CONSTRUCT_CALL:
+ case GENERATOR_CONTINUATION:
case NONE32:
case NONE64:
break;
@@ -1810,6 +1813,12 @@ void Assembler::RecordJSReturn() {
}
+void Assembler::RecordGeneratorContinuation() {
+ EnsureSpace ensure_space(this);
+ RecordRelocInfo(RelocInfo::GENERATOR_CONTINUATION);
+}
+
+
void Assembler::RecordDebugBreakSlot() {
EnsureSpace ensure_space(this);
RecordRelocInfo(RelocInfo::DEBUG_BREAK_SLOT_AT_POSITION);
« no previous file with comments | « src/assembler.h ('k') | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698