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_HEAP_H_ | 5 #ifndef VM_HEAP_H_ |
6 #define VM_HEAP_H_ | 6 #define VM_HEAP_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
10 #include "vm/flags.h" | 10 #include "vm/flags.h" |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 Heap(); | 270 Heap(); |
271 | 271 |
272 uword AllocateNew(intptr_t size); | 272 uword AllocateNew(intptr_t size); |
273 uword AllocateOld(intptr_t size, HeapPage::PageType type); | 273 uword AllocateOld(intptr_t size, HeapPage::PageType type); |
274 | 274 |
275 // GC stats collection. | 275 // GC stats collection. |
276 void RecordBeforeGC(Space space, GCReason reason); | 276 void RecordBeforeGC(Space space, GCReason reason); |
277 void RecordAfterGC(); | 277 void RecordAfterGC(); |
278 void PrintStats(); | 278 void PrintStats(); |
279 void UpdateObjectHistogram(); | 279 void UpdateObjectHistogram(); |
| 280 void UpdateClassStats(); |
280 | 281 |
281 // The different spaces used for allocation. | 282 // The different spaces used for allocation. |
282 Scavenger* new_space_; | 283 Scavenger* new_space_; |
283 PageSpace* old_space_; | 284 PageSpace* old_space_; |
284 | 285 |
285 WeakTable* new_weak_tables_[kNumWeakSelectors]; | 286 WeakTable* new_weak_tables_[kNumWeakSelectors]; |
286 WeakTable* old_weak_tables_[kNumWeakSelectors]; | 287 WeakTable* old_weak_tables_[kNumWeakSelectors]; |
287 | 288 |
288 // GC stats collection. | 289 // GC stats collection. |
289 GCStats stats_; | 290 GCStats stats_; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 NoHeapGrowthControlScope(); | 323 NoHeapGrowthControlScope(); |
323 ~NoHeapGrowthControlScope(); | 324 ~NoHeapGrowthControlScope(); |
324 private: | 325 private: |
325 bool current_growth_controller_state_; | 326 bool current_growth_controller_state_; |
326 DISALLOW_COPY_AND_ASSIGN(NoHeapGrowthControlScope); | 327 DISALLOW_COPY_AND_ASSIGN(NoHeapGrowthControlScope); |
327 }; | 328 }; |
328 | 329 |
329 } // namespace dart | 330 } // namespace dart |
330 | 331 |
331 #endif // VM_HEAP_H_ | 332 #endif // VM_HEAP_H_ |
OLD | NEW |