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

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

Issue 794583003: Retain maps for several garbage collections (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 6 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/flag-definitions.h ('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 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 // - Objects reachable due to host application logic like object groups 773 // - Objects reachable due to host application logic like object groups
774 // or implicit references' groups. 774 // or implicit references' groups.
775 void ProcessEphemeralMarking(ObjectVisitor* visitor, 775 void ProcessEphemeralMarking(ObjectVisitor* visitor,
776 bool only_process_harmony_weak_collections); 776 bool only_process_harmony_weak_collections);
777 777
778 // If the call-site of the top optimized code was not prepared for 778 // If the call-site of the top optimized code was not prepared for
779 // deoptimization, then treat the maps in the code as strong pointers, 779 // deoptimization, then treat the maps in the code as strong pointers,
780 // otherwise a map can die and deoptimize the code. 780 // otherwise a map can die and deoptimize the code.
781 void ProcessTopOptimizedFrame(ObjectVisitor* visitor); 781 void ProcessTopOptimizedFrame(ObjectVisitor* visitor);
782 782
783 // Retain dying maps for <FLAG_retain_maps_for_n_gc> garbage collections to
784 // increase chances of reusing of map transition tree in future.
785 void RetainMaps(ObjectVisitor* visitor);
786
783 // Mark objects reachable (transitively) from objects in the marking 787 // Mark objects reachable (transitively) from objects in the marking
784 // stack. This function empties the marking stack, but may leave 788 // stack. This function empties the marking stack, but may leave
785 // overflowed objects in the heap, in which case the marking stack's 789 // overflowed objects in the heap, in which case the marking stack's
786 // overflow flag will be set. 790 // overflow flag will be set.
787 void EmptyMarkingDeque(); 791 void EmptyMarkingDeque();
788 792
789 // Refill the marking stack with overflowed objects from the heap. This 793 // Refill the marking stack with overflowed objects from the heap. This
790 // function either leaves the marking stack full or clears the overflow 794 // function either leaves the marking stack full or clears the overflow
791 // flag on the marking stack. 795 // flag on the marking stack.
792 void RefillMarkingDeque(); 796 void RefillMarkingDeque();
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 private: 957 private:
954 MarkCompactCollector* collector_; 958 MarkCompactCollector* collector_;
955 }; 959 };
956 960
957 961
958 const char* AllocationSpaceName(AllocationSpace space); 962 const char* AllocationSpaceName(AllocationSpace space);
959 } 963 }
960 } // namespace v8::internal 964 } // namespace v8::internal
961 965
962 #endif // V8_HEAP_MARK_COMPACT_H_ 966 #endif // V8_HEAP_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698