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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 static const int kDummyKeyedLoadICSlot = 1; | 174 static const int kDummyKeyedLoadICSlot = 1; |
175 static const int kDummyStoreICSlot = 2; | 175 static const int kDummyStoreICSlot = 2; |
176 static const int kDummyKeyedStoreICSlot = 3; | 176 static const int kDummyKeyedStoreICSlot = 3; |
177 | 177 |
178 static Handle<TypeFeedbackVector> DummyVector(Isolate* isolate); | 178 static Handle<TypeFeedbackVector> DummyVector(Isolate* isolate); |
179 static FeedbackVectorICSlot DummySlot(int dummyIndex) { | 179 static FeedbackVectorICSlot DummySlot(int dummyIndex) { |
180 DCHECK(dummyIndex >= 0 && dummyIndex <= kDummyKeyedStoreICSlot); | 180 DCHECK(dummyIndex >= 0 && dummyIndex <= kDummyKeyedStoreICSlot); |
181 return FeedbackVectorICSlot(dummyIndex); | 181 return FeedbackVectorICSlot(dummyIndex); |
182 } | 182 } |
183 | 183 |
| 184 static int PushAppliedArgumentsIndex(); |
| 185 static Handle<TypeFeedbackVector> CreatePushAppliedArgumentsVector( |
| 186 Isolate* isolate); |
| 187 |
184 private: | 188 private: |
185 enum VectorICKind { | 189 enum VectorICKind { |
186 KindUnused = 0x0, | 190 KindUnused = 0x0, |
187 KindCallIC = 0x1, | 191 KindCallIC = 0x1, |
188 KindLoadIC = 0x2, | 192 KindLoadIC = 0x2, |
189 KindKeyedLoadIC = 0x3, | 193 KindKeyedLoadIC = 0x3, |
190 KindStoreIC = 0x4, | 194 KindStoreIC = 0x4, |
191 KindKeyedStoreIC = 0x5, | 195 KindKeyedStoreIC = 0x5, |
192 }; | 196 }; |
193 | 197 |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 KeyedAccessStoreMode GetKeyedAccessStoreMode() const; | 435 KeyedAccessStoreMode GetKeyedAccessStoreMode() const; |
432 IcCheckType GetKeyType() const; | 436 IcCheckType GetKeyType() const; |
433 | 437 |
434 InlineCacheState StateFromFeedback() const override; | 438 InlineCacheState StateFromFeedback() const override; |
435 Name* FindFirstName() const override; | 439 Name* FindFirstName() const override; |
436 }; | 440 }; |
437 } | 441 } |
438 } // namespace v8::internal | 442 } // namespace v8::internal |
439 | 443 |
440 #endif // V8_TRANSITIONS_H_ | 444 #endif // V8_TRANSITIONS_H_ |
OLD | NEW |