Index: src/heap/objects-visiting-inl.h |
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h |
index c415713ee3f1c04ebc4713292d4289369f0a5624..b714335132c168449d155871410f79680bd6cd6f 100644 |
--- a/src/heap/objects-visiting-inl.h |
+++ b/src/heap/objects-visiting-inl.h |
@@ -265,8 +265,8 @@ void StaticMarkingVisitor<StaticVisitor>::VisitCodeTarget(Heap* heap, |
// 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->is_call_stub() && (heap->isolate()->serializer_enabled() || |
- target->ic_age() != heap->global_ic_age())) { |
+ (heap->isolate()->serializer_enabled() || |
+ target->ic_age() != heap->global_ic_age())) { |
ICUtility::Clear(heap->isolate(), rinfo->pc(), |
rinfo->host()->constant_pool()); |
target = Code::GetCodeFromTargetAddress(rinfo->target_address()); |