Index: src/heap/incremental-marking.cc |
diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc |
index 0933530b10595d65a8d8eabe633cbcb7e462f068..993a09d8d1c360c455c8ebb1a63c12f8325b1ea6 100644 |
--- a/src/heap/incremental-marking.cc |
+++ b/src/heap/incremental-marking.cc |
@@ -623,7 +623,7 @@ void IncrementalMarking::ProcessWeakCells() { |
HeapObject* value = HeapObject::cast(weak_cell->value()); |
// Remove weak cells with live objects from the list, they do not need |
// clearing. |
- if (MarkCompactCollector::IsMarked(value)) { |
+ if (ObjectMarking::IsBlackOrGrey(value)) { |
// Record slot, if value is pointing to an evacuation candidate. |
Object** slot = HeapObject::RawField(weak_cell, WeakCell::kValueOffset); |
heap_->mark_compact_collector()->RecordSlot(weak_cell, slot, *slot); |