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

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

Issue 2518283002: [ignition] Report NumberOrOddball feedback for relational comparisons. (Closed)
Patch Set: Created 4 years 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/interpreter/interpreter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_INL_H_ 5 #ifndef V8_TYPE_FEEDBACK_VECTOR_INL_H_
6 #define V8_TYPE_FEEDBACK_VECTOR_INL_H_ 6 #define V8_TYPE_FEEDBACK_VECTOR_INL_H_
7 7
8 #include "src/globals.h" 8 #include "src/globals.h"
9 #include "src/type-feedback-vector.h" 9 #include "src/type-feedback-vector.h"
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 // Helper function to transform the feedback to CompareOperationHint. 120 // Helper function to transform the feedback to CompareOperationHint.
121 CompareOperationHint CompareOperationHintFromFeedback(int type_feedback) { 121 CompareOperationHint CompareOperationHintFromFeedback(int type_feedback) {
122 switch (type_feedback) { 122 switch (type_feedback) {
123 case CompareOperationFeedback::kNone: 123 case CompareOperationFeedback::kNone:
124 return CompareOperationHint::kNone; 124 return CompareOperationHint::kNone;
125 case CompareOperationFeedback::kSignedSmall: 125 case CompareOperationFeedback::kSignedSmall:
126 return CompareOperationHint::kSignedSmall; 126 return CompareOperationHint::kSignedSmall;
127 case CompareOperationFeedback::kNumber: 127 case CompareOperationFeedback::kNumber:
128 return CompareOperationHint::kNumber; 128 return CompareOperationHint::kNumber;
129 case CompareOperationFeedback::kNumberOrOddball:
130 return CompareOperationHint::kNumberOrOddball;
129 case CompareOperationFeedback::kString: 131 case CompareOperationFeedback::kString:
130 return CompareOperationHint::kString; 132 return CompareOperationHint::kString;
131 default: 133 default:
132 return CompareOperationHint::kAny; 134 return CompareOperationHint::kAny;
133 } 135 }
134 UNREACHABLE(); 136 UNREACHABLE();
135 return CompareOperationHint::kNone; 137 return CompareOperationHint::kNone;
136 } 138 }
137 139
138 void TypeFeedbackVector::ComputeCounts(int* with_type_info, int* generic, 140 void TypeFeedbackVector::ComputeCounts(int* with_type_info, int* generic,
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 int index = vector()->GetIndex(slot()) + 1; 269 int index = vector()->GetIndex(slot()) + 1;
268 vector()->set(index, feedback_extra, mode); 270 vector()->set(index, feedback_extra, mode);
269 } 271 }
270 272
271 273
272 Isolate* FeedbackNexus::GetIsolate() const { return vector()->GetIsolate(); } 274 Isolate* FeedbackNexus::GetIsolate() const { return vector()->GetIsolate(); }
273 } // namespace internal 275 } // namespace internal
274 } // namespace v8 276 } // namespace v8
275 277
276 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_ 278 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_
OLDNEW
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698