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_FEEDBACK_VECTOR_H_ | 5 #ifndef V8_FEEDBACK_VECTOR_H_ |
6 #define V8_FEEDBACK_VECTOR_H_ | 6 #define V8_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 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 CollectTypeProfileNexus(Handle<FeedbackVector> vector, FeedbackSlot slot) | 758 CollectTypeProfileNexus(Handle<FeedbackVector> vector, FeedbackSlot slot) |
759 : FeedbackNexus(vector, slot) { | 759 : FeedbackNexus(vector, slot) { |
760 DCHECK_EQ(FeedbackSlotKind::kTypeProfile, vector->GetKind(slot)); | 760 DCHECK_EQ(FeedbackSlotKind::kTypeProfile, vector->GetKind(slot)); |
761 } | 761 } |
762 CollectTypeProfileNexus(FeedbackVector* vector, FeedbackSlot slot) | 762 CollectTypeProfileNexus(FeedbackVector* vector, FeedbackSlot slot) |
763 : FeedbackNexus(vector, slot) { | 763 : FeedbackNexus(vector, slot) { |
764 DCHECK_EQ(FeedbackSlotKind::kTypeProfile, vector->GetKind(slot)); | 764 DCHECK_EQ(FeedbackSlotKind::kTypeProfile, vector->GetKind(slot)); |
765 } | 765 } |
766 | 766 |
767 // Add a type to the list of types. | 767 // Add a type to the list of types. |
768 void Collect(Handle<Name> type); | 768 void Collect(Handle<Name> type, int position); |
769 | 769 |
770 // Dump the types to stdout. | 770 // Dump the types to stdout. |
771 // TODO(franzih): pass this information to the debugger protocol instead of | 771 // TODO(franzih): pass this information to the debugger protocol instead of |
772 // stdout. | 772 // stdout. |
773 void Print() const; | 773 void Print() const; |
774 | 774 |
775 InlineCacheState StateFromFeedback() const override; | 775 InlineCacheState StateFromFeedback() const override; |
776 }; | 776 }; |
777 | 777 |
778 inline BinaryOperationHint BinaryOperationHintFromFeedback(int type_feedback); | 778 inline BinaryOperationHint BinaryOperationHintFromFeedback(int type_feedback); |
779 inline CompareOperationHint CompareOperationHintFromFeedback(int type_feedback); | 779 inline CompareOperationHint CompareOperationHintFromFeedback(int type_feedback); |
780 | 780 |
781 } // namespace internal | 781 } // namespace internal |
782 } // namespace v8 | 782 } // namespace v8 |
783 | 783 |
784 #endif // V8_FEEDBACK_VECTOR_H_ | 784 #endif // V8_FEEDBACK_VECTOR_H_ |
OLD | NEW |