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

Side by Side Diff: runtime/vm/gc_marker.h

Issue 9531001: Implement weak references sets and provide an embedding API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address review comments 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/dart_api_state.h ('k') | runtime/vm/gc_marker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_GC_MARKER_H_ 5 #ifndef VM_GC_MARKER_H_
6 #define VM_GC_MARKER_H_ 6 #define VM_GC_MARKER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 explicit GCMarker(Heap* heap) : heap_(heap) { } 24 explicit GCMarker(Heap* heap) : heap_(heap) { }
25 ~GCMarker() { } 25 ~GCMarker() { }
26 26
27 void MarkObjects(Isolate* isolate, PageSpace* page_space); 27 void MarkObjects(Isolate* isolate, PageSpace* page_space);
28 28
29 private: 29 private:
30 void Prologue(Isolate* isolate); 30 void Prologue(Isolate* isolate);
31 void IterateRoots(Isolate* isolate, ObjectPointerVisitor* visitor); 31 void IterateRoots(Isolate* isolate, ObjectPointerVisitor* visitor);
32 void IterateWeakRoots(Isolate* isolate, HandleVisitor* visitor); 32 void IterateWeakRoots(Isolate* isolate, HandleVisitor* visitor);
33 void IterateWeakReferences(Isolate* isolate, MarkingVisitor* visitor);
33 void DrainMarkingStack(Isolate* isolate, MarkingVisitor* visitor); 34 void DrainMarkingStack(Isolate* isolate, MarkingVisitor* visitor);
34 35
35 Heap* heap_; 36 Heap* heap_;
36 37
37 DISALLOW_IMPLICIT_CONSTRUCTORS(GCMarker); 38 DISALLOW_IMPLICIT_CONSTRUCTORS(GCMarker);
38 }; 39 };
39 40
40 } // namespace dart 41 } // namespace dart
41 42
42 #endif // VM_GC_MARKER_H_ 43 #endif // VM_GC_MARKER_H_
OLDNEW
« 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