Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/heap/mark-compact.h

Issue 1340253004: [heap] Let caller figure out target space for evacuation when compacting. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comment Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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* target_space);
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698