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 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 // - Objects reachable due to host application logic like object groups | 780 // - Objects reachable due to host application logic like object groups |
781 // or implicit references' groups. | 781 // or implicit references' groups. |
782 void ProcessEphemeralMarking(ObjectVisitor* visitor, | 782 void ProcessEphemeralMarking(ObjectVisitor* visitor, |
783 bool only_process_harmony_weak_collections); | 783 bool only_process_harmony_weak_collections); |
784 | 784 |
785 // If the call-site of the top optimized code was not prepared for | 785 // If the call-site of the top optimized code was not prepared for |
786 // deoptimization, then treat the maps in the code as strong pointers, | 786 // deoptimization, then treat the maps in the code as strong pointers, |
787 // otherwise a map can die and deoptimize the code. | 787 // otherwise a map can die and deoptimize the code. |
788 void ProcessTopOptimizedFrame(ObjectVisitor* visitor); | 788 void ProcessTopOptimizedFrame(ObjectVisitor* visitor); |
789 | 789 |
| 790 // Retain dying maps for <FLAG_retain_maps_for_n_gc> garbage collections to |
| 791 // increase chances of reusing of map transition tree in future. |
| 792 void RetainMaps(); |
| 793 |
790 // Mark objects reachable (transitively) from objects in the marking | 794 // Mark objects reachable (transitively) from objects in the marking |
791 // stack. This function empties the marking stack, but may leave | 795 // stack. This function empties the marking stack, but may leave |
792 // overflowed objects in the heap, in which case the marking stack's | 796 // overflowed objects in the heap, in which case the marking stack's |
793 // overflow flag will be set. | 797 // overflow flag will be set. |
794 void EmptyMarkingDeque(); | 798 void EmptyMarkingDeque(); |
795 | 799 |
796 // Refill the marking stack with overflowed objects from the heap. This | 800 // Refill the marking stack with overflowed objects from the heap. This |
797 // function either leaves the marking stack full or clears the overflow | 801 // function either leaves the marking stack full or clears the overflow |
798 // flag on the marking stack. | 802 // flag on the marking stack. |
799 void RefillMarkingDeque(); | 803 void RefillMarkingDeque(); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 private: | 958 private: |
955 MarkCompactCollector* collector_; | 959 MarkCompactCollector* collector_; |
956 }; | 960 }; |
957 | 961 |
958 | 962 |
959 const char* AllocationSpaceName(AllocationSpace space); | 963 const char* AllocationSpaceName(AllocationSpace space); |
960 } | 964 } |
961 } // namespace v8::internal | 965 } // namespace v8::internal |
962 | 966 |
963 #endif // V8_HEAP_MARK_COMPACT_H_ | 967 #endif // V8_HEAP_MARK_COMPACT_H_ |
OLD | NEW |