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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 : FeedbackNexus(vector, slot) { | 452 : FeedbackNexus(vector, slot) { |
453 DCHECK_EQ(FeedbackVectorSlotKind::CALL_IC, vector->GetKind(slot)); | 453 DCHECK_EQ(FeedbackVectorSlotKind::CALL_IC, vector->GetKind(slot)); |
454 } | 454 } |
455 CallICNexus(TypeFeedbackVector* vector, FeedbackVectorSlot slot) | 455 CallICNexus(TypeFeedbackVector* vector, FeedbackVectorSlot slot) |
456 : FeedbackNexus(vector, slot) { | 456 : FeedbackNexus(vector, slot) { |
457 DCHECK_EQ(FeedbackVectorSlotKind::CALL_IC, vector->GetKind(slot)); | 457 DCHECK_EQ(FeedbackVectorSlotKind::CALL_IC, vector->GetKind(slot)); |
458 } | 458 } |
459 | 459 |
460 void Clear(Code* host); | 460 void Clear(Code* host); |
461 | 461 |
| 462 void ConfigureUninitialized() override; |
462 void ConfigureMonomorphicArray(); | 463 void ConfigureMonomorphicArray(); |
463 void ConfigureMonomorphic(Handle<JSFunction> function); | 464 void ConfigureMonomorphic(Handle<JSFunction> function); |
464 void ConfigureMegamorphic() final; | 465 void ConfigureMegamorphic() final; |
465 void ConfigureMegamorphic(int call_count); | 466 void ConfigureMegamorphic(int call_count); |
466 | 467 |
467 InlineCacheState StateFromFeedback() const final; | 468 InlineCacheState StateFromFeedback() const final; |
468 | 469 |
469 int ExtractMaps(MapHandleList* maps) const final { | 470 int ExtractMaps(MapHandleList* maps) const final { |
470 // CallICs don't record map feedback. | 471 // CallICs don't record map feedback. |
471 return 0; | 472 return 0; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 KeyedAccessStoreMode GetKeyedAccessStoreMode() const; | 626 KeyedAccessStoreMode GetKeyedAccessStoreMode() const; |
626 IcCheckType GetKeyType() const; | 627 IcCheckType GetKeyType() const; |
627 | 628 |
628 InlineCacheState StateFromFeedback() const override; | 629 InlineCacheState StateFromFeedback() const override; |
629 Name* FindFirstName() const override; | 630 Name* FindFirstName() const override; |
630 }; | 631 }; |
631 } // namespace internal | 632 } // namespace internal |
632 } // namespace v8 | 633 } // namespace v8 |
633 | 634 |
634 #endif // V8_TRANSITIONS_H_ | 635 #endif // V8_TRANSITIONS_H_ |
OLD | NEW |