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 |
257 private: | 261 private: |
258 void ClearSlotsImpl(SharedFunctionInfo* shared, bool force_clear); | 262 void ClearSlotsImpl(SharedFunctionInfo* shared, bool force_clear); |
259 | 263 |
260 DISALLOW_IMPLICIT_CONSTRUCTORS(TypeFeedbackVector); | 264 DISALLOW_IMPLICIT_CONSTRUCTORS(TypeFeedbackVector); |
261 }; | 265 }; |
262 | 266 |
263 | 267 |
264 // The following asserts protect an optimization in type feedback vector | 268 // The following asserts protect an optimization in type feedback vector |
265 // code that looks into the contents of a slot assuming to find a String, | 269 // code that looks into the contents of a slot assuming to find a String, |
266 // a Symbol, an AllocationSite, a WeakCell, or a FixedArray. | 270 // a Symbol, an AllocationSite, a WeakCell, or a FixedArray. |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 KeyedAccessStoreMode GetKeyedAccessStoreMode() const; | 538 KeyedAccessStoreMode GetKeyedAccessStoreMode() const; |
535 IcCheckType GetKeyType() const; | 539 IcCheckType GetKeyType() const; |
536 | 540 |
537 InlineCacheState StateFromFeedback() const override; | 541 InlineCacheState StateFromFeedback() const override; |
538 Name* FindFirstName() const override; | 542 Name* FindFirstName() const override; |
539 }; | 543 }; |
540 } // namespace internal | 544 } // namespace internal |
541 } // namespace v8 | 545 } // namespace v8 |
542 | 546 |
543 #endif // V8_TRANSITIONS_H_ | 547 #endif // V8_TRANSITIONS_H_ |
OLD | NEW |