| 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 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 912 // After: Live objects are unmarked, non-live regions have been added to | 912 // After: Live objects are unmarked, non-live regions have been added to |
| 913 // their space's free list. Active eden semispace is compacted by | 913 // their space's free list. Active eden semispace is compacted by |
| 914 // evacuation. | 914 // evacuation. |
| 915 // | 915 // |
| 916 | 916 |
| 917 // If we are not compacting the heap, we simply sweep the spaces except | 917 // If we are not compacting the heap, we simply sweep the spaces except |
| 918 // for the large object space, clearing mark bits and adding unmarked | 918 // for the large object space, clearing mark bits and adding unmarked |
| 919 // regions to each space's free list. | 919 // regions to each space's free list. |
| 920 void SweepSpaces(); | 920 void SweepSpaces(); |
| 921 | 921 |
| 922 int DiscoverAndPromoteBlackObjectsOnPage(NewSpace* new_space, |
| 923 NewSpacePage* p); |
| 924 |
| 922 void EvacuateNewSpace(); | 925 void EvacuateNewSpace(); |
| 923 | 926 |
| 924 void EvacuateLiveObjectsFromPage(Page* p); | 927 void EvacuateLiveObjectsFromPage(Page* p); |
| 925 | 928 |
| 926 void EvacuatePages(); | 929 void EvacuatePages(); |
| 927 | 930 |
| 928 void EvacuateNewSpaceAndCandidates(); | 931 void EvacuateNewSpaceAndCandidates(); |
| 929 | 932 |
| 930 void SweepSpace(PagedSpace* space, SweeperType sweeper); | 933 void SweepSpace(PagedSpace* space, SweeperType sweeper); |
| 931 | 934 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 963 private: | 966 private: |
| 964 MarkCompactCollector* collector_; | 967 MarkCompactCollector* collector_; |
| 965 }; | 968 }; |
| 966 | 969 |
| 967 | 970 |
| 968 const char* AllocationSpaceName(AllocationSpace space); | 971 const char* AllocationSpaceName(AllocationSpace space); |
| 969 | 972 |
| 970 } } // namespace v8::internal | 973 } } // namespace v8::internal |
| 971 | 974 |
| 972 #endif // V8_MARK_COMPACT_H_ | 975 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |