| OLD | NEW |
| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 static Handle<TypeFeedbackVector> Allocate(Isolate* isolate, | 160 static Handle<TypeFeedbackVector> Allocate(Isolate* isolate, |
| 161 const FeedbackVectorSpec& spec); | 161 const FeedbackVectorSpec& spec); |
| 162 | 162 |
| 163 static Handle<TypeFeedbackVector> Copy(Isolate* isolate, | 163 static Handle<TypeFeedbackVector> Copy(Isolate* isolate, |
| 164 Handle<TypeFeedbackVector> vector); | 164 Handle<TypeFeedbackVector> vector); |
| 165 | 165 |
| 166 // Clears the vector slots and the vector ic slots. | 166 // Clears the vector slots and the vector ic slots. |
| 167 void ClearSlots(SharedFunctionInfo* shared); | 167 void ClearSlots(SharedFunctionInfo* shared); |
| 168 | 168 |
| 169 // Returns true if all slots are clear. |
| 170 bool IsCleared(); |
| 171 |
| 169 // The object that indicates an uninitialized cache. | 172 // The object that indicates an uninitialized cache. |
| 170 static inline Handle<Object> UninitializedSentinel(Isolate* isolate); | 173 static inline Handle<Object> UninitializedSentinel(Isolate* isolate); |
| 171 | 174 |
| 172 // The object that indicates a megamorphic state. | 175 // The object that indicates a megamorphic state. |
| 173 static inline Handle<Object> MegamorphicSentinel(Isolate* isolate); | 176 static inline Handle<Object> MegamorphicSentinel(Isolate* isolate); |
| 174 | 177 |
| 175 // The object that indicates a premonomorphic state. | 178 // The object that indicates a premonomorphic state. |
| 176 static inline Handle<Object> PremonomorphicSentinel(Isolate* isolate); | 179 static inline Handle<Object> PremonomorphicSentinel(Isolate* isolate); |
| 177 | 180 |
| 178 // The object that indicates a generic state. | 181 // The object that indicates a generic state. |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 int ExtractMaps(MapHandleList* maps) const OVERRIDE; | 364 int ExtractMaps(MapHandleList* maps) const OVERRIDE; |
| 362 MaybeHandle<Code> FindHandlerForMap(Handle<Map> map) const OVERRIDE; | 365 MaybeHandle<Code> FindHandlerForMap(Handle<Map> map) const OVERRIDE; |
| 363 virtual bool FindHandlers(CodeHandleList* code_list, | 366 virtual bool FindHandlers(CodeHandleList* code_list, |
| 364 int length = -1) const OVERRIDE; | 367 int length = -1) const OVERRIDE; |
| 365 Name* FindFirstName() const OVERRIDE; | 368 Name* FindFirstName() const OVERRIDE; |
| 366 }; | 369 }; |
| 367 } | 370 } |
| 368 } // namespace v8::internal | 371 } // namespace v8::internal |
| 369 | 372 |
| 370 #endif // V8_TRANSITIONS_H_ | 373 #endif // V8_TRANSITIONS_H_ |
| OLD | NEW |