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

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

Issue 2506283003: [Interpreter] Collect NumberOrOddball feedback in CompareOps. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 // Helper function to transform the feedback to CompareOperationHint. 143 // Helper function to transform the feedback to CompareOperationHint.
144 CompareOperationHint CompareOperationHintFromFeedback(int type_feedback) { 144 CompareOperationHint CompareOperationHintFromFeedback(int type_feedback) {
145 switch (type_feedback) { 145 switch (type_feedback) {
146 case CompareOperationFeedback::kNone: 146 case CompareOperationFeedback::kNone:
147 return CompareOperationHint::kNone; 147 return CompareOperationHint::kNone;
148 case CompareOperationFeedback::kSignedSmall: 148 case CompareOperationFeedback::kSignedSmall:
149 return CompareOperationHint::kSignedSmall; 149 return CompareOperationHint::kSignedSmall;
150 case CompareOperationFeedback::kNumber: 150 case CompareOperationFeedback::kNumber:
151 return CompareOperationHint::kNumber; 151 return CompareOperationHint::kNumber;
152 case CompareOperationFeedback::kNumberOrOddball:
153 return CompareOperationHint::kNumberOrOddball;
152 case CompareOperationFeedback::kString: 154 case CompareOperationFeedback::kString:
153 return CompareOperationHint::kString; 155 return CompareOperationHint::kString;
154 default: 156 default:
155 return CompareOperationHint::kAny; 157 return CompareOperationHint::kAny;
156 } 158 }
157 UNREACHABLE(); 159 UNREACHABLE();
158 return CompareOperationHint::kNone; 160 return CompareOperationHint::kNone;
159 } 161 }
160 162
161 void TypeFeedbackVector::ComputeCounts(int* with_type_info, int* generic, 163 void TypeFeedbackVector::ComputeCounts(int* with_type_info, int* generic,
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 int index = vector()->GetIndex(slot()) + 1; 292 int index = vector()->GetIndex(slot()) + 1;
291 vector()->set(index, feedback_extra, mode); 293 vector()->set(index, feedback_extra, mode);
292 } 294 }
293 295
294 296
295 Isolate* FeedbackNexus::GetIsolate() const { return vector()->GetIsolate(); } 297 Isolate* FeedbackNexus::GetIsolate() const { return vector()->GetIsolate(); }
296 } // namespace internal 298 } // namespace internal
297 } // namespace v8 299 } // namespace v8
298 300
299 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_ 301 #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