| Index: src/objects-visiting-inl.h
|
| diff --git a/src/objects-visiting-inl.h b/src/objects-visiting-inl.h
|
| index 97406190dea62d8b7adb90676997402d7a27b0a0..03d0239b97d0a79e930da168863734b047479b18 100644
|
| --- a/src/objects-visiting-inl.h
|
| +++ b/src/objects-visiting-inl.h
|
| @@ -309,6 +309,7 @@ void StaticMarkingVisitor<StaticVisitor>::VisitCodeTarget(
|
| // Monomorphic ICs are preserved when possible, but need to be flushed
|
| // 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() == GENERIC ||
|
| target->ic_state() == POLYMORPHIC || heap->flush_monomorphic_ics() ||
|
|
|