| Index: src/ic/ic-inl.h
|
| diff --git a/src/ic/ic-inl.h b/src/ic/ic-inl.h
|
| index 22f66d0409b03d45ce443c95caf897d4cb5d8628..15e9851dcad87f5415d1401e561aa05f411ce567 100644
|
| --- a/src/ic/ic-inl.h
|
| +++ b/src/ic/ic-inl.h
|
| @@ -96,6 +96,12 @@ Code* IC::GetTargetAtAddress(Address address,
|
| void IC::SetTargetAtAddress(Address address, Code* target,
|
| ConstantPoolArray* constant_pool) {
|
| 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(!(FLAG_vector_ics && target->is_inline_cache_stub()) ||
|
| + (target->kind() != Code::LOAD_IC &&
|
| + target->kind() != Code::KEYED_LOAD_IC));
|
| +
|
| Heap* heap = target->GetHeap();
|
| Code* old_target = GetTargetAtAddress(address, constant_pool);
|
| #ifdef DEBUG
|
|
|