| 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_MARK_COMPACT_H_ | 5 #ifndef V8_MARK_COMPACT_H_ |
| 6 #define V8_MARK_COMPACT_H_ | 6 #define V8_MARK_COMPACT_H_ |
| 7 | 7 |
| 8 #include "src/compiler-intrinsics.h" | 8 #include "src/compiler-intrinsics.h" |
| 9 #include "src/spaces.h" | 9 #include "src/spaces.h" |
| 10 | 10 |
| (...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 // After: Live objects are unmarked, non-live regions have been added to | 863 // After: Live objects are unmarked, non-live regions have been added to |
| 864 // their space's free list. Active eden semispace is compacted by | 864 // their space's free list. Active eden semispace is compacted by |
| 865 // evacuation. | 865 // evacuation. |
| 866 // | 866 // |
| 867 | 867 |
| 868 // If we are not compacting the heap, we simply sweep the spaces except | 868 // If we are not compacting the heap, we simply sweep the spaces except |
| 869 // for the large object space, clearing mark bits and adding unmarked | 869 // for the large object space, clearing mark bits and adding unmarked |
| 870 // regions to each space's free list. | 870 // regions to each space's free list. |
| 871 void SweepSpaces(); | 871 void SweepSpaces(); |
| 872 | 872 |
| 873 int DiscoverAndPromoteBlackObjectsOnPage(NewSpace* new_space, | 873 int DiscoverAndEvacuateBlackObjectsOnPage(NewSpace* new_space, |
| 874 NewSpacePage* p); | 874 NewSpacePage* p); |
| 875 | 875 |
| 876 void EvacuateNewSpace(); | 876 void EvacuateNewSpace(); |
| 877 | 877 |
| 878 void EvacuateLiveObjectsFromPage(Page* p); | 878 void EvacuateLiveObjectsFromPage(Page* p); |
| 879 | 879 |
| 880 void EvacuatePages(); | 880 void EvacuatePages(); |
| 881 | 881 |
| 882 void EvacuateNewSpaceAndCandidates(); | 882 void EvacuateNewSpaceAndCandidates(); |
| 883 | 883 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 976 private: | 976 private: |
| 977 MarkCompactCollector* collector_; | 977 MarkCompactCollector* collector_; |
| 978 }; | 978 }; |
| 979 | 979 |
| 980 | 980 |
| 981 const char* AllocationSpaceName(AllocationSpace space); | 981 const char* AllocationSpaceName(AllocationSpace space); |
| 982 | 982 |
| 983 } } // namespace v8::internal | 983 } } // namespace v8::internal |
| 984 | 984 |
| 985 #endif // V8_MARK_COMPACT_H_ | 985 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |