Index: src/type-feedback-vector-inl.h |
diff --git a/src/type-feedback-vector-inl.h b/src/type-feedback-vector-inl.h |
index 97f8ad9a610303abcccac0a4569ddb1b7752642d..ba947f890880f9a3752f343b578aa9d4781781b1 100644 |
--- a/src/type-feedback-vector-inl.h |
+++ b/src/type-feedback-vector-inl.h |
@@ -82,7 +82,7 @@ int TypeFeedbackVector::invocation_count() const { |
// Conversion from an integer index to either a slot or an ic slot. |
// static |
FeedbackVectorSlot TypeFeedbackVector::ToSlot(int index) { |
- DCHECK(index >= kReservedIndexCount); |
+ DCHECK_GE(index, kReservedIndexCount); |
return FeedbackVectorSlot(index - kReservedIndexCount); |
} |
@@ -159,7 +159,8 @@ void TypeFeedbackVector::ComputeCounts(int* with_type_info, int* generic, |
case FeedbackVectorSlotKind::LOAD_GLOBAL_IC: |
case FeedbackVectorSlotKind::KEYED_LOAD_IC: |
case FeedbackVectorSlotKind::STORE_IC: |
- case FeedbackVectorSlotKind::KEYED_STORE_IC: { |
+ case FeedbackVectorSlotKind::KEYED_STORE_IC: |
+ case FeedbackVectorSlotKind::STORE_DATA_PROPERTY_IN_LITERAL_IC: { |
if (obj->IsWeakCell() || obj->IsFixedArray() || obj->IsString()) { |
with++; |
} else if (obj == megamorphic_sentinel) { |