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

Unified Diff: src/mark-compact-inl.h

Issue 8342037: Switch UnreachableObjectsFilter to use Marking instead of InstrusiveMarking. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 2 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
Index: src/mark-compact-inl.h
diff --git a/src/mark-compact-inl.h b/src/mark-compact-inl.h
index 3e283072f2a768d33f395ed040769b8e55a4878c..3ebc6c532d3bbab9a226ff5441b31b9c1b3df964 100644
--- a/src/mark-compact-inl.h
+++ b/src/mark-compact-inl.h
@@ -96,6 +96,12 @@ void MarkCompactCollector::RecordSlot(Object** anchor_slot,
}
+bool MarkCompactCollector::IsLiveBytesUpdateRequired(HeapObject* obj) {
+ return Marking::IsBlack(Marking::MarkBitFrom(obj)) &&
+ !obj->GetHeap()->mark_compact_collector()->AreMarkbitsTainted();
+}
+
+
} } // namespace v8::internal
#endif // V8_MARK_COMPACT_INL_H_
« src/mark-compact.cc ('K') | « src/mark-compact.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698