Index: src/type-feedback-vector.h |
diff --git a/src/type-feedback-vector.h b/src/type-feedback-vector.h |
index fee985191f6122890c598aa06424a38ecb325dda..c8f68bd1fbca8a40f5c92cd0743e65dfeb75d161 100644 |
--- a/src/type-feedback-vector.h |
+++ b/src/type-feedback-vector.h |
@@ -120,6 +120,7 @@ class TypeFeedbackVector : public FixedArray { |
// Conversion from a slot or ic slot to an integer index to the underlying |
// array. |
int GetIndex(FeedbackVectorSlot slot) const { |
+ DCHECK(slot.ToInt() < first_ic_slot_index()); |
return kReservedIndexCount + ic_metadata_length() + slot.ToInt(); |
} |