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

Unified Diff: src/mark-compact.h

Issue 6542047: Basic implementation of incremental marking. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 10 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.h
diff --git a/src/mark-compact.h b/src/mark-compact.h
index ca1334e566a8f7bd8c9ddbf4181b6eaa30aa5831..8d36571d37370b1b2780bbe562ece174e5ee9d0f 100644
--- a/src/mark-compact.h
+++ b/src/mark-compact.h
@@ -209,16 +209,7 @@ class Marking {
return FirstMarkedObject(page, cell_index, cells[cell_index]);
}
- static inline void TransferMark(Address old_start,
- Address new_start) {
- if (Heap::InNewSpace(old_start) ||
- Page::FromAddress(old_start)->IsFlagSet(Page::IS_CONTINUOUS) ||
- !IsMarked(old_start)) {
- return;
- }
-
- SetMark(new_start);
- }
+ static void TransferMark(Address old_start, Address new_start);
static bool Setup();
@@ -403,6 +394,9 @@ class MarkCompactCollector: public AllStatic {
// Marking operations for objects reachable from roots.
static void MarkLiveObjects();
+ static void AfterMarking();
+
+
INLINE(static void MarkObject(HeapObject* obj)) {
if (!Marking::TestAndMark(obj->address())) {
tracer_->increment_marked_count();

Powered by Google App Engine
This is Rietveld 408576698