Index: src/heap/mark-compact-inl.h |
diff --git a/src/heap/mark-compact-inl.h b/src/heap/mark-compact-inl.h |
index 648bf4673c5bade4d14a3c8bf88610d91f51b150..b63aa349a539150203d74df8086379933db8771d 100644 |
--- a/src/heap/mark-compact-inl.h |
+++ b/src/heap/mark-compact-inl.h |
@@ -36,25 +36,13 @@ void MarkCompactCollector::MarkObject(HeapObject* obj, MarkBit mark_bit) { |
} |
} |
-void MarkCompactCollector::SetMark(HeapObject* obj) { |
- DCHECK(ObjectMarking::IsWhite(obj)); |
- ObjectMarking::WhiteToBlack(obj); |
-} |
- |
- |
-bool MarkCompactCollector::IsMarked(Object* obj) { |
- DCHECK(obj->IsHeapObject()); |
- return ObjectMarking::IsBlackOrGrey(HeapObject::cast(obj)); |
-} |
- |
- |
void MarkCompactCollector::RecordSlot(HeapObject* object, Object** slot, |
Object* target) { |
Page* target_page = Page::FromAddress(reinterpret_cast<Address>(target)); |
Page* source_page = Page::FromAddress(reinterpret_cast<Address>(object)); |
if (target_page->IsEvacuationCandidate() && |
!ShouldSkipEvacuationSlotRecording(object)) { |
- DCHECK(IsMarked(object)); |
+ DCHECK(ObjectMarking::IsBlackOrGrey(object)); |
RememberedSet<OLD_TO_OLD>::Insert(source_page, |
reinterpret_cast<Address>(slot)); |
} |