| Index: src/objects-visiting-inl.h
|
| diff --git a/src/objects-visiting-inl.h b/src/objects-visiting-inl.h
|
| index 309cddf66c7b617fd3a0236d4ea47fa19dc5c712..33af4038b6b0aedfd29609f412d7261a287de0db 100644
|
| --- a/src/objects-visiting-inl.h
|
| +++ b/src/objects-visiting-inl.h
|
| @@ -211,7 +211,7 @@ void StaticMarkingVisitor<StaticVisitor>::VisitCodeTarget(
|
| // when they might be keeping a Context alive, or when the heap is about
|
| // to be serialized.
|
| if (FLAG_cleanup_code_caches_at_gc && target->is_inline_cache_stub()
|
| - && (target->ic_state() == MEGAMORPHIC ||
|
| + && (target->ic_state() == MEGAMORPHIC || target->ic_state() == GENERIC ||
|
| target->ic_state() == POLYMORPHIC || heap->flush_monomorphic_ics() ||
|
| Serializer::enabled() || target->ic_age() != heap->global_ic_age())) {
|
| IC::Clear(rinfo->pc());
|
|
|