OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |