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/base/logging.h" | 10 #include "src/base/logging.h" |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 static const int kDummyKeyedLoadICSlot = 2; | 247 static const int kDummyKeyedLoadICSlot = 2; |
248 static const int kDummyStoreICSlot = 4; | 248 static const int kDummyStoreICSlot = 4; |
249 static const int kDummyKeyedStoreICSlot = 6; | 249 static const int kDummyKeyedStoreICSlot = 6; |
250 | 250 |
251 static Handle<TypeFeedbackVector> DummyVector(Isolate* isolate); | 251 static Handle<TypeFeedbackVector> DummyVector(Isolate* isolate); |
252 static FeedbackVectorSlot DummySlot(int dummyIndex) { | 252 static FeedbackVectorSlot DummySlot(int dummyIndex) { |
253 DCHECK(dummyIndex >= 0 && dummyIndex <= kDummyKeyedStoreICSlot); | 253 DCHECK(dummyIndex >= 0 && dummyIndex <= kDummyKeyedStoreICSlot); |
254 return FeedbackVectorSlot(dummyIndex); | 254 return FeedbackVectorSlot(dummyIndex); |
255 } | 255 } |
256 | 256 |
257 static int PushAppliedArgumentsIndex(); | |
258 static Handle<TypeFeedbackVector> CreatePushAppliedArgumentsVector( | |
259 Isolate* isolate); | |
260 | |
261 private: | 257 private: |
262 void ClearSlotsImpl(SharedFunctionInfo* shared, bool force_clear); | 258 void ClearSlotsImpl(SharedFunctionInfo* shared, bool force_clear); |
263 | 259 |
264 DISALLOW_IMPLICIT_CONSTRUCTORS(TypeFeedbackVector); | 260 DISALLOW_IMPLICIT_CONSTRUCTORS(TypeFeedbackVector); |
265 }; | 261 }; |
266 | 262 |
267 | 263 |
268 // The following asserts protect an optimization in type feedback vector | 264 // The following asserts protect an optimization in type feedback vector |
269 // code that looks into the contents of a slot assuming to find a String, | 265 // code that looks into the contents of a slot assuming to find a String, |
270 // a Symbol, an AllocationSite, a WeakCell, or a FixedArray. | 266 // a Symbol, an AllocationSite, a WeakCell, or a FixedArray. |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 KeyedAccessStoreMode GetKeyedAccessStoreMode() const; | 534 KeyedAccessStoreMode GetKeyedAccessStoreMode() const; |
539 IcCheckType GetKeyType() const; | 535 IcCheckType GetKeyType() const; |
540 | 536 |
541 InlineCacheState StateFromFeedback() const override; | 537 InlineCacheState StateFromFeedback() const override; |
542 Name* FindFirstName() const override; | 538 Name* FindFirstName() const override; |
543 }; | 539 }; |
544 } // namespace internal | 540 } // namespace internal |
545 } // namespace v8 | 541 } // namespace v8 |
546 | 542 |
547 #endif // V8_TRANSITIONS_H_ | 543 #endif // V8_TRANSITIONS_H_ |
OLD | NEW |