| 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/dart.h" | 10 #include "vm/dart.h" |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 } | 204 } |
| 205 | 205 |
| 206 void IncrementCollections() { | 206 void IncrementCollections() { |
| 207 collections_++; | 207 collections_++; |
| 208 } | 208 } |
| 209 | 209 |
| 210 intptr_t collections() const { | 210 intptr_t collections() const { |
| 211 return collections_; | 211 return collections_; |
| 212 } | 212 } |
| 213 | 213 |
| 214 void PrintToJSONObject(JSONObject* object); | 214 void PrintToJSONObject(JSONObject* object) const; |
| 215 | 215 |
| 216 void AllocateExternal(intptr_t size); | 216 void AllocateExternal(intptr_t size); |
| 217 void FreeExternal(intptr_t size); | 217 void FreeExternal(intptr_t size); |
| 218 | 218 |
| 219 private: | 219 private: |
| 220 // Ids for time and data records in Heap::GCStats. | 220 // Ids for time and data records in Heap::GCStats. |
| 221 enum { | 221 enum { |
| 222 // Time | 222 // Time |
| 223 kVisitIsolateRoots = 0, | 223 kVisitIsolateRoots = 0, |
| 224 kIterateStoreBuffers = 1, | 224 kIterateStoreBuffers = 1, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 | 312 |
| 313 friend class ScavengerVisitor; | 313 friend class ScavengerVisitor; |
| 314 friend class ScavengerWeakVisitor; | 314 friend class ScavengerWeakVisitor; |
| 315 | 315 |
| 316 DISALLOW_COPY_AND_ASSIGN(Scavenger); | 316 DISALLOW_COPY_AND_ASSIGN(Scavenger); |
| 317 }; | 317 }; |
| 318 | 318 |
| 319 } // namespace dart | 319 } // namespace dart |
| 320 | 320 |
| 321 #endif // VM_SCAVENGER_H_ | 321 #endif // VM_SCAVENGER_H_ |
| OLD | NEW |