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

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

Issue 345523002: An object should only be promoted to the old generation if it survived a scavenge operation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/heap-inl.h ('k') | src/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_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
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
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_
OLDNEW
« no previous file with comments | « src/heap-inl.h ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698