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

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

Issue 18259014: Object ID Ring with tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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/object_id_ring_test.cc ('k') | runtime/vm/scavenger.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_SCAVENGER_H_ 5 #ifndef VM_SCAVENGER_H_
6 #define VM_SCAVENGER_H_ 6 #define VM_SCAVENGER_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "platform/utils.h" 9 #include "platform/utils.h"
10 #include "vm/flags.h" 10 #include "vm/flags.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 kProcessToSpace = 2, 96 kProcessToSpace = 2,
97 kIterateWeaks = 3, 97 kIterateWeaks = 3,
98 // Data 98 // Data
99 kStoreBufferEntries = 0, 99 kStoreBufferEntries = 0,
100 kStoreBufferBlockEntries = 1 100 kStoreBufferBlockEntries = 1
101 }; 101 };
102 102
103 uword FirstObjectStart() const { return to_->start() | object_alignment_; } 103 uword FirstObjectStart() const { return to_->start() | object_alignment_; }
104 void Prologue(Isolate* isolate, bool invoke_api_callbacks); 104 void Prologue(Isolate* isolate, bool invoke_api_callbacks);
105 void IterateStoreBuffers(Isolate* isolate, ScavengerVisitor* visitor); 105 void IterateStoreBuffers(Isolate* isolate, ScavengerVisitor* visitor);
106 void IterateObjectIdTable(Isolate* isolate, ScavengerVisitor* visitor);
106 void IterateRoots(Isolate* isolate, 107 void IterateRoots(Isolate* isolate,
107 ScavengerVisitor* visitor, 108 ScavengerVisitor* visitor,
108 bool visit_prologue_weak_persistent_handles); 109 bool visit_prologue_weak_persistent_handles);
109 void IterateWeakProperties(Isolate* isolate, ScavengerVisitor* visitor); 110 void IterateWeakProperties(Isolate* isolate, ScavengerVisitor* visitor);
110 void IterateWeakReferences(Isolate* isolate, ScavengerVisitor* visitor); 111 void IterateWeakReferences(Isolate* isolate, ScavengerVisitor* visitor);
111 void IterateWeakRoots(Isolate* isolate, 112 void IterateWeakRoots(Isolate* isolate,
112 HandleVisitor* visitor, 113 HandleVisitor* visitor,
113 bool visit_prologue_weak_persistent_handles); 114 bool visit_prologue_weak_persistent_handles);
114 void ProcessToSpace(ScavengerVisitor* visitor); 115 void ProcessToSpace(ScavengerVisitor* visitor);
115 uword ProcessWeakProperty(RawWeakProperty* raw_weak, 116 uword ProcessWeakProperty(RawWeakProperty* raw_weak,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 168
168 friend class ScavengerVisitor; 169 friend class ScavengerVisitor;
169 friend class ScavengerWeakVisitor; 170 friend class ScavengerWeakVisitor;
170 171
171 DISALLOW_COPY_AND_ASSIGN(Scavenger); 172 DISALLOW_COPY_AND_ASSIGN(Scavenger);
172 }; 173 };
173 174
174 } // namespace dart 175 } // namespace dart
175 176
176 #endif // VM_SCAVENGER_H_ 177 #endif // VM_SCAVENGER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object_id_ring_test.cc ('k') | runtime/vm/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698