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

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: fix arm64 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') | src/debug.cc » ('J')
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 49e1acf50b3ec4f8bcf143b593fdabdd1a33a15b..fc67c7e7fb589385fbd41d6199374340a4bf4bb8 100644
--- a/src/assembler.cc
+++ b/src/assembler.cc
@@ -770,7 +770,9 @@ const char* RelocInfo::RelocModeName(RelocInfo::Mode rmode) {
case DEBUG_BREAK_SLOT:
return "debug break slot";
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();
@@ -871,6 +873,7 @@ void RelocInfo::Verify(Isolate* isolate) {
case CONST_POOL:
case VENEER_POOL:
case DEBUG_BREAK_SLOT:
+ case GENERATOR_CONTINUATION:
case NONE32:
case NONE64:
break;
@@ -1821,6 +1824,12 @@ void Assembler::RecordJSReturn() {
}
+void Assembler::RecordGeneratorContinuation() {
+ EnsureSpace ensure_space(this);
+ RecordRelocInfo(RelocInfo::GENERATOR_CONTINUATION);
+}
+
+
void Assembler::RecordDebugBreakSlot() {
EnsureSpace ensure_space(this);
intptr_t data = static_cast<intptr_t>(RelocInfo::kDebugBreakNonCallSentinel);
« no previous file with comments | « src/assembler.h ('k') | src/debug.cc » ('j') | src/debug.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698