OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_H_ | 5 #ifndef V8_TYPE_FEEDBACK_VECTOR_H_ |
6 #define V8_TYPE_FEEDBACK_VECTOR_H_ | 6 #define V8_TYPE_FEEDBACK_VECTOR_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "src/base/logging.h" | 10 #include "src/base/logging.h" |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 class TypeFeedbackVector : public FixedArray { | 241 class TypeFeedbackVector : public FixedArray { |
242 public: | 242 public: |
243 // Casting. | 243 // Casting. |
244 static inline TypeFeedbackVector* cast(Object* obj); | 244 static inline TypeFeedbackVector* cast(Object* obj); |
245 | 245 |
246 static const int kMetadataIndex = 0; | 246 static const int kMetadataIndex = 0; |
247 static const int kInvocationCountIndex = 1; | 247 static const int kInvocationCountIndex = 1; |
248 static const int kReservedIndexCount = 2; | 248 static const int kReservedIndexCount = 2; |
249 | 249 |
250 inline void ComputeCounts(int* with_type_info, int* generic, | 250 inline void ComputeCounts(int* with_type_info, int* generic, |
251 bool code_is_interpreted); | 251 int* vector_ic_count, bool code_is_interpreted); |
252 | 252 |
253 inline bool is_empty() const; | 253 inline bool is_empty() const; |
254 | 254 |
255 // Returns number of slots in the vector. | 255 // Returns number of slots in the vector. |
256 inline int slot_count() const; | 256 inline int slot_count() const; |
257 | 257 |
258 inline TypeFeedbackMetadata* metadata() const; | 258 inline TypeFeedbackMetadata* metadata() const; |
259 inline int invocation_count() const; | 259 inline int invocation_count() const; |
260 | 260 |
261 // Conversion from a slot to an integer index to the underlying array. | 261 // Conversion from a slot to an integer index to the underlying array. |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 } | 711 } |
712 }; | 712 }; |
713 | 713 |
714 inline BinaryOperationHint BinaryOperationHintFromFeedback(int type_feedback); | 714 inline BinaryOperationHint BinaryOperationHintFromFeedback(int type_feedback); |
715 inline CompareOperationHint CompareOperationHintFromFeedback(int type_feedback); | 715 inline CompareOperationHint CompareOperationHintFromFeedback(int type_feedback); |
716 | 716 |
717 } // namespace internal | 717 } // namespace internal |
718 } // namespace v8 | 718 } // namespace v8 |
719 | 719 |
720 #endif // V8_TRANSITIONS_H_ | 720 #endif // V8_TRANSITIONS_H_ |
OLD | NEW |