| 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 RUNTIME_VM_SCAVENGER_H_ | 5 #ifndef RUNTIME_VM_SCAVENGER_H_ |
| 6 #define RUNTIME_VM_SCAVENGER_H_ | 6 #define RUNTIME_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/dart.h" | 10 #include "vm/dart.h" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 187 |
| 188 intptr_t collections() const { return collections_; } | 188 intptr_t collections() const { return collections_; } |
| 189 | 189 |
| 190 #ifndef PRODUCT | 190 #ifndef PRODUCT |
| 191 void PrintToJSONObject(JSONObject* object) const; | 191 void PrintToJSONObject(JSONObject* object) const; |
| 192 #endif // !PRODUCT | 192 #endif // !PRODUCT |
| 193 | 193 |
| 194 void AllocateExternal(intptr_t size); | 194 void AllocateExternal(intptr_t size); |
| 195 void FreeExternal(intptr_t size); | 195 void FreeExternal(intptr_t size); |
| 196 | 196 |
| 197 void UnmarkNewSpace(); |
| 198 |
| 197 private: | 199 private: |
| 198 // Ids for time and data records in Heap::GCStats. | 200 // Ids for time and data records in Heap::GCStats. |
| 199 enum { | 201 enum { |
| 200 // Time | 202 // Time |
| 201 kDummyScavengeTime = 0, | 203 kDummyScavengeTime = 0, |
| 202 kSafePoint = 1, | 204 kSafePoint = 1, |
| 203 kVisitIsolateRoots = 2, | 205 kVisitIsolateRoots = 2, |
| 204 kIterateStoreBuffers = 3, | 206 kIterateStoreBuffers = 3, |
| 205 kProcessToSpace = 4, | 207 kProcessToSpace = 4, |
| 206 kIterateWeaks = 5, | 208 kIterateWeaks = 5, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 | 299 |
| 298 friend class ScavengerVisitor; | 300 friend class ScavengerVisitor; |
| 299 friend class ScavengerWeakVisitor; | 301 friend class ScavengerWeakVisitor; |
| 300 | 302 |
| 301 DISALLOW_COPY_AND_ASSIGN(Scavenger); | 303 DISALLOW_COPY_AND_ASSIGN(Scavenger); |
| 302 }; | 304 }; |
| 303 | 305 |
| 304 } // namespace dart | 306 } // namespace dart |
| 305 | 307 |
| 306 #endif // RUNTIME_VM_SCAVENGER_H_ | 308 #endif // RUNTIME_VM_SCAVENGER_H_ |
| OLD | NEW |