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

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

Issue 1493393002: Revert "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: 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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 // We have to remove all encountered weak maps from the list of weak 664 // We have to remove all encountered weak maps from the list of weak
665 // collections when incremental marking is aborted. 665 // collections when incremental marking is aborted.
666 void AbortWeakCollections(); 666 void AbortWeakCollections();
667 667
668 void ProcessAndClearWeakCells(); 668 void ProcessAndClearWeakCells();
669 void AbortWeakCells(); 669 void AbortWeakCells();
670 670
671 void ProcessAndClearTransitionArrays(); 671 void ProcessAndClearTransitionArrays();
672 void AbortTransitionArrays(); 672 void AbortTransitionArrays();
673 673
674 // After all reachable objects have been marked, those entries within
675 // optimized code maps that became unreachable are removed, potentially
676 // trimming or clearing out the entire optimized code map.
677 void ProcessAndClearOptimizedCodeMaps();
678
674 // Process non-live references in maps and optimized code. 679 // Process non-live references in maps and optimized code.
675 void ProcessWeakReferences(); 680 void ProcessWeakReferences();
676 681
677 // ----------------------------------------------------------------------- 682 // -----------------------------------------------------------------------
678 // Phase 2: Sweeping to clear mark bits and free non-live objects for 683 // Phase 2: Sweeping to clear mark bits and free non-live objects for
679 // a non-compacting collection. 684 // a non-compacting collection.
680 // 685 //
681 // Before: Live objects are marked and non-live objects are unmarked. 686 // Before: Live objects are marked and non-live objects are unmarked.
682 // 687 //
683 // After: Live objects are unmarked, non-live regions have been added to 688 // After: Live objects are unmarked, non-live regions have been added to
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 private: 853 private:
849 MarkCompactCollector* collector_; 854 MarkCompactCollector* collector_;
850 }; 855 };
851 856
852 857
853 const char* AllocationSpaceName(AllocationSpace space); 858 const char* AllocationSpaceName(AllocationSpace space);
854 } // namespace internal 859 } // namespace internal
855 } // namespace v8 860 } // namespace v8
856 861
857 #endif // V8_HEAP_MARK_COMPACT_H_ 862 #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