Index: src/heap/objects-visiting-inl.h |
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h |
index c8117ec7e928cb93954746b515c554408e62d5ab..964647383411583401fa6fde8afb7a1846a723aa 100644 |
--- a/src/heap/objects-visiting-inl.h |
+++ b/src/heap/objects-visiting-inl.h |
@@ -478,13 +478,6 @@ void StaticMarkingVisitor<StaticVisitor>::VisitSharedFunctionInfo( |
VisitSharedFunctionInfoWeakCode(heap, object); |
return; |
} |
- } else { |
- // TODO(mstarzinger): Drop this case, it shouldn't be done here! |
- if (!shared->optimized_code_map()->IsSmi()) { |
- // Flush optimized code map on major GCs without code flushing, |
- // needed because cached code doesn't contain breakpoints. |
- shared->ClearOptimizedCodeMap(); |
- } |
} |
VisitSharedFunctionInfoStrongCode(heap, object); |
} |