| Index: src/objects-visiting-inl.h
|
| diff --git a/src/objects-visiting-inl.h b/src/objects-visiting-inl.h
|
| index 010f3068a9e3ce1b7e493cb513e3c8df9fef3562..c671e632b6343a702ffe4c353c377657d1cd3bc8 100644
|
| --- a/src/objects-visiting-inl.h
|
| +++ b/src/objects-visiting-inl.h
|
| @@ -426,9 +426,6 @@ void StaticMarkingVisitor<StaticVisitor>::VisitCode(
|
| Map* map, HeapObject* object) {
|
| Heap* heap = map->GetHeap();
|
| Code* code = Code::cast(object);
|
| - if (FLAG_cleanup_code_caches_at_gc) {
|
| - code->ClearTypeFeedbackInfo(heap);
|
| - }
|
| if (FLAG_age_code && !Serializer::enabled()) {
|
| code->MakeOlder(heap->mark_compact_collector()->marking_parity());
|
| }
|
| @@ -444,6 +441,9 @@ 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->ClearTypeFeedbackInfo(heap);
|
| + }
|
| if (FLAG_cache_optimized_code &&
|
| FLAG_flush_optimized_code_cache &&
|
| !shared->optimized_code_map()->IsSmi()) {
|
|
|