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_FEEDBACK_VECTOR_INL_H_ | 5 #ifndef V8_FEEDBACK_VECTOR_INL_H_ |
6 #define V8_FEEDBACK_VECTOR_INL_H_ | 6 #define V8_FEEDBACK_VECTOR_INL_H_ |
7 | 7 |
8 #include "src/factory.h" | 8 #include "src/factory.h" |
9 #include "src/feedback-vector.h" | 9 #include "src/feedback-vector.h" |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 case CompareOperationFeedback::kSignedSmall: | 166 case CompareOperationFeedback::kSignedSmall: |
167 return CompareOperationHint::kSignedSmall; | 167 return CompareOperationHint::kSignedSmall; |
168 case CompareOperationFeedback::kNumber: | 168 case CompareOperationFeedback::kNumber: |
169 return CompareOperationHint::kNumber; | 169 return CompareOperationHint::kNumber; |
170 case CompareOperationFeedback::kNumberOrOddball: | 170 case CompareOperationFeedback::kNumberOrOddball: |
171 return CompareOperationHint::kNumberOrOddball; | 171 return CompareOperationHint::kNumberOrOddball; |
172 case CompareOperationFeedback::kInternalizedString: | 172 case CompareOperationFeedback::kInternalizedString: |
173 return CompareOperationHint::kInternalizedString; | 173 return CompareOperationHint::kInternalizedString; |
174 case CompareOperationFeedback::kString: | 174 case CompareOperationFeedback::kString: |
175 return CompareOperationHint::kString; | 175 return CompareOperationHint::kString; |
| 176 case CompareOperationFeedback::kSymbol: |
| 177 return CompareOperationHint::kSymbol; |
176 case CompareOperationFeedback::kReceiver: | 178 case CompareOperationFeedback::kReceiver: |
177 return CompareOperationHint::kReceiver; | 179 return CompareOperationHint::kReceiver; |
178 default: | 180 default: |
179 return CompareOperationHint::kAny; | 181 return CompareOperationHint::kAny; |
180 } | 182 } |
181 UNREACHABLE(); | 183 UNREACHABLE(); |
182 return CompareOperationHint::kNone; | 184 return CompareOperationHint::kNone; |
183 } | 185 } |
184 | 186 |
185 void FeedbackVector::ComputeCounts(int* with_type_info, int* generic, | 187 void FeedbackVector::ComputeCounts(int* with_type_info, int* generic, |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 #endif | 330 #endif |
329 int index = vector()->GetIndex(slot()) + 1; | 331 int index = vector()->GetIndex(slot()) + 1; |
330 vector()->set(index, feedback_extra, mode); | 332 vector()->set(index, feedback_extra, mode); |
331 } | 333 } |
332 | 334 |
333 Isolate* FeedbackNexus::GetIsolate() const { return vector()->GetIsolate(); } | 335 Isolate* FeedbackNexus::GetIsolate() const { return vector()->GetIsolate(); } |
334 } // namespace internal | 336 } // namespace internal |
335 } // namespace v8 | 337 } // namespace v8 |
336 | 338 |
337 #endif // V8_FEEDBACK_VECTOR_INL_H_ | 339 #endif // V8_FEEDBACK_VECTOR_INL_H_ |
OLD | NEW |