Index: src/type-feedback-vector.cc |
diff --git a/src/type-feedback-vector.cc b/src/type-feedback-vector.cc |
index 661aa2feac43c129745b8544930cc7b8e1ec9267..699cd08822ce87dfc40bc008e3603fb2cd9d8bc5 100644 |
--- a/src/type-feedback-vector.cc |
+++ b/src/type-feedback-vector.cc |
@@ -362,19 +362,11 @@ void TypeFeedbackVector::ClearAllKeyedStoreICs(Isolate* isolate) { |
int length = optimized_code_map->length(); |
for (int i = SharedFunctionInfo::kEntriesStart; i < length; |
i += SharedFunctionInfo::kEntryLength) { |
- Object* lits = |
- optimized_code_map->get(i + SharedFunctionInfo::kLiteralsOffset); |
- TypeFeedbackVector* vector = nullptr; |
- if (lits->IsWeakCell()) { |
- WeakCell* cell = WeakCell::cast(lits); |
- if (cell->value()->IsLiteralsArray()) { |
- vector = LiteralsArray::cast(cell->value())->feedback_vector(); |
- } |
- } else { |
- DCHECK(lits->IsLiteralsArray()); |
- vector = LiteralsArray::cast(lits)->feedback_vector(); |
- } |
- if (vector != nullptr) { |
+ WeakCell* cell = WeakCell::cast( |
+ optimized_code_map->get(i + SharedFunctionInfo::kLiteralsOffset)); |
+ if (cell->value()->IsLiteralsArray()) { |
+ TypeFeedbackVector* vector = |
+ LiteralsArray::cast(cell->value())->feedback_vector(); |
vector->ClearKeyedStoreICs(shared); |
} |
} |