Index: src/heap/objects-visiting-inl.h |
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h |
index 810b38b61edfb89010259fb796950028c2c0d09a..857fa7c0a622b2394c938b79492816159a144d27 100644 |
--- a/src/heap/objects-visiting-inl.h |
+++ b/src/heap/objects-visiting-inl.h |
@@ -326,19 +326,6 @@ void StaticMarkingVisitor<StaticVisitor>::VisitPropertyCell( |
Map* map, HeapObject* object) { |
Heap* heap = map->GetHeap(); |
- Object** slot = |
- HeapObject::RawField(object, PropertyCell::kDependentCodeOffset); |
- if (FLAG_collect_maps) { |
- // Mark property cell dependent codes array but do not push it onto marking |
- // stack, this will make references from it weak. We will clean dead |
- // codes when we iterate over property cells in ClearNonLiveReferences. |
- HeapObject* obj = HeapObject::cast(*slot); |
- heap->mark_compact_collector()->RecordSlot(slot, slot, obj); |
- StaticVisitor::MarkObjectWithoutPush(heap, obj); |
- } else { |
- StaticVisitor::VisitPointer(heap, slot); |
- } |
- |
StaticVisitor::VisitPointers( |
heap, |
HeapObject::RawField(object, PropertyCell::kPointerFieldsBeginOffset), |
@@ -367,20 +354,6 @@ void StaticMarkingVisitor<StaticVisitor>::VisitAllocationSite( |
Map* map, HeapObject* object) { |
Heap* heap = map->GetHeap(); |
- Object** slot = |
- HeapObject::RawField(object, AllocationSite::kDependentCodeOffset); |
- if (FLAG_collect_maps) { |
- // Mark allocation site dependent codes array but do not push it onto |
- // marking stack, this will make references from it weak. We will clean |
- // dead codes when we iterate over allocation sites in |
- // ClearNonLiveReferences. |
- HeapObject* obj = HeapObject::cast(*slot); |
- heap->mark_compact_collector()->RecordSlot(slot, slot, obj); |
- StaticVisitor::MarkObjectWithoutPush(heap, obj); |
- } else { |
- StaticVisitor::VisitPointer(heap, slot); |
- } |
- |
StaticVisitor::VisitPointers( |
heap, |
HeapObject::RawField(object, AllocationSite::kPointerFieldsBeginOffset), |
@@ -643,14 +616,6 @@ void StaticMarkingVisitor<StaticVisitor>::MarkMapContents(Heap* heap, |
descriptors->GetDescriptorEndSlot(end)); |
} |
- // Mark prototype dependent codes array but do not push it onto marking |
- // stack, this will make references from it weak. We will clean dead |
- // codes when we iterate over maps in ClearNonLiveTransitions. |
- Object** slot = HeapObject::RawField(map, Map::kDependentCodeOffset); |
- HeapObject* obj = HeapObject::cast(*slot); |
- heap->mark_compact_collector()->RecordSlot(slot, slot, obj); |
- StaticVisitor::MarkObjectWithoutPush(heap, obj); |
- |
// Mark the pointer fields of the Map. Since the transitions array has |
// been marked already, it is fine that one of these fields contains a |
// pointer to it. |