OLD | NEW |
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 private: | 90 private: |
91 // Ids for time and data records in Heap::GCStats. | 91 // Ids for time and data records in Heap::GCStats. |
92 enum { | 92 enum { |
93 // Time | 93 // Time |
94 kVisitIsolateRoots = 0, | 94 kVisitIsolateRoots = 0, |
95 kIterateStoreBuffers = 1, | 95 kIterateStoreBuffers = 1, |
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 kStoreBufferVisited = 1, |
| 101 kStoreBufferPointers = 2, |
| 102 kToKBAfterStoreBuffer = 3 |
101 }; | 103 }; |
102 | 104 |
103 uword FirstObjectStart() const { return to_->start() | object_alignment_; } | 105 uword FirstObjectStart() const { return to_->start() | object_alignment_; } |
104 void Prologue(Isolate* isolate, bool invoke_api_callbacks); | 106 void Prologue(Isolate* isolate, bool invoke_api_callbacks); |
105 void IterateStoreBuffers(Isolate* isolate, ScavengerVisitor* visitor); | 107 void IterateStoreBuffers(Isolate* isolate, ScavengerVisitor* visitor); |
106 void IterateObjectIdTable(Isolate* isolate, ScavengerVisitor* visitor); | 108 void IterateObjectIdTable(Isolate* isolate, ScavengerVisitor* visitor); |
107 void IterateRoots(Isolate* isolate, | 109 void IterateRoots(Isolate* isolate, |
108 ScavengerVisitor* visitor, | 110 ScavengerVisitor* visitor, |
109 bool visit_prologue_weak_persistent_handles); | 111 bool visit_prologue_weak_persistent_handles); |
110 void IterateWeakProperties(Isolate* isolate, ScavengerVisitor* visitor); | 112 void IterateWeakProperties(Isolate* isolate, ScavengerVisitor* visitor); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 170 |
169 friend class ScavengerVisitor; | 171 friend class ScavengerVisitor; |
170 friend class ScavengerWeakVisitor; | 172 friend class ScavengerWeakVisitor; |
171 | 173 |
172 DISALLOW_COPY_AND_ASSIGN(Scavenger); | 174 DISALLOW_COPY_AND_ASSIGN(Scavenger); |
173 }; | 175 }; |
174 | 176 |
175 } // namespace dart | 177 } // namespace dart |
176 | 178 |
177 #endif // VM_SCAVENGER_H_ | 179 #endif // VM_SCAVENGER_H_ |
OLD | NEW |