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); |