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 "src/base/bits.h" | 8 #include "src/base/bits.h" |
9 #include "src/heap/spaces.h" | 9 #include "src/heap/spaces.h" |
10 | 10 |
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 // Mark objects reachable (transitively) from objects in the marking stack | 757 // Mark objects reachable (transitively) from objects in the marking stack |
758 // or overflowed in the heap. | 758 // or overflowed in the heap. |
759 void ProcessMarkingDeque(); | 759 void ProcessMarkingDeque(); |
760 | 760 |
761 // Mark objects reachable (transitively) from objects in the marking stack | 761 // Mark objects reachable (transitively) from objects in the marking stack |
762 // or overflowed in the heap. This respects references only considered in | 762 // or overflowed in the heap. This respects references only considered in |
763 // the final atomic marking pause including the following: | 763 // the final atomic marking pause including the following: |
764 // - Processing of objects reachable through Harmony WeakMaps. | 764 // - Processing of objects reachable through Harmony WeakMaps. |
765 // - Objects reachable due to host application logic like object groups | 765 // - Objects reachable due to host application logic like object groups |
766 // or implicit references' groups. | 766 // or implicit references' groups. |
767 void ProcessEphemeralMarking(ObjectVisitor* visitor); | 767 void ProcessEphemeralMarking(ObjectVisitor* visitor, |
| 768 bool only_process_harmony_weak_collections); |
768 | 769 |
769 // If the call-site of the top optimized code was not prepared for | 770 // If the call-site of the top optimized code was not prepared for |
770 // deoptimization, then treat the maps in the code as strong pointers, | 771 // deoptimization, then treat the maps in the code as strong pointers, |
771 // otherwise a map can die and deoptimize the code. | 772 // otherwise a map can die and deoptimize the code. |
772 void ProcessTopOptimizedFrame(ObjectVisitor* visitor); | 773 void ProcessTopOptimizedFrame(ObjectVisitor* visitor); |
773 | 774 |
774 // Mark objects reachable (transitively) from objects in the marking | 775 // Mark objects reachable (transitively) from objects in the marking |
775 // stack. This function empties the marking stack, but may leave | 776 // stack. This function empties the marking stack, but may leave |
776 // overflowed objects in the heap, in which case the marking stack's | 777 // overflowed objects in the heap, in which case the marking stack's |
777 // overflow flag will be set. | 778 // overflow flag will be set. |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 private: | 943 private: |
943 MarkCompactCollector* collector_; | 944 MarkCompactCollector* collector_; |
944 }; | 945 }; |
945 | 946 |
946 | 947 |
947 const char* AllocationSpaceName(AllocationSpace space); | 948 const char* AllocationSpaceName(AllocationSpace space); |
948 } | 949 } |
949 } // namespace v8::internal | 950 } // namespace v8::internal |
950 | 951 |
951 #endif // V8_HEAP_MARK_COMPACT_H_ | 952 #endif // V8_HEAP_MARK_COMPACT_H_ |
OLD | NEW |