Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 980e4b3d373aeba23d242eec949edd1001a912b4..8762c997588bb536fdec946123f24c946a01dcf2 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -2758,12 +2758,12 @@ static inline void UpdateSlot(Isolate* isolate, ObjectVisitor* v, |
SlotsBuffer::SlotType slot_type, Address addr) { |
switch (slot_type) { |
case SlotsBuffer::CODE_TARGET_SLOT: { |
- RelocInfo rinfo(addr, RelocInfo::CODE_TARGET, 0, NULL); |
+ RelocInfo rinfo(isolate, addr, RelocInfo::CODE_TARGET, 0, NULL); |
rinfo.Visit(isolate, v); |
break; |
} |
case SlotsBuffer::CELL_TARGET_SLOT: { |
- RelocInfo rinfo(addr, RelocInfo::CELL, 0, NULL); |
+ RelocInfo rinfo(isolate, addr, RelocInfo::CELL, 0, NULL); |
rinfo.Visit(isolate, v); |
break; |
} |
@@ -2777,12 +2777,13 @@ static inline void UpdateSlot(Isolate* isolate, ObjectVisitor* v, |
break; |
} |
case SlotsBuffer::DEBUG_TARGET_SLOT: { |
- RelocInfo rinfo(addr, RelocInfo::DEBUG_BREAK_SLOT_AT_POSITION, 0, NULL); |
+ RelocInfo rinfo(isolate, addr, RelocInfo::DEBUG_BREAK_SLOT_AT_POSITION, 0, |
+ NULL); |
if (rinfo.IsPatchedDebugBreakSlotSequence()) rinfo.Visit(isolate, v); |
break; |
} |
case SlotsBuffer::EMBEDDED_OBJECT_SLOT: { |
- RelocInfo rinfo(addr, RelocInfo::EMBEDDED_OBJECT, 0, NULL); |
+ RelocInfo rinfo(isolate, addr, RelocInfo::EMBEDDED_OBJECT, 0, NULL); |
rinfo.Visit(isolate, v); |
break; |
} |
@@ -4121,7 +4122,7 @@ void MarkCompactCollector::RecordCodeTargetPatch(Address pc, Code* target) { |
pc); |
MarkBit mark_bit = Marking::MarkBitFrom(host); |
if (Marking::IsBlack(mark_bit)) { |
- RelocInfo rinfo(pc, RelocInfo::CODE_TARGET, 0, host); |
+ RelocInfo rinfo(isolate(), pc, RelocInfo::CODE_TARGET, 0, host); |
RecordRelocSlot(&rinfo, target); |
} |
} |