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

Side by Side Diff: vm/gc_marker.h

Issue 8761006: - Implement a simple old-generation marker. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years 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 | « tests/vm/vm.status ('k') | 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 #ifndef VM_GC_MARKER_H_
6 #define VM_GC_MARKER_H_
7
8 #include "vm/allocation.h"
9
10 namespace dart {
11
12 // Forward declarations.
13 class Heap;
14 class Isolate;
15 class MarkingVisitor;
16 class PageSpace;
17
18 // The class GCMarker is used to mark reachable old generation objects as part
19 // of the mark-sweep collection. The marking bit used is defined in RawObject.
20 class GCMarker : public ValueObject {
21 public:
22 explicit GCMarker(Heap* heap) : heap_(heap) { }
23 ~GCMarker() { }
24
25 void MarkObjects(Isolate* isolate, PageSpace* page_space);
26
27 private:
28 void Prologue(Isolate* isolate);
29 void IterateRoots(Isolate* isolate, MarkingVisitor* visitor);
30 void DrainMarkingStack(Isolate* isolate, MarkingVisitor* visitor);
31
32 Heap* heap_;
33
34 DISALLOW_IMPLICIT_CONSTRUCTORS(GCMarker);
35 };
36
37 } // namespace dart
38
39 #endif // VM_GC_MARKER_H_
OLDNEW
« no previous file with comments | « tests/vm/vm.status ('k') | vm/gc_marker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698