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 |
674 // Process non-live references in maps and optimized code. | 679 // Process non-live references in maps and optimized code. |
675 void ProcessWeakReferences(); | 680 void ProcessWeakReferences(); |
676 | 681 |
677 // ----------------------------------------------------------------------- | 682 // ----------------------------------------------------------------------- |
678 // Phase 2: Sweeping to clear mark bits and free non-live objects for | 683 // Phase 2: Sweeping to clear mark bits and free non-live objects for |
679 // a non-compacting collection. | 684 // a non-compacting collection. |
680 // | 685 // |
681 // Before: Live objects are marked and non-live objects are unmarked. | 686 // Before: Live objects are marked and non-live objects are unmarked. |
682 // | 687 // |
683 // After: Live objects are unmarked, non-live regions have been added to | 688 // 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... |
848 private: | 853 private: |
849 MarkCompactCollector* collector_; | 854 MarkCompactCollector* collector_; |
850 }; | 855 }; |
851 | 856 |
852 | 857 |
853 const char* AllocationSpaceName(AllocationSpace space); | 858 const char* AllocationSpaceName(AllocationSpace space); |
854 } // namespace internal | 859 } // namespace internal |
855 } // namespace v8 | 860 } // namespace v8 |
856 | 861 |
857 #endif // V8_HEAP_MARK_COMPACT_H_ | 862 #endif // V8_HEAP_MARK_COMPACT_H_ |
OLD | NEW |