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

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

Issue 1480873003: Introduce instance type for transition arrays. (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
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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 // The linked list of all encountered weak maps is destroyed. 672 // The linked list of all encountered weak maps is destroyed.
673 void ClearWeakCollections(); 673 void ClearWeakCollections();
674 674
675 // We have to remove all encountered weak maps from the list of weak 675 // We have to remove all encountered weak maps from the list of weak
676 // collections when incremental marking is aborted. 676 // collections when incremental marking is aborted.
677 void AbortWeakCollections(); 677 void AbortWeakCollections();
678 678
679 void ProcessAndClearWeakCells(); 679 void ProcessAndClearWeakCells();
680 void AbortWeakCells(); 680 void AbortWeakCells();
681 681
682 void ProcessAndClearTransitionArrays();
683 void AbortTransitionArrays();
684
682 // After all reachable objects have been marked, those entries within 685 // After all reachable objects have been marked, those entries within
683 // optimized code maps that became unreachable are removed, potentially 686 // optimized code maps that became unreachable are removed, potentially
684 // trimming or clearing out the entire optimized code map. 687 // trimming or clearing out the entire optimized code map.
685 void ProcessAndClearOptimizedCodeMaps(); 688 void ProcessAndClearOptimizedCodeMaps();
686 689
687 // Process non-live references in maps and optimized code. 690 // Process non-live references in maps and optimized code.
688 void ProcessWeakReferences(); 691 void ProcessWeakReferences();
689 692
690 // ----------------------------------------------------------------------- 693 // -----------------------------------------------------------------------
691 // Phase 2: Sweeping to clear mark bits and free non-live objects for 694 // Phase 2: Sweeping to clear mark bits and free non-live objects for
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 private: 864 private:
862 MarkCompactCollector* collector_; 865 MarkCompactCollector* collector_;
863 }; 866 };
864 867
865 868
866 const char* AllocationSpaceName(AllocationSpace space); 869 const char* AllocationSpaceName(AllocationSpace space);
867 } // namespace internal 870 } // namespace internal
868 } // namespace v8 871 } // namespace v8
869 872
870 #endif // V8_HEAP_MARK_COMPACT_H_ 873 #endif // V8_HEAP_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/mark-compact.cc » ('j') | src/heap/mark-compact.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698