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_MARK_COMPACT_H_ | 5 #ifndef V8_HEAP_MARK_COMPACT_H_ |
6 #define V8_HEAP_MARK_COMPACT_H_ | 6 #define V8_HEAP_MARK_COMPACT_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 // Mark objects reachable (transitively) from objects in the marking stack | 698 // Mark objects reachable (transitively) from objects in the marking stack |
699 // or overflowed in the heap. | 699 // or overflowed in the heap. |
700 void ProcessMarkingDeque(); | 700 void ProcessMarkingDeque(); |
701 | 701 |
702 // Mark objects reachable (transitively) from objects in the marking stack | 702 // Mark objects reachable (transitively) from objects in the marking stack |
703 // or overflowed in the heap. This respects references only considered in | 703 // or overflowed in the heap. This respects references only considered in |
704 // the final atomic marking pause including the following: | 704 // the final atomic marking pause including the following: |
705 // - Processing of objects reachable through Harmony WeakMaps. | 705 // - Processing of objects reachable through Harmony WeakMaps. |
706 // - Objects reachable due to host application logic like object groups, | 706 // - Objects reachable due to host application logic like object groups, |
707 // implicit references' groups, or embedder heap tracing. | 707 // implicit references' groups, or embedder heap tracing. |
708 void ProcessEphemeralMarking(ObjectVisitor* visitor, | 708 void ProcessEphemeralMarking(bool only_process_harmony_weak_collections); |
709 bool only_process_harmony_weak_collections); | |
710 | 709 |
711 // If the call-site of the top optimized code was not prepared for | 710 // If the call-site of the top optimized code was not prepared for |
712 // deoptimization, then treat the maps in the code as strong pointers, | 711 // deoptimization, then treat the maps in the code as strong pointers, |
713 // otherwise a map can die and deoptimize the code. | 712 // otherwise a map can die and deoptimize the code. |
714 void ProcessTopOptimizedFrame(ObjectVisitor* visitor); | 713 void ProcessTopOptimizedFrame(RootMarkingVisitor* visitor); |
715 | 714 |
716 // Collects a list of dependent code from maps embedded in optimize code. | 715 // Collects a list of dependent code from maps embedded in optimize code. |
717 DependentCode* DependentCodeListFromNonLiveMaps(); | 716 DependentCode* DependentCodeListFromNonLiveMaps(); |
718 | 717 |
719 // Mark objects reachable (transitively) from objects in the marking | 718 // Mark objects reachable (transitively) from objects in the marking |
720 // stack. This function empties the marking stack, but may leave | 719 // stack. This function empties the marking stack, but may leave |
721 // overflowed objects in the heap, in which case the marking stack's | 720 // overflowed objects in the heap, in which case the marking stack's |
722 // overflow flag will be set. | 721 // overflow flag will be set. |
723 void EmptyMarkingDeque(); | 722 void EmptyMarkingDeque(); |
724 | 723 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 | 860 |
862 private: | 861 private: |
863 MarkCompactCollector* collector_; | 862 MarkCompactCollector* collector_; |
864 }; | 863 }; |
865 | 864 |
866 V8_EXPORT_PRIVATE const char* AllocationSpaceName(AllocationSpace space); | 865 V8_EXPORT_PRIVATE const char* AllocationSpaceName(AllocationSpace space); |
867 } // namespace internal | 866 } // namespace internal |
868 } // namespace v8 | 867 } // namespace v8 |
869 | 868 |
870 #endif // V8_HEAP_MARK_COMPACT_H_ | 869 #endif // V8_HEAP_MARK_COMPACT_H_ |
OLD | NEW |