Index: src/ic/ic-inl.h |
diff --git a/src/ic/ic-inl.h b/src/ic/ic-inl.h |
index 55572f75277ea20f28537596cda393ed6a183709..95fbfc47549b095be57172e0d80a8dc4d34e2d52 100644 |
--- a/src/ic/ic-inl.h |
+++ b/src/ic/ic-inl.h |
@@ -98,10 +98,11 @@ void IC::SetTargetAtAddress(Address address, Code* target, |
DCHECK(target->is_inline_cache_stub() || target->is_compare_ic_stub()); |
- // Don't use this for load_ics when --vector-ics is turned on. |
DCHECK(!target->is_inline_cache_stub() || |
(target->kind() != Code::LOAD_IC && |
- target->kind() != Code::KEYED_LOAD_IC)); |
+ target->kind() != Code::KEYED_LOAD_IC && |
+ (!FLAG_vector_stores || (target->kind() != Code::STORE_IC && |
+ target->kind() != Code::KEYED_STORE_IC)))); |
Heap* heap = target->GetHeap(); |
Code* old_target = GetTargetAtAddress(address, constant_pool); |