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

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

Issue 1470773003: Optimize ClearNonLiveReferences: do not compact prototype transitions in GC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments 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
« no previous file with comments | « no previous file | 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 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 void DiscoverGreyObjectsInSpace(PagedSpace* space); 649 void DiscoverGreyObjectsInSpace(PagedSpace* space);
650 void DiscoverGreyObjectsInNewSpace(); 650 void DiscoverGreyObjectsInNewSpace();
651 651
652 // Callback function for telling whether the object *p is an unmarked 652 // Callback function for telling whether the object *p is an unmarked
653 // heap object. 653 // heap object.
654 static bool IsUnmarkedHeapObject(Object** p); 654 static bool IsUnmarkedHeapObject(Object** p);
655 655
656 // Map transitions from a live map to a dead map must be killed. 656 // Map transitions from a live map to a dead map must be killed.
657 // We replace them with a null descriptor, with the same key. 657 // We replace them with a null descriptor, with the same key.
658 void ClearNonLiveReferences(); 658 void ClearNonLiveReferences();
659 void ClearNonLivePrototypeTransitions(Map* map);
660 void ClearNonLiveMapTransitions(Map* map); 659 void ClearNonLiveMapTransitions(Map* map);
661 void ClearMapTransitions(Map* map, Map* dead_transition); 660 void ClearMapTransitions(Map* map, Map* dead_transition);
662 bool ClearMapBackPointer(Map* map); 661 bool ClearMapBackPointer(Map* map);
663 void MarkDependentCodeListForDeoptimization(DependentCode* list_head); 662 void MarkDependentCodeListForDeoptimization(DependentCode* list_head);
664 void TrimDescriptorArray(Map* map, DescriptorArray* descriptors, 663 void TrimDescriptorArray(Map* map, DescriptorArray* descriptors,
665 int number_of_own_descriptors); 664 int number_of_own_descriptors);
666 void TrimEnumCache(Map* map, DescriptorArray* descriptors); 665 void TrimEnumCache(Map* map, DescriptorArray* descriptors);
667 666
668 // Mark all values associated with reachable keys in weak collections 667 // Mark all values associated with reachable keys in weak collections
669 // encountered so far. This might push new object or even new weak maps onto 668 // encountered so far. This might push new object or even new weak maps onto
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 private: 863 private:
865 MarkCompactCollector* collector_; 864 MarkCompactCollector* collector_;
866 }; 865 };
867 866
868 867
869 const char* AllocationSpaceName(AllocationSpace space); 868 const char* AllocationSpaceName(AllocationSpace space);
870 } // namespace internal 869 } // namespace internal
871 } // namespace v8 870 } // namespace v8
872 871
873 #endif // V8_HEAP_MARK_COMPACT_H_ 872 #endif // V8_HEAP_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698