| 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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 // We have to remove all encountered weak maps from the list of weak | 673 // We have to remove all encountered weak maps from the list of weak |
| 674 // collections when incremental marking is aborted. | 674 // collections when incremental marking is aborted. |
| 675 void AbortWeakCollections(); | 675 void AbortWeakCollections(); |
| 676 | 676 |
| 677 void ProcessAndClearWeakCells(); | 677 void ProcessAndClearWeakCells(); |
| 678 void AbortWeakCells(); | 678 void AbortWeakCells(); |
| 679 | 679 |
| 680 void ProcessAndClearTransitionArrays(); | 680 void ProcessAndClearTransitionArrays(); |
| 681 void AbortTransitionArrays(); | 681 void AbortTransitionArrays(); |
| 682 | 682 |
| 683 // After all reachable objects have been marked, those entries within | |
| 684 // optimized code maps that became unreachable are removed, potentially | |
| 685 // trimming or clearing out the entire optimized code map. | |
| 686 void ProcessAndClearOptimizedCodeMaps(); | |
| 687 | |
| 688 // Process non-live references in maps and optimized code. | 683 // Process non-live references in maps and optimized code. |
| 689 void ProcessWeakReferences(); | 684 void ProcessWeakReferences(); |
| 690 | 685 |
| 691 // ----------------------------------------------------------------------- | 686 // ----------------------------------------------------------------------- |
| 692 // Phase 2: Sweeping to clear mark bits and free non-live objects for | 687 // Phase 2: Sweeping to clear mark bits and free non-live objects for |
| 693 // a non-compacting collection. | 688 // a non-compacting collection. |
| 694 // | 689 // |
| 695 // Before: Live objects are marked and non-live objects are unmarked. | 690 // Before: Live objects are marked and non-live objects are unmarked. |
| 696 // | 691 // |
| 697 // After: Live objects are unmarked, non-live regions have been added to | 692 // 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... |
| 862 private: | 857 private: |
| 863 MarkCompactCollector* collector_; | 858 MarkCompactCollector* collector_; |
| 864 }; | 859 }; |
| 865 | 860 |
| 866 | 861 |
| 867 const char* AllocationSpaceName(AllocationSpace space); | 862 const char* AllocationSpaceName(AllocationSpace space); |
| 868 } // namespace internal | 863 } // namespace internal |
| 869 } // namespace v8 | 864 } // namespace v8 |
| 870 | 865 |
| 871 #endif // V8_HEAP_MARK_COMPACT_H_ | 866 #endif // V8_HEAP_MARK_COMPACT_H_ |
| OLD | NEW |