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 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1668 void UpdateNewSpaceReferencesInExternalStringTable( | 1668 void UpdateNewSpaceReferencesInExternalStringTable( |
1669 ExternalStringTableUpdaterCallback updater_func); | 1669 ExternalStringTableUpdaterCallback updater_func); |
1670 | 1670 |
1671 void UpdateReferencesInExternalStringTable( | 1671 void UpdateReferencesInExternalStringTable( |
1672 ExternalStringTableUpdaterCallback updater_func); | 1672 ExternalStringTableUpdaterCallback updater_func); |
1673 | 1673 |
1674 void ProcessAllWeakReferences(WeakObjectRetainer* retainer); | 1674 void ProcessAllWeakReferences(WeakObjectRetainer* retainer); |
1675 void ProcessYoungWeakReferences(WeakObjectRetainer* retainer); | 1675 void ProcessYoungWeakReferences(WeakObjectRetainer* retainer); |
1676 void ProcessNativeContexts(WeakObjectRetainer* retainer); | 1676 void ProcessNativeContexts(WeakObjectRetainer* retainer); |
1677 void ProcessAllocationSites(WeakObjectRetainer* retainer); | 1677 void ProcessAllocationSites(WeakObjectRetainer* retainer); |
| 1678 void ProcessWeakListRoots(WeakObjectRetainer* retainer); |
1678 | 1679 |
1679 // =========================================================================== | 1680 // =========================================================================== |
1680 // GC statistics. ============================================================ | 1681 // GC statistics. ============================================================ |
1681 // =========================================================================== | 1682 // =========================================================================== |
1682 | 1683 |
1683 inline intptr_t OldGenerationSpaceAvailable() { | 1684 inline intptr_t OldGenerationSpaceAvailable() { |
1684 return old_generation_allocation_limit_ - PromotedTotalSize(); | 1685 return old_generation_allocation_limit_ - PromotedTotalSize(); |
1685 } | 1686 } |
1686 | 1687 |
1687 // Returns maximum GC pause. | 1688 // Returns maximum GC pause. |
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2624 friend class LargeObjectSpace; | 2625 friend class LargeObjectSpace; |
2625 friend class NewSpace; | 2626 friend class NewSpace; |
2626 friend class PagedSpace; | 2627 friend class PagedSpace; |
2627 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2628 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2628 }; | 2629 }; |
2629 | 2630 |
2630 } // namespace internal | 2631 } // namespace internal |
2631 } // namespace v8 | 2632 } // namespace v8 |
2632 | 2633 |
2633 #endif // V8_HEAP_HEAP_H_ | 2634 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |