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 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
874 // If we are not compacting the heap, we simply sweep the spaces except | 874 // If we are not compacting the heap, we simply sweep the spaces except |
875 // for the large object space, clearing mark bits and adding unmarked | 875 // for the large object space, clearing mark bits and adding unmarked |
876 // regions to each space's free list. | 876 // regions to each space's free list. |
877 void SweepSpaces(); | 877 void SweepSpaces(); |
878 | 878 |
879 int DiscoverAndEvacuateBlackObjectsOnPage(NewSpace* new_space, | 879 int DiscoverAndEvacuateBlackObjectsOnPage(NewSpace* new_space, |
880 NewSpacePage* p); | 880 NewSpacePage* p); |
881 | 881 |
882 void EvacuateNewSpace(); | 882 void EvacuateNewSpace(); |
883 | 883 |
884 void EvacuateLiveObjectsFromPage(Page* p); | 884 void EvacuateLiveObjectsFromPage(Page* p, PagedSpace* to_space); |
Hannes Payer (out of office)
2015/09/15 10:38:42
Let's rename it to target_space to avoid confusion
Michael Lippautz
2015/09/15 10:41:09
Done.
| |
885 | 885 |
886 void EvacuatePages(); | 886 void EvacuatePages(); |
887 | 887 |
888 void EvacuatePagesInParallel(); | 888 void EvacuatePagesInParallel(); |
889 | 889 |
890 void WaitUntilCompactionCompleted(); | 890 void WaitUntilCompactionCompleted(); |
891 | 891 |
892 void EvacuateNewSpaceAndCandidates(); | 892 void EvacuateNewSpaceAndCandidates(); |
893 | 893 |
894 void ReleaseEvacuationCandidates(); | 894 void ReleaseEvacuationCandidates(); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
992 private: | 992 private: |
993 MarkCompactCollector* collector_; | 993 MarkCompactCollector* collector_; |
994 }; | 994 }; |
995 | 995 |
996 | 996 |
997 const char* AllocationSpaceName(AllocationSpace space); | 997 const char* AllocationSpaceName(AllocationSpace space); |
998 } | 998 } |
999 } // namespace v8::internal | 999 } // namespace v8::internal |
1000 | 1000 |
1001 #endif // V8_HEAP_MARK_COMPACT_H_ | 1001 #endif // V8_HEAP_MARK_COMPACT_H_ |
OLD | NEW |