Index: src/type-feedback-vector.h |
diff --git a/src/type-feedback-vector.h b/src/type-feedback-vector.h |
index 7d2ec84dc9c7e633c4caf6b66e32cdffe909f67d..a6db1f8e19ddb48b2413bb414ececcb9d9ee2c4b 100644 |
--- a/src/type-feedback-vector.h |
+++ b/src/type-feedback-vector.h |
@@ -32,6 +32,7 @@ enum class FeedbackVectorSlotKind { |
INTERPRETER_COMPARE_IC, |
STORE_DATA_PROPERTY_IN_LITERAL_IC, |
CREATE_CLOSURE, |
+ LITERAL, |
// This is a general purpose slot that occupies one feedback vector element. |
GENERAL, |
@@ -86,6 +87,10 @@ class FeedbackVectorSpecBase { |
return AddSlot(FeedbackVectorSlotKind::GENERAL); |
} |
+ FeedbackVectorSlot AddLiteralSlot() { |
+ return AddSlot(FeedbackVectorSlotKind::LITERAL); |
+ } |
+ |
FeedbackVectorSlot AddStoreDataPropertyInLiteralICSlot() { |
return AddSlot(FeedbackVectorSlotKind::STORE_DATA_PROPERTY_IN_LITERAL_IC); |
} |
@@ -238,8 +243,6 @@ class TypeFeedbackVector : public FixedArray { |
static int GetIndex(FeedbackVectorSlot slot) { |
return kReservedIndexCount + slot.ToInt(); |
} |
- static int GetIndexFromSpec(const FeedbackVectorSpec* spec, |
- FeedbackVectorSlot slot); |
// Conversion from an integer index to the underlying array to a slot. |
static inline FeedbackVectorSlot ToSlot(int index); |