Index: src/heap/objects-visiting-inl.h |
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h |
index 4b8e27d450e6a8d76b4216d882590ef0879aa867..2582b9092dd1e25e1fb27b5ac26214953d107508 100644 |
--- a/src/heap/objects-visiting-inl.h |
+++ b/src/heap/objects-visiting-inl.h |
@@ -472,13 +472,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); |
} |