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

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

Issue 2609013002: [turbofan] Use InternalizedString feedback abstract/strict equality comparisons. (Closed)
Patch Set: Created 3 years, 11 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/interpreter/interpreter.cc ('k') | src/type-hints.h » ('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 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
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: 129 case CompareOperationFeedback::kNumberOrOddball:
130 return CompareOperationHint::kNumberOrOddball; 130 return CompareOperationHint::kNumberOrOddball;
131 case CompareOperationFeedback::kInternalizedString:
132 return CompareOperationHint::kInternalizedString;
131 case CompareOperationFeedback::kString: 133 case CompareOperationFeedback::kString:
132 return CompareOperationHint::kString; 134 return CompareOperationHint::kString;
133 default: 135 default:
134 return CompareOperationHint::kAny; 136 return CompareOperationHint::kAny;
135 } 137 }
136 UNREACHABLE(); 138 UNREACHABLE();
137 return CompareOperationHint::kNone; 139 return CompareOperationHint::kNone;
138 } 140 }
139 141
140 void TypeFeedbackVector::ComputeCounts(int* with_type_info, int* generic, 142 void TypeFeedbackVector::ComputeCounts(int* with_type_info, int* generic,
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 int index = vector()->GetIndex(slot()) + 1; 271 int index = vector()->GetIndex(slot()) + 1;
270 vector()->set(index, feedback_extra, mode); 272 vector()->set(index, feedback_extra, mode);
271 } 273 }
272 274
273 275
274 Isolate* FeedbackNexus::GetIsolate() const { return vector()->GetIsolate(); } 276 Isolate* FeedbackNexus::GetIsolate() const { return vector()->GetIsolate(); }
275 } // namespace internal 277 } // namespace internal
276 } // namespace v8 278 } // namespace v8
277 279
278 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_ 280 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_
OLDNEW
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/type-hints.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698