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

Unified Diff: runtime/vm/gc_marker.h

Issue 9655011: Implement prologue weak persistent handles. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: final revision Created 8 years, 9 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 | « runtime/vm/dart_api_state.h ('k') | runtime/vm/gc_marker.cc » ('j') | no next file with comments »
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 43eb47248d0877253ce2f6815b1981e512b32b0e..000e9465b6a3145d6e8d9f1cc484ea6cf239ba59 100644
--- a/runtime/vm/gc_marker.h
+++ b/runtime/vm/gc_marker.h
@@ -24,13 +24,19 @@ class GCMarker : public ValueObject {
explicit GCMarker(Heap* heap) : heap_(heap) { }
~GCMarker() { }
- void MarkObjects(Isolate* isolate, PageSpace* page_space);
+ void MarkObjects(Isolate* isolate,
+ PageSpace* page_space,
+ bool invoke_api_callbacks);
private:
- void Prologue(Isolate* isolate);
- void Epilogue(Isolate* isolate);
- void IterateRoots(Isolate* isolate, ObjectPointerVisitor* visitor);
- void IterateWeakRoots(Isolate* isolate, HandleVisitor* visitor);
+ void Prologue(Isolate* isolate, bool invoke_api_callbacks);
+ void Epilogue(Isolate* isolate, bool invoke_api_callbacks);
+ void IterateRoots(Isolate* isolate,
+ ObjectPointerVisitor* visitor,
+ bool visit_prologue_weak_persistent_handles);
+ void IterateWeakRoots(Isolate* isolate,
+ HandleVisitor* visitor,
+ bool visit_prologue_weak_persistent_handles);
void IterateWeakReferences(Isolate* isolate, MarkingVisitor* visitor);
void DrainMarkingStack(Isolate* isolate, MarkingVisitor* visitor);
« no previous file with comments | « runtime/vm/dart_api_state.h ('k') | runtime/vm/gc_marker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698