| Index: src/heap/objects-visiting-inl.h
|
| diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h
|
| index 4373451e44f45aa86ab14aa7e922974370216b3c..14045addad1f96e93a7e13cce41cff64e9a040d0 100644
|
| --- a/src/heap/objects-visiting-inl.h
|
| +++ b/src/heap/objects-visiting-inl.h
|
| @@ -459,9 +459,6 @@ void StaticMarkingVisitor<StaticVisitor>::VisitSharedFunctionInfo(
|
| if (shared->ic_age() != heap->global_ic_age()) {
|
| shared->ResetForNewContext(heap->global_ic_age());
|
| }
|
| - if (FLAG_cleanup_code_caches_at_gc) {
|
| - shared->ClearTypeFeedbackInfoAtGCTime();
|
| - }
|
| if (FLAG_flush_optimized_code_cache) {
|
| if (!shared->OptimizedCodeMapIsCleared()) {
|
| // Always flush the optimized code map if requested by flag.
|
| @@ -492,6 +489,9 @@ void StaticMarkingVisitor<StaticVisitor>::VisitJSFunction(Map* map,
|
| HeapObject* object) {
|
| Heap* heap = map->GetHeap();
|
| JSFunction* function = JSFunction::cast(object);
|
| + if (FLAG_cleanup_code_caches_at_gc) {
|
| + function->ClearTypeFeedbackInfoAtGCTime();
|
| + }
|
| MarkCompactCollector* collector = heap->mark_compact_collector();
|
| if (collector->is_code_flushing_enabled()) {
|
| if (IsFlushable(heap, function)) {
|
|
|