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

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

Issue 1478943003: 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: Patch One. 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
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 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 // The linked list of all encountered weak maps is destroyed. 674 // The linked list of all encountered weak maps is destroyed.
675 void ClearWeakCollections(); 675 void ClearWeakCollections();
676 676
677 // We have to remove all encountered weak maps from the list of weak 677 // We have to remove all encountered weak maps from the list of weak
678 // collections when incremental marking is aborted. 678 // collections when incremental marking is aborted.
679 void AbortWeakCollections(); 679 void AbortWeakCollections();
680 680
681 void ProcessAndClearWeakCells(); 681 void ProcessAndClearWeakCells();
682 void AbortWeakCells(); 682 void AbortWeakCells();
683 683
684 // After all reachable objects have been marked, those entries within
685 // optimized code maps that became unreachable are removed, potentially
686 // trimming or clearing out the entire optimized code map.
687 void ProcessAndClearOptimizedCodeMaps();
688
689 // Process non-live references in maps and optimized code. 684 // Process non-live references in maps and optimized code.
690 void ProcessWeakReferences(); 685 void ProcessWeakReferences();
691 686
692 // ----------------------------------------------------------------------- 687 // -----------------------------------------------------------------------
693 // Phase 2: Sweeping to clear mark bits and free non-live objects for 688 // Phase 2: Sweeping to clear mark bits and free non-live objects for
694 // a non-compacting collection. 689 // a non-compacting collection.
695 // 690 //
696 // Before: Live objects are marked and non-live objects are unmarked. 691 // Before: Live objects are marked and non-live objects are unmarked.
697 // 692 //
698 // After: Live objects are unmarked, non-live regions have been added to 693 // After: Live objects are unmarked, non-live regions have been added to
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 private: 858 private:
864 MarkCompactCollector* collector_; 859 MarkCompactCollector* collector_;
865 }; 860 };
866 861
867 862
868 const char* AllocationSpaceName(AllocationSpace space); 863 const char* AllocationSpaceName(AllocationSpace space);
869 } // namespace internal 864 } // namespace internal
870 } // namespace v8 865 } // namespace v8
871 866
872 #endif // V8_HEAP_MARK_COMPACT_H_ 867 #endif // V8_HEAP_MARK_COMPACT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698