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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 class HeapStats; | 284 class HeapStats; |
285 class HistogramTimer; | 285 class HistogramTimer; |
286 class InlineAllocationObserver; | 286 class InlineAllocationObserver; |
287 class Isolate; | 287 class Isolate; |
288 class MemoryReducer; | 288 class MemoryReducer; |
289 class ObjectStats; | 289 class ObjectStats; |
290 class Scavenger; | 290 class Scavenger; |
291 class ScavengeJob; | 291 class ScavengeJob; |
292 class WeakObjectRetainer; | 292 class WeakObjectRetainer; |
293 | 293 |
| 294 typedef void (*ObjectSlotCallback)(HeapObject** from, HeapObject* to); |
294 | 295 |
295 // A queue of objects promoted during scavenge. Each object is accompanied | 296 // A queue of objects promoted during scavenge. Each object is accompanied |
296 // by it's size to avoid dereferencing a map pointer for scanning. | 297 // by it's size to avoid dereferencing a map pointer for scanning. |
297 // The last page in to-space is used for the promotion queue. On conflict | 298 // The last page in to-space is used for the promotion queue. On conflict |
298 // during scavenge, the promotion queue is allocated externally and all | 299 // during scavenge, the promotion queue is allocated externally and all |
299 // entries are copied to the external queue. | 300 // entries are copied to the external queue. |
300 class PromotionQueue { | 301 class PromotionQueue { |
301 public: | 302 public: |
302 explicit PromotionQueue(Heap* heap) | 303 explicit PromotionQueue(Heap* heap) |
303 : front_(NULL), | 304 : front_(NULL), |
(...skipping 2326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2630 | 2631 |
2631 private: | 2632 private: |
2632 friend class NewSpace; | 2633 friend class NewSpace; |
2633 DISALLOW_COPY_AND_ASSIGN(InlineAllocationObserver); | 2634 DISALLOW_COPY_AND_ASSIGN(InlineAllocationObserver); |
2634 }; | 2635 }; |
2635 | 2636 |
2636 } // namespace internal | 2637 } // namespace internal |
2637 } // namespace v8 | 2638 } // namespace v8 |
2638 | 2639 |
2639 #endif // V8_HEAP_HEAP_H_ | 2640 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |