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

Side by Side Diff: src/type-feedback-vector.h

Issue 1314433004: Vector ICs: Stop iterating the heap to clear keyed store ics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Code review. Created 5 years, 3 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 | « src/objects-printer.cc ('k') | src/type-feedback-vector.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_TYPE_FEEDBACK_VECTOR_H_ 5 #ifndef V8_TYPE_FEEDBACK_VECTOR_H_
6 #define V8_TYPE_FEEDBACK_VECTOR_H_ 6 #define V8_TYPE_FEEDBACK_VECTOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "src/checks.h" 10 #include "src/checks.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 ClearSlotsImpl(shared, false); 206 ClearSlotsImpl(shared, false);
207 } 207 }
208 208
209 void ClearICSlots(SharedFunctionInfo* shared) { 209 void ClearICSlots(SharedFunctionInfo* shared) {
210 ClearICSlotsImpl(shared, true); 210 ClearICSlotsImpl(shared, true);
211 } 211 }
212 void ClearICSlotsAtGCTime(SharedFunctionInfo* shared) { 212 void ClearICSlotsAtGCTime(SharedFunctionInfo* shared) {
213 ClearICSlotsImpl(shared, false); 213 ClearICSlotsImpl(shared, false);
214 } 214 }
215 215
216 static void ClearAllKeyedStoreICs(Isolate* isolate);
217 void ClearKeyedStoreICs(SharedFunctionInfo* shared);
218
216 // The object that indicates an uninitialized cache. 219 // The object that indicates an uninitialized cache.
217 static inline Handle<Object> UninitializedSentinel(Isolate* isolate); 220 static inline Handle<Object> UninitializedSentinel(Isolate* isolate);
218 221
219 // The object that indicates a megamorphic state. 222 // The object that indicates a megamorphic state.
220 static inline Handle<Object> MegamorphicSentinel(Isolate* isolate); 223 static inline Handle<Object> MegamorphicSentinel(Isolate* isolate);
221 224
222 // The object that indicates a premonomorphic state. 225 // The object that indicates a premonomorphic state.
223 static inline Handle<Object> PremonomorphicSentinel(Isolate* isolate); 226 static inline Handle<Object> PremonomorphicSentinel(Isolate* isolate);
224 227
225 // A raw version of the uninitialized sentinel that's safe to read during 228 // A raw version of the uninitialized sentinel that's safe to read during
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 void ConfigurePolymorphic(Handle<Name> name, MapHandleList* maps, 491 void ConfigurePolymorphic(Handle<Name> name, MapHandleList* maps,
489 CodeHandleList* handlers); 492 CodeHandleList* handlers);
490 493
491 InlineCacheState StateFromFeedback() const override; 494 InlineCacheState StateFromFeedback() const override;
492 Name* FindFirstName() const override; 495 Name* FindFirstName() const override;
493 }; 496 };
494 } 497 }
495 } // namespace v8::internal 498 } // namespace v8::internal
496 499
497 #endif // V8_TRANSITIONS_H_ 500 #endif // V8_TRANSITIONS_H_
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | src/type-feedback-vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698