| 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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 // - Objects reachable due to host application logic like object groups | 610 // - Objects reachable due to host application logic like object groups |
| 611 // or implicit references' groups. | 611 // or implicit references' groups. |
| 612 void ProcessEphemeralMarking(ObjectVisitor* visitor, | 612 void ProcessEphemeralMarking(ObjectVisitor* visitor, |
| 613 bool only_process_harmony_weak_collections); | 613 bool only_process_harmony_weak_collections); |
| 614 | 614 |
| 615 // If the call-site of the top optimized code was not prepared for | 615 // If the call-site of the top optimized code was not prepared for |
| 616 // deoptimization, then treat the maps in the code as strong pointers, | 616 // deoptimization, then treat the maps in the code as strong pointers, |
| 617 // otherwise a map can die and deoptimize the code. | 617 // otherwise a map can die and deoptimize the code. |
| 618 void ProcessTopOptimizedFrame(ObjectVisitor* visitor); | 618 void ProcessTopOptimizedFrame(ObjectVisitor* visitor); |
| 619 | 619 |
| 620 // Retain dying maps for <FLAG_retain_maps_for_n_gc> garbage collections to | |
| 621 // increase chances of reusing of map transition tree in future. | |
| 622 void RetainMaps(); | |
| 623 | |
| 624 // Collects a list of dependent code from maps embedded in optimize code. | 620 // Collects a list of dependent code from maps embedded in optimize code. |
| 625 DependentCode* DependentCodeListFromNonLiveMaps(); | 621 DependentCode* DependentCodeListFromNonLiveMaps(); |
| 626 | 622 |
| 627 // Mark objects reachable (transitively) from objects in the marking | 623 // Mark objects reachable (transitively) from objects in the marking |
| 628 // stack. This function empties the marking stack, but may leave | 624 // stack. This function empties the marking stack, but may leave |
| 629 // overflowed objects in the heap, in which case the marking stack's | 625 // overflowed objects in the heap, in which case the marking stack's |
| 630 // overflow flag will be set. | 626 // overflow flag will be set. |
| 631 void EmptyMarkingDeque(); | 627 void EmptyMarkingDeque(); |
| 632 | 628 |
| 633 // Refill the marking stack with overflowed objects from the heap. This | 629 // Refill the marking stack with overflowed objects from the heap. This |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 private: | 854 private: |
| 859 MarkCompactCollector* collector_; | 855 MarkCompactCollector* collector_; |
| 860 }; | 856 }; |
| 861 | 857 |
| 862 | 858 |
| 863 const char* AllocationSpaceName(AllocationSpace space); | 859 const char* AllocationSpaceName(AllocationSpace space); |
| 864 } // namespace internal | 860 } // namespace internal |
| 865 } // namespace v8 | 861 } // namespace v8 |
| 866 | 862 |
| 867 #endif // V8_HEAP_MARK_COMPACT_H_ | 863 #endif // V8_HEAP_MARK_COMPACT_H_ |
| OLD | NEW |