diff options
Diffstat (limited to 'deps/v8/src/ic/ic-inl.h')
-rw-r--r-- | deps/v8/src/ic/ic-inl.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/deps/v8/src/ic/ic-inl.h b/deps/v8/src/ic/ic-inl.h index 22f66d0409..58d7d4608f 100644 --- a/deps/v8/src/ic/ic-inl.h +++ b/deps/v8/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 @@ -119,9 +125,6 @@ void IC::SetTargetAtAddress(Address address, Code* target, void IC::set_target(Code* code) { -#ifdef VERIFY_HEAP - code->VerifyEmbeddedObjectsDependency(); -#endif SetTargetAtAddress(address(), code, constant_pool()); target_set_ = true; } |