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

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

Issue 816353002: Revert "Retain maps for several garbage collections" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
787 // Mark objects reachable (transitively) from objects in the marking 783 // Mark objects reachable (transitively) from objects in the marking
788 // stack. This function empties the marking stack, but may leave 784 // stack. This function empties the marking stack, but may leave
789 // overflowed objects in the heap, in which case the marking stack's 785 // overflowed objects in the heap, in which case the marking stack's
790 // overflow flag will be set. 786 // overflow flag will be set.
791 void EmptyMarkingDeque(); 787 void EmptyMarkingDeque();
792 788
793 // Refill the marking stack with overflowed objects from the heap. This 789 // Refill the marking stack with overflowed objects from the heap. This
794 // function either leaves the marking stack full or clears the overflow 790 // function either leaves the marking stack full or clears the overflow
795 // flag on the marking stack. 791 // flag on the marking stack.
796 void RefillMarkingDeque(); 792 void RefillMarkingDeque();
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 private: 953 private:
958 MarkCompactCollector* collector_; 954 MarkCompactCollector* collector_;
959 }; 955 };
960 956
961 957
962 const char* AllocationSpaceName(AllocationSpace space); 958 const char* AllocationSpaceName(AllocationSpace space);
963 } 959 }
964 } // namespace v8::internal 960 } // namespace v8::internal
965 961
966 #endif // V8_HEAP_MARK_COMPACT_H_ 962 #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