Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: src/feedback-vector.h

Issue 2755973002: [type profile] Collect return types. (Closed)
Patch Set: Rebase. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/feedback-vector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/feedback-vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698