Index: src/type-feedback-vector.h |
diff --git a/src/type-feedback-vector.h b/src/type-feedback-vector.h |
index 4fb01997483655aeba19cc9d393afcf9c238806f..d5bc1a6cb3a9ed9ad56dc4fbc2fa38f5f0802714 100644 |
--- a/src/type-feedback-vector.h |
+++ b/src/type-feedback-vector.h |
@@ -113,6 +113,11 @@ class TypeFeedbackVector : public FixedArray { |
inline int GetIndex(FeedbackVectorSlot slot) const; |
inline int GetIndex(FeedbackVectorICSlot slot) const; |
+ template <typename Spec> |
+ static int GetIndexFromSpec(const Spec* spec, FeedbackVectorSlot slot); |
+ template <typename Spec> |
+ static int GetIndexFromSpec(const Spec* spec, FeedbackVectorICSlot slot); |
+ |
// Conversion from an integer index to either a slot or an ic slot. The caller |
// should know what kind she expects. |
inline FeedbackVectorSlot ToSlot(int index) const; |