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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 // We have to remove all encountered weak maps from the list of weak | 664 // We have to remove all encountered weak maps from the list of weak |
665 // collections when incremental marking is aborted. | 665 // collections when incremental marking is aborted. |
666 void AbortWeakCollections(); | 666 void AbortWeakCollections(); |
667 | 667 |
668 void ProcessAndClearWeakCells(); | 668 void ProcessAndClearWeakCells(); |
669 void AbortWeakCells(); | 669 void AbortWeakCells(); |
670 | 670 |
671 void ProcessAndClearTransitionArrays(); | 671 void ProcessAndClearTransitionArrays(); |
672 void AbortTransitionArrays(); | 672 void AbortTransitionArrays(); |
673 | 673 |
674 // After all reachable objects have been marked, those entries within | |
675 // optimized code maps that became unreachable are removed, potentially | |
676 // trimming or clearing out the entire optimized code map. | |
677 void ProcessAndClearOptimizedCodeMaps(); | |
678 | |
679 // Process non-live references in maps and optimized code. | 674 // Process non-live references in maps and optimized code. |
680 void ProcessWeakReferences(); | 675 void ProcessWeakReferences(); |
681 | 676 |
682 // ----------------------------------------------------------------------- | 677 // ----------------------------------------------------------------------- |
683 // Phase 2: Sweeping to clear mark bits and free non-live objects for | 678 // Phase 2: Sweeping to clear mark bits and free non-live objects for |
684 // a non-compacting collection. | 679 // a non-compacting collection. |
685 // | 680 // |
686 // Before: Live objects are marked and non-live objects are unmarked. | 681 // Before: Live objects are marked and non-live objects are unmarked. |
687 // | 682 // |
688 // After: Live objects are unmarked, non-live regions have been added to | 683 // After: Live objects are unmarked, non-live regions have been added to |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 private: | 848 private: |
854 MarkCompactCollector* collector_; | 849 MarkCompactCollector* collector_; |
855 }; | 850 }; |
856 | 851 |
857 | 852 |
858 const char* AllocationSpaceName(AllocationSpace space); | 853 const char* AllocationSpaceName(AllocationSpace space); |
859 } // namespace internal | 854 } // namespace internal |
860 } // namespace v8 | 855 } // namespace v8 |
861 | 856 |
862 #endif // V8_HEAP_MARK_COMPACT_H_ | 857 #endif // V8_HEAP_MARK_COMPACT_H_ |
OLD | NEW |