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

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

Issue 2360913003: [interpreter] Compute and use type info percentage (Closed)
Patch Set: Created 4 years, 3 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
OLDNEW
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
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* interpreter_total, bool code_is_interpreted);
rmcilroy 2016/09/23 08:10:34 vector_ic_count
klaasb 2016/09/23 08:31:40 Done.
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698