Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 109bf17ec02604777275aadc0d9d40af8cf630d2..38008c3f19dae7c9b804e7837ff8f8a6058b17f0 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -2869,13 +2869,12 @@ class PointersUpdatingVisitor : public ObjectVisitor { |
} |
void VisitDebugTarget(RelocInfo* rinfo) { |
- DCHECK((RelocInfo::IsJSReturn(rinfo->rmode()) && |
- rinfo->IsPatchedReturnSequence()) || |
- (RelocInfo::IsDebugBreakSlot(rinfo->rmode()) && |
- rinfo->IsPatchedDebugBreakSlotSequence())); |
- Object* target = Code::GetCodeFromTargetAddress(rinfo->call_address()); |
+ DCHECK(RelocInfo::IsDebugBreakSlot(rinfo->rmode()) && |
+ rinfo->IsPatchedDebugBreakSlotSequence()); |
+ Object* target = |
+ Code::GetCodeFromTargetAddress(rinfo->debug_call_address()); |
VisitPointer(&target); |
- rinfo->set_call_address(Code::cast(target)->instruction_start()); |
+ rinfo->set_debug_call_address(Code::cast(target)->instruction_start()); |
} |
static inline void UpdateSlot(Heap* heap, Object** slot) { |
@@ -3435,11 +3434,6 @@ static inline void UpdateSlot(Isolate* isolate, ObjectVisitor* v, |
if (rinfo.IsPatchedDebugBreakSlotSequence()) rinfo.Visit(isolate, v); |
break; |
} |
- case SlotsBuffer::JS_RETURN_SLOT: { |
- RelocInfo rinfo(addr, RelocInfo::JS_RETURN, 0, NULL); |
- if (rinfo.IsPatchedReturnSequence()) rinfo.Visit(isolate, v); |
- break; |
- } |
case SlotsBuffer::EMBEDDED_OBJECT_SLOT: { |
RelocInfo rinfo(addr, RelocInfo::EMBEDDED_OBJECT, 0, NULL); |
rinfo.Visit(isolate, v); |
@@ -4529,8 +4523,6 @@ static inline SlotsBuffer::SlotType SlotTypeForRMode(RelocInfo::Mode rmode) { |
return SlotsBuffer::EMBEDDED_OBJECT_SLOT; |
} else if (RelocInfo::IsDebugBreakSlot(rmode)) { |
return SlotsBuffer::DEBUG_TARGET_SLOT; |
- } else if (RelocInfo::IsJSReturn(rmode)) { |
- return SlotsBuffer::JS_RETURN_SLOT; |
} |
UNREACHABLE(); |
return SlotsBuffer::NUMBER_OF_SLOT_TYPES; |