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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 | 271 |
272 Heap(); | 272 Heap(); |
273 | 273 |
274 uword AllocateNew(intptr_t size); | 274 uword AllocateNew(intptr_t size); |
275 uword AllocateOld(intptr_t size, HeapPage::PageType type); | 275 uword AllocateOld(intptr_t size, HeapPage::PageType type); |
276 | 276 |
277 // GC stats collection. | 277 // GC stats collection. |
278 void RecordBeforeGC(Space space, GCReason reason); | 278 void RecordBeforeGC(Space space, GCReason reason); |
279 void RecordAfterGC(); | 279 void RecordAfterGC(); |
280 void PrintStats(); | 280 void PrintStats(); |
281 void UpdateObjectHistogram(); | |
282 void UpdateClassHeapStatsBeforeGC(Heap::Space space); | 281 void UpdateClassHeapStatsBeforeGC(Heap::Space space); |
283 | 282 |
284 // The different spaces used for allocation. | 283 // The different spaces used for allocation. |
285 Scavenger* new_space_; | 284 Scavenger* new_space_; |
286 PageSpace* old_space_; | 285 PageSpace* old_space_; |
287 | 286 |
288 WeakTable* new_weak_tables_[kNumWeakSelectors]; | 287 WeakTable* new_weak_tables_[kNumWeakSelectors]; |
289 WeakTable* old_weak_tables_[kNumWeakSelectors]; | 288 WeakTable* old_weak_tables_[kNumWeakSelectors]; |
290 | 289 |
291 // GC stats collection. | 290 // GC stats collection. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 NoHeapGrowthControlScope(); | 324 NoHeapGrowthControlScope(); |
326 ~NoHeapGrowthControlScope(); | 325 ~NoHeapGrowthControlScope(); |
327 private: | 326 private: |
328 bool current_growth_controller_state_; | 327 bool current_growth_controller_state_; |
329 DISALLOW_COPY_AND_ASSIGN(NoHeapGrowthControlScope); | 328 DISALLOW_COPY_AND_ASSIGN(NoHeapGrowthControlScope); |
330 }; | 329 }; |
331 | 330 |
332 } // namespace dart | 331 } // namespace dart |
333 | 332 |
334 #endif // VM_HEAP_H_ | 333 #endif // VM_HEAP_H_ |
OLD | NEW |