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

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

Issue 1508703002: Use WeakCells in the optimized code map rather than traversing in pause. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed nit. Created 5 years 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 | « src/heap/heap.cc ('k') | 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 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 // We have to remove all encountered weak maps from the list of weak 678 // We have to remove all encountered weak maps from the list of weak
679 // collections when incremental marking is aborted. 679 // collections when incremental marking is aborted.
680 void AbortWeakCollections(); 680 void AbortWeakCollections();
681 681
682 void ClearWeakCells(Object** non_live_map_list, 682 void ClearWeakCells(Object** non_live_map_list,
683 DependentCode** dependent_code_list); 683 DependentCode** dependent_code_list);
684 void AbortWeakCells(); 684 void AbortWeakCells();
685 685
686 void AbortTransitionArrays(); 686 void AbortTransitionArrays();
687 687
688 // After all reachable objects have been marked, those entries within
689 // optimized code maps that became unreachable are removed, potentially
690 // trimming or clearing out the entire optimized code map.
691 void ProcessAndClearOptimizedCodeMaps();
692
693 // ----------------------------------------------------------------------- 688 // -----------------------------------------------------------------------
694 // Phase 2: Sweeping to clear mark bits and free non-live objects for 689 // Phase 2: Sweeping to clear mark bits and free non-live objects for
695 // a non-compacting collection. 690 // a non-compacting collection.
696 // 691 //
697 // Before: Live objects are marked and non-live objects are unmarked. 692 // Before: Live objects are marked and non-live objects are unmarked.
698 // 693 //
699 // After: Live objects are unmarked, non-live regions have been added to 694 // After: Live objects are unmarked, non-live regions have been added to
700 // their space's free list. Active eden semispace is compacted by 695 // their space's free list. Active eden semispace is compacted by
701 // evacuation. 696 // evacuation.
702 // 697 //
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 private: 859 private:
865 MarkCompactCollector* collector_; 860 MarkCompactCollector* collector_;
866 }; 861 };
867 862
868 863
869 const char* AllocationSpaceName(AllocationSpace space); 864 const char* AllocationSpaceName(AllocationSpace space);
870 } // namespace internal 865 } // namespace internal
871 } // namespace v8 866 } // namespace v8
872 867
873 #endif // V8_HEAP_MARK_COMPACT_H_ 868 #endif // V8_HEAP_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698