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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |