| 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 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 // Mark objects reachable (transitively) from objects in the marking stack | 765 // Mark objects reachable (transitively) from objects in the marking stack |
| 766 // or overflowed in the heap. | 766 // or overflowed in the heap. |
| 767 void ProcessMarkingDeque(); | 767 void ProcessMarkingDeque(); |
| 768 | 768 |
| 769 // Mark objects reachable (transitively) from objects in the marking stack | 769 // Mark objects reachable (transitively) from objects in the marking stack |
| 770 // or overflowed in the heap. This respects references only considered in | 770 // or overflowed in the heap. This respects references only considered in |
| 771 // the final atomic marking pause including the following: | 771 // the final atomic marking pause including the following: |
| 772 // - Processing of objects reachable through Harmony WeakMaps. | 772 // - Processing of objects reachable through Harmony WeakMaps. |
| 773 // - Objects reachable due to host application logic like object groups | 773 // - Objects reachable due to host application logic like object groups |
| 774 // or implicit references' groups. | 774 // or implicit references' groups. |
| 775 void ProcessEphemeralMarking(ObjectVisitor* visitor); | 775 void ProcessEphemeralMarking(ObjectVisitor* visitor, |
| 776 bool only_process_harmony_weak_collections); |
| 776 | 777 |
| 777 // If the call-site of the top optimized code was not prepared for | 778 // If the call-site of the top optimized code was not prepared for |
| 778 // deoptimization, then treat the maps in the code as strong pointers, | 779 // deoptimization, then treat the maps in the code as strong pointers, |
| 779 // otherwise a map can die and deoptimize the code. | 780 // otherwise a map can die and deoptimize the code. |
| 780 void ProcessTopOptimizedFrame(ObjectVisitor* visitor); | 781 void ProcessTopOptimizedFrame(ObjectVisitor* visitor); |
| 781 | 782 |
| 782 // Mark objects reachable (transitively) from objects in the marking | 783 // Mark objects reachable (transitively) from objects in the marking |
| 783 // stack. This function empties the marking stack, but may leave | 784 // stack. This function empties the marking stack, but may leave |
| 784 // overflowed objects in the heap, in which case the marking stack's | 785 // overflowed objects in the heap, in which case the marking stack's |
| 785 // overflow flag will be set. | 786 // overflow flag will be set. |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 private: | 953 private: |
| 953 MarkCompactCollector* collector_; | 954 MarkCompactCollector* collector_; |
| 954 }; | 955 }; |
| 955 | 956 |
| 956 | 957 |
| 957 const char* AllocationSpaceName(AllocationSpace space); | 958 const char* AllocationSpaceName(AllocationSpace space); |
| 958 } | 959 } |
| 959 } // namespace v8::internal | 960 } // namespace v8::internal |
| 960 | 961 |
| 961 #endif // V8_HEAP_MARK_COMPACT_H_ | 962 #endif // V8_HEAP_MARK_COMPACT_H_ |
| OLD | NEW |