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

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

Issue 1441633002: Optimize MarkCompactCollector::ClearNonLiveReferences. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Correctly fix assertion Created 5 years, 1 month 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 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 void DiscoverGreyObjectsInNewSpace(); 652 void DiscoverGreyObjectsInNewSpace();
653 653
654 // Callback function for telling whether the object *p is an unmarked 654 // Callback function for telling whether the object *p is an unmarked
655 // heap object. 655 // heap object.
656 static bool IsUnmarkedHeapObject(Object** p); 656 static bool IsUnmarkedHeapObject(Object** p);
657 657
658 // Map transitions from a live map to a dead map must be killed. 658 // Map transitions from a live map to a dead map must be killed.
659 // We replace them with a null descriptor, with the same key. 659 // We replace them with a null descriptor, with the same key.
660 void ClearNonLiveReferences(); 660 void ClearNonLiveReferences();
661 void ClearNonLivePrototypeTransitions(Map* map); 661 void ClearNonLivePrototypeTransitions(Map* map);
662 void ClearNonLiveMapTransitions(Map* map, MarkBit map_mark); 662 void ClearNonLiveMapTransitions(Map* map);
663 void ClearMapTransitions(Map* map, Map* dead_transition); 663 void ClearMapTransitions(Map* map, Map* dead_transition);
664 bool ClearMapBackPointer(Map* map); 664 bool ClearMapBackPointer(Map* map);
665 void TrimDescriptorArray(Map* map, DescriptorArray* descriptors, 665 void TrimDescriptorArray(Map* map, DescriptorArray* descriptors,
666 int number_of_own_descriptors); 666 int number_of_own_descriptors);
667 void TrimEnumCache(Map* map, DescriptorArray* descriptors); 667 void TrimEnumCache(Map* map, DescriptorArray* descriptors);
668 668
669 // Mark all values associated with reachable keys in weak collections 669 // Mark all values associated with reachable keys in weak collections
670 // encountered so far. This might push new object or even new weak maps onto 670 // encountered so far. This might push new object or even new weak maps onto
671 // the marking stack. 671 // the marking stack.
672 void ProcessWeakCollections(); 672 void ProcessWeakCollections();
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 private: 862 private:
863 MarkCompactCollector* collector_; 863 MarkCompactCollector* collector_;
864 }; 864 };
865 865
866 866
867 const char* AllocationSpaceName(AllocationSpace space); 867 const char* AllocationSpaceName(AllocationSpace space);
868 } // namespace internal 868 } // namespace internal
869 } // namespace v8 869 } // namespace v8
870 870
871 #endif // V8_HEAP_MARK_COMPACT_H_ 871 #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