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: runtime/vm/gc_marker.h

Issue 1351453008: Parallel marking. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add TODO about smi/new check. Created 5 years, 3 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 | « no previous file | runtime/vm/gc_marker.cc » ('j') | runtime/vm/gc_marker.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/gc_marker.h
diff --git a/runtime/vm/gc_marker.h b/runtime/vm/gc_marker.h
index c01a6e8e5374a99de4cfbbccb55f0e9f777ebfa8..df7e0d2f3d9fae9e13d893d9eb657dbd1862f978 100644
--- a/runtime/vm/gc_marker.h
+++ b/runtime/vm/gc_marker.h
@@ -13,7 +13,6 @@ namespace dart {
class HandleVisitor;
class Heap;
class Isolate;
-class MarkingVisitor;
class ObjectPointerVisitor;
class PageSpace;
class RawWeakProperty;
@@ -38,16 +37,19 @@ class GCMarker : public ValueObject {
void Epilogue(Isolate* isolate, bool invoke_api_callbacks);
void IterateRoots(Isolate* isolate,
ObjectPointerVisitor* visitor,
- bool visit_prologue_weak_persistent_handles);
+ bool visit_prologue_weak_persistent_handles,
+ intptr_t slice_index, intptr_t num_slices);
void IterateWeakRoots(Isolate* isolate,
HandleVisitor* visitor,
bool visit_prologue_weak_persistent_handles);
- void IterateWeakReferences(Isolate* isolate, MarkingVisitor* visitor);
+ template<class MarkingVisitorType>
+ void IterateWeakReferences(Isolate* isolate, MarkingVisitorType* visitor);
void ProcessWeakTables(PageSpace* page_space);
void ProcessObjectIdTable(Isolate* isolate);
// Called by anyone: finalize and accumulate stats from 'visitor'.
- void FinalizeResultsFrom(MarkingVisitor* visitor);
+ template<class MarkingVisitorType>
+ void FinalizeResultsFrom(MarkingVisitorType* visitor);
Heap* heap_;
« no previous file with comments | « no previous file | runtime/vm/gc_marker.cc » ('j') | runtime/vm/gc_marker.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698