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

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

Issue 2771703003: Revert of [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') | 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_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
869 void IncrementDeferredCount(v8::Isolate::UseCounterFeature feature); 871 void IncrementDeferredCount(v8::Isolate::UseCounterFeature feature);
870 872
871 // Completely clear the Instanceof cache (to stop it keeping objects alive 873 // Completely clear the Instanceof cache (to stop it keeping objects alive
872 // around a GC). 874 // around a GC).
873 inline void CompletelyClearInstanceofCache(); 875 inline void CompletelyClearInstanceofCache();
874 876
875 inline uint32_t HashSeed(); 877 inline uint32_t HashSeed();
876 878
877 inline int NextScriptId(); 879 inline int NextScriptId();
878 880
(...skipping 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after
2617 friend class LargeObjectSpace; 2619 friend class LargeObjectSpace;
2618 friend class NewSpace; 2620 friend class NewSpace;
2619 friend class PagedSpace; 2621 friend class PagedSpace;
2620 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2622 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2621 }; 2623 };
2622 2624
2623 } // namespace internal 2625 } // namespace internal
2624 } // namespace v8 2626 } // namespace v8
2625 2627
2626 #endif // V8_HEAP_HEAP_H_ 2628 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698