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

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

Issue 1481953002: Move map retaining to finalization of incremental marking. (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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 // - Objects reachable due to host application logic like object groups 619 // - Objects reachable due to host application logic like object groups
620 // or implicit references' groups. 620 // or implicit references' groups.
621 void ProcessEphemeralMarking(ObjectVisitor* visitor, 621 void ProcessEphemeralMarking(ObjectVisitor* visitor,
622 bool only_process_harmony_weak_collections); 622 bool only_process_harmony_weak_collections);
623 623
624 // If the call-site of the top optimized code was not prepared for 624 // If the call-site of the top optimized code was not prepared for
625 // deoptimization, then treat the maps in the code as strong pointers, 625 // deoptimization, then treat the maps in the code as strong pointers,
626 // otherwise a map can die and deoptimize the code. 626 // otherwise a map can die and deoptimize the code.
627 void ProcessTopOptimizedFrame(ObjectVisitor* visitor); 627 void ProcessTopOptimizedFrame(ObjectVisitor* visitor);
628 628
629 // Retain dying maps for <FLAG_retain_maps_for_n_gc> garbage collections to
630 // increase chances of reusing of map transition tree in future.
631 void RetainMaps();
632
633 // Collects a list of dependent code from maps embedded in optimize code. 629 // Collects a list of dependent code from maps embedded in optimize code.
634 DependentCode* DependentCodeListFromNonLiveMaps(); 630 DependentCode* DependentCodeListFromNonLiveMaps();
635 631
636 // Mark objects reachable (transitively) from objects in the marking 632 // Mark objects reachable (transitively) from objects in the marking
637 // stack. This function empties the marking stack, but may leave 633 // stack. This function empties the marking stack, but may leave
638 // overflowed objects in the heap, in which case the marking stack's 634 // overflowed objects in the heap, in which case the marking stack's
639 // overflow flag will be set. 635 // overflow flag will be set.
640 void EmptyMarkingDeque(); 636 void EmptyMarkingDeque();
641 637
642 // Refill the marking stack with overflowed objects from the heap. This 638 // Refill the marking stack with overflowed objects from the heap. This
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 private: 861 private:
866 MarkCompactCollector* collector_; 862 MarkCompactCollector* collector_;
867 }; 863 };
868 864
869 865
870 const char* AllocationSpaceName(AllocationSpace space); 866 const char* AllocationSpaceName(AllocationSpace space);
871 } // namespace internal 867 } // namespace internal
872 } // namespace v8 868 } // namespace v8
873 869
874 #endif // V8_HEAP_MARK_COMPACT_H_ 870 #endif // V8_HEAP_MARK_COMPACT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698