Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Unified Diff: src/heap/mark-compact.cc

Issue 2209193002: [heap] Remove unused MarkCompactCollector::VisitLiveObjectsBody. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/mark-compact.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_);
« no previous file with comments | « src/heap/mark-compact.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698