OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_HEAP_HEAP_H_ | 5 #ifndef V8_HEAP_HEAP_H_ |
6 #define V8_HEAP_HEAP_H_ | 6 #define V8_HEAP_HEAP_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
294 class HeapObjectsFilter; | 294 class HeapObjectsFilter; |
295 class HeapStats; | 295 class HeapStats; |
296 class HistogramTimer; | 296 class HistogramTimer; |
297 class Isolate; | 297 class Isolate; |
298 class MemoryReducer; | 298 class MemoryReducer; |
299 class ObjectStats; | 299 class ObjectStats; |
300 class Scavenger; | 300 class Scavenger; |
301 class ScavengeJob; | 301 class ScavengeJob; |
302 class WeakObjectRetainer; | 302 class WeakObjectRetainer; |
303 | 303 |
304 typedef void (*ObjectSlotCallback)(HeapObject** from, HeapObject* to); | 304 typedef void (*ObjectSlotCallback)(HeapObject** from, HeapObject* to, |
305 bool force_promotion); | |
ulan
2016/05/23 11:18:38
Please make it an enum.
| |
305 | 306 |
306 // A queue of objects promoted during scavenge. Each object is accompanied | 307 // A queue of objects promoted during scavenge. Each object is accompanied |
307 // by it's size to avoid dereferencing a map pointer for scanning. | 308 // by it's size to avoid dereferencing a map pointer for scanning. |
308 // The last page in to-space is used for the promotion queue. On conflict | 309 // The last page in to-space is used for the promotion queue. On conflict |
309 // during scavenge, the promotion queue is allocated externally and all | 310 // during scavenge, the promotion queue is allocated externally and all |
310 // entries are copied to the external queue. | 311 // entries are copied to the external queue. |
311 class PromotionQueue { | 312 class PromotionQueue { |
312 public: | 313 public: |
313 explicit PromotionQueue(Heap* heap) | 314 explicit PromotionQueue(Heap* heap) |
314 : front_(NULL), | 315 : front_(NULL), |
(...skipping 2332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2647 friend class LargeObjectSpace; | 2648 friend class LargeObjectSpace; |
2648 friend class NewSpace; | 2649 friend class NewSpace; |
2649 friend class PagedSpace; | 2650 friend class PagedSpace; |
2650 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2651 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2651 }; | 2652 }; |
2652 | 2653 |
2653 } // namespace internal | 2654 } // namespace internal |
2654 } // namespace v8 | 2655 } // namespace v8 |
2655 | 2656 |
2656 #endif // V8_HEAP_HEAP_H_ | 2657 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |