Index: src/heap/incremental-marking.cc |
diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc |
index 494aa67f726fb67d0bca59f6137aaaf080d345b6..605ebee002061d76b2e7a7baf2e425c2cf43769f 100644 |
--- a/src/heap/incremental-marking.cc |
+++ b/src/heap/incremental-marking.cc |
@@ -108,7 +108,7 @@ void IncrementalMarking::RecordWriteFromCode(HeapObject* obj, Object** slot, |
void IncrementalMarking::RecordCodeTargetPatch(Code* host, Address pc, |
HeapObject* value) { |
if (IsMarking()) { |
- RelocInfo rinfo(pc, RelocInfo::CODE_TARGET, 0, host); |
+ RelocInfo rinfo(heap_->isolate(), pc, RelocInfo::CODE_TARGET, 0, host); |
RecordWriteIntoCode(host, &rinfo, value); |
} |
} |
@@ -119,7 +119,7 @@ void IncrementalMarking::RecordCodeTargetPatch(Address pc, HeapObject* value) { |
Code* host = heap_->isolate() |
->inner_pointer_to_code_cache() |
->GcSafeFindCodeForInnerPointer(pc); |
- RelocInfo rinfo(pc, RelocInfo::CODE_TARGET, 0, host); |
+ RelocInfo rinfo(heap_->isolate(), pc, RelocInfo::CODE_TARGET, 0, host); |
RecordWriteIntoCode(host, &rinfo, value); |
} |
} |