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

Unified Diff: runtime/vm/gc_marker.cc

Issue 10502004: - Add an isolate field to visitors. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/gc_marker.cc
===================================================================
--- runtime/vm/gc_marker.cc (revision 8203)
+++ runtime/vm/gc_marker.cc (working copy)
@@ -116,8 +116,12 @@
class MarkingVisitor : public ObjectPointerVisitor {
public:
- MarkingVisitor(Heap* heap, PageSpace* page_space, MarkingStack* marking_stack)
- : heap_(heap),
+ MarkingVisitor(Isolate* isolate,
+ Heap* heap,
+ PageSpace* page_space,
+ MarkingStack* marking_stack)
+ : ObjectPointerVisitor(isolate),
+ heap_(heap),
vm_heap_(Dart::vm_isolate()->heap()),
page_space_(page_space),
marking_stack_(marking_stack) {
@@ -314,7 +318,7 @@
bool invoke_api_callbacks) {
MarkingStack marking_stack;
Prologue(isolate, invoke_api_callbacks);
- MarkingVisitor mark(heap_, page_space, &marking_stack);
+ MarkingVisitor mark(isolate, heap_, page_space, &marking_stack);
IterateRoots(isolate, &mark, !invoke_api_callbacks);
DrainMarkingStack(isolate, &mark);
IterateWeakReferences(isolate, &mark);
« no previous file with comments | « no previous file | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698