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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 Thread* thread, ApiCallbacks api_callbacks, GCReason reason); | 316 Thread* thread, ApiCallbacks api_callbacks, GCReason reason); |
317 | 317 |
318 // GC stats collection. | 318 // GC stats collection. |
319 void RecordBeforeGC(Space space, GCReason reason); | 319 void RecordBeforeGC(Space space, GCReason reason); |
320 void RecordAfterGC(Space space); | 320 void RecordAfterGC(Space space); |
321 void PrintStats(); | 321 void PrintStats(); |
322 void UpdateClassHeapStatsBeforeGC(Heap::Space space); | 322 void UpdateClassHeapStatsBeforeGC(Heap::Space space); |
323 void UpdatePretenurePolicy(); | 323 void UpdatePretenurePolicy(); |
324 | 324 |
325 // Updates gc in progress flags. | 325 // Updates gc in progress flags. |
326 bool BeginNewSpaceGC(); | 326 bool BeginNewSpaceGC(Thread* thread); |
327 void EndNewSpaceGC(); | 327 void EndNewSpaceGC(); |
328 bool BeginOldSpaceGC(); | 328 bool BeginOldSpaceGC(Thread* thread); |
329 void EndOldSpaceGC(); | 329 void EndOldSpaceGC(); |
330 | 330 |
331 // If this heap is non-empty, updates start and end to the smallest range that | 331 // If this heap is non-empty, updates start and end to the smallest range that |
332 // contains both the original [start, end) and the [lowest, highest) addresses | 332 // contains both the original [start, end) and the [lowest, highest) addresses |
333 // of this heap. | 333 // of this heap. |
334 void GetMergedAddressRange(uword* start, uword* end) const; | 334 void GetMergedAddressRange(uword* start, uword* end) const; |
335 | 335 |
336 Isolate* isolate_; | 336 Isolate* isolate_; |
337 | 337 |
338 // The different spaces used for allocation. | 338 // The different spaces used for allocation. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 explicit WritableVMIsolateScope(Thread* thread, bool include_code_pages); | 389 explicit WritableVMIsolateScope(Thread* thread, bool include_code_pages); |
390 ~WritableVMIsolateScope(); | 390 ~WritableVMIsolateScope(); |
391 | 391 |
392 private: | 392 private: |
393 bool include_code_pages_; | 393 bool include_code_pages_; |
394 }; | 394 }; |
395 | 395 |
396 } // namespace dart | 396 } // namespace dart |
397 | 397 |
398 #endif // VM_HEAP_H_ | 398 #endif // VM_HEAP_H_ |
OLD | NEW |