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

Side by Side Diff: src/heap/heap.h

Issue 2745183002: [heap] Simplify clearing of normalized map caches. (Closed)
Patch Set: Created 3 years, 9 months 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/heap.cc » ('j') | src/heap/heap.cc » ('J')
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_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 859
860 // Check new space expansion criteria and expand semispaces if it was hit. 860 // Check new space expansion criteria and expand semispaces if it was hit.
861 void CheckNewSpaceExpansionCriteria(); 861 void CheckNewSpaceExpansionCriteria();
862 862
863 void VisitExternalResources(v8::ExternalResourceVisitor* visitor); 863 void VisitExternalResources(v8::ExternalResourceVisitor* visitor);
864 864
865 // An object should be promoted if the object has survived a 865 // An object should be promoted if the object has survived a
866 // scavenge operation. 866 // scavenge operation.
867 inline bool ShouldBePromoted(Address old_address, int object_size); 867 inline bool ShouldBePromoted(Address old_address, int object_size);
868 868
869 void ClearNormalizedMapCaches();
870
871 void IncrementDeferredCount(v8::Isolate::UseCounterFeature feature); 869 void IncrementDeferredCount(v8::Isolate::UseCounterFeature feature);
872 870
873 // Completely clear the Instanceof cache (to stop it keeping objects alive 871 // Completely clear the Instanceof cache (to stop it keeping objects alive
874 // around a GC). 872 // around a GC).
875 inline void CompletelyClearInstanceofCache(); 873 inline void CompletelyClearInstanceofCache();
876 874
877 inline uint32_t HashSeed(); 875 inline uint32_t HashSeed();
878 876
879 inline int NextScriptId(); 877 inline int NextScriptId();
880 878
(...skipping 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after
2619 friend class LargeObjectSpace; 2617 friend class LargeObjectSpace;
2620 friend class NewSpace; 2618 friend class NewSpace;
2621 friend class PagedSpace; 2619 friend class PagedSpace;
2622 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2620 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2623 }; 2621 };
2624 2622
2625 } // namespace internal 2623 } // namespace internal
2626 } // namespace v8 2624 } // namespace v8
2627 2625
2628 #endif // V8_HEAP_HEAP_H_ 2626 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | src/heap/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698