Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 4dc6c9287dacf25c52400f41780a8dc4ffa86d94..7f76d0b4e206ced5d5940d885833725decf33fab 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -3522,23 +3522,6 @@ void MarkCompactCollector::RecomputeLiveBytes(MemoryChunk* page) { |
page->SetLiveBytes(new_live_size); |
} |
- |
-void MarkCompactCollector::VisitLiveObjectsBody(Page* page, |
- ObjectVisitor* visitor) { |
-#ifdef VERIFY_HEAP |
- VerifyAllBlackObjects(page); |
-#endif // VERIFY_HEAP |
- |
- LiveObjectIterator<kBlackObjects> it(page); |
- HeapObject* object = NULL; |
- while ((object = it.Next()) != NULL) { |
- DCHECK(Marking::IsBlack(ObjectMarking::MarkBitFrom(object))); |
- Map* map = object->synchronized_map(); |
- int size = object->SizeFromMap(map); |
- object->IterateBody(map->instance_type(), size, visitor); |
- } |
-} |
- |
void MarkCompactCollector::Sweeper::AddSweptPageSafe(PagedSpace* space, |
Page* page) { |
base::LockGuard<base::Mutex> guard(&mutex_); |