OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
911 NewSpacePage* p); | 911 NewSpacePage* p); |
912 | 912 |
913 void EvacuateNewSpace(); | 913 void EvacuateNewSpace(); |
914 | 914 |
915 void EvacuateLiveObjectsFromPage(Page* p); | 915 void EvacuateLiveObjectsFromPage(Page* p); |
916 | 916 |
917 void EvacuatePages(); | 917 void EvacuatePages(); |
918 | 918 |
919 void EvacuateNewSpaceAndCandidates(); | 919 void EvacuateNewSpaceAndCandidates(); |
920 | 920 |
| 921 // Moves the pages of the evacuation_candidates_ list to the end of their |
| 922 // corresponding space pages list. |
| 923 void MoveEvacuationCandidatesToEndOfPagesList(); |
| 924 |
921 void SweepSpace(PagedSpace* space, SweeperType sweeper); | 925 void SweepSpace(PagedSpace* space, SweeperType sweeper); |
922 | 926 |
923 // Finalizes the parallel sweeping phase. Marks all the pages that were | 927 // Finalizes the parallel sweeping phase. Marks all the pages that were |
924 // swept in parallel. | 928 // swept in parallel. |
925 void ParallelSweepSpacesComplete(); | 929 void ParallelSweepSpacesComplete(); |
926 | 930 |
927 void ParallelSweepSpaceComplete(PagedSpace* space); | 931 void ParallelSweepSpaceComplete(PagedSpace* space); |
928 | 932 |
929 #ifdef DEBUG | 933 #ifdef DEBUG |
930 friend class MarkObjectVisitor; | 934 friend class MarkObjectVisitor; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1008 private: | 1012 private: |
1009 MarkCompactCollector* collector_; | 1013 MarkCompactCollector* collector_; |
1010 }; | 1014 }; |
1011 | 1015 |
1012 | 1016 |
1013 const char* AllocationSpaceName(AllocationSpace space); | 1017 const char* AllocationSpaceName(AllocationSpace space); |
1014 | 1018 |
1015 } } // namespace v8::internal | 1019 } } // namespace v8::internal |
1016 | 1020 |
1017 #endif // V8_MARK_COMPACT_H_ | 1021 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |