| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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_PAGES_H_ | 5 #ifndef VM_PAGES_H_ |
| 6 #define VM_PAGES_H_ | 6 #define VM_PAGES_H_ |
| 7 | 7 |
| 8 #include "vm/freelist.h" | 8 #include "vm/freelist.h" |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/virtual_memory.h" | 10 #include "vm/virtual_memory.h" |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 | 233 |
| 234 void IncrementCollections() { | 234 void IncrementCollections() { |
| 235 collections_++; | 235 collections_++; |
| 236 } | 236 } |
| 237 | 237 |
| 238 intptr_t collections() const { | 238 intptr_t collections() const { |
| 239 return collections_; | 239 return collections_; |
| 240 } | 240 } |
| 241 | 241 |
| 242 void PrintToJSONObject(JSONObject* object); | 242 void PrintToJSONObject(JSONObject* object); |
| 243 void PrintHeapMapToJSONStream(JSONStream* stream); | 243 void PrintHeapMapToJSONStream(Isolate* isolate, JSONStream* stream); |
| 244 | 244 |
| 245 void AllocateExternal(intptr_t size); | 245 void AllocateExternal(intptr_t size); |
| 246 void FreeExternal(intptr_t size); | 246 void FreeExternal(intptr_t size); |
| 247 | 247 |
| 248 private: | 248 private: |
| 249 // Ids for time and data records in Heap::GCStats. | 249 // Ids for time and data records in Heap::GCStats. |
| 250 enum { | 250 enum { |
| 251 // Time | 251 // Time |
| 252 kMarkObjects = 0, | 252 kMarkObjects = 0, |
| 253 kResetFreeLists = 1, | 253 kResetFreeLists = 1, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 intptr_t collections_; | 298 intptr_t collections_; |
| 299 | 299 |
| 300 friend class PageSpaceController; | 300 friend class PageSpaceController; |
| 301 | 301 |
| 302 DISALLOW_IMPLICIT_CONSTRUCTORS(PageSpace); | 302 DISALLOW_IMPLICIT_CONSTRUCTORS(PageSpace); |
| 303 }; | 303 }; |
| 304 | 304 |
| 305 } // namespace dart | 305 } // namespace dart |
| 306 | 306 |
| 307 #endif // VM_PAGES_H_ | 307 #endif // VM_PAGES_H_ |
| OLD | NEW |