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

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

Issue 2639883002: [turbofan] Add Receiver feedback for abstract/strict equality. (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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 case CompareOperationFeedback::kSignedSmall: 151 case CompareOperationFeedback::kSignedSmall:
152 return CompareOperationHint::kSignedSmall; 152 return CompareOperationHint::kSignedSmall;
153 case CompareOperationFeedback::kNumber: 153 case CompareOperationFeedback::kNumber:
154 return CompareOperationHint::kNumber; 154 return CompareOperationHint::kNumber;
155 case CompareOperationFeedback::kNumberOrOddball: 155 case CompareOperationFeedback::kNumberOrOddball:
156 return CompareOperationHint::kNumberOrOddball; 156 return CompareOperationHint::kNumberOrOddball;
157 case CompareOperationFeedback::kInternalizedString: 157 case CompareOperationFeedback::kInternalizedString:
158 return CompareOperationHint::kInternalizedString; 158 return CompareOperationHint::kInternalizedString;
159 case CompareOperationFeedback::kString: 159 case CompareOperationFeedback::kString:
160 return CompareOperationHint::kString; 160 return CompareOperationHint::kString;
161 case CompareOperationFeedback::kReceiver:
162 return CompareOperationHint::kReceiver;
161 default: 163 default:
162 return CompareOperationHint::kAny; 164 return CompareOperationHint::kAny;
163 } 165 }
164 UNREACHABLE(); 166 UNREACHABLE();
165 return CompareOperationHint::kNone; 167 return CompareOperationHint::kNone;
166 } 168 }
167 169
168 void TypeFeedbackVector::ComputeCounts(int* with_type_info, int* generic, 170 void TypeFeedbackVector::ComputeCounts(int* with_type_info, int* generic,
169 int* vector_ic_count, 171 int* vector_ic_count,
170 bool code_is_interpreted) { 172 bool code_is_interpreted) {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 int index = vector()->GetIndex(slot()) + 1; 301 int index = vector()->GetIndex(slot()) + 1;
300 vector()->set(index, feedback_extra, mode); 302 vector()->set(index, feedback_extra, mode);
301 } 303 }
302 304
303 305
304 Isolate* FeedbackNexus::GetIsolate() const { return vector()->GetIsolate(); } 306 Isolate* FeedbackNexus::GetIsolate() const { return vector()->GetIsolate(); }
305 } // namespace internal 307 } // namespace internal
306 } // namespace v8 308 } // namespace v8
307 309
308 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_ 310 #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