Index: src/heap/objects-visiting-inl.h |
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h |
index 1d5b39dd4e839d452bbc05133fbeedcf254a0903..01a38cb5ca5280d564412b252048727f59621b8b 100644 |
--- a/src/heap/objects-visiting-inl.h |
+++ b/src/heap/objects-visiting-inl.h |
@@ -409,14 +409,14 @@ void StaticMarkingVisitor<StaticVisitor>::VisitSharedFunctionInfo( |
if (FLAG_cleanup_code_caches_at_gc) { |
shared->ClearTypeFeedbackInfoAtGCTime(); |
} |
- if (FLAG_cache_optimized_code && FLAG_flush_optimized_code_cache && |
+ if (FLAG_flush_optimized_code_cache && |
!shared->optimized_code_map()->IsSmi()) { |
// Always flush the optimized code map if requested by flag. |
shared->ClearOptimizedCodeMap(); |
} |
MarkCompactCollector* collector = heap->mark_compact_collector(); |
if (collector->is_code_flushing_enabled()) { |
- if (FLAG_cache_optimized_code && !shared->optimized_code_map()->IsSmi()) { |
+ if (!shared->optimized_code_map()->IsSmi()) { |
// Add the shared function info holding an optimized code map to |
// the code flusher for processing of code maps after marking. |
collector->code_flusher()->AddOptimizedCodeMap(shared); |
@@ -438,7 +438,7 @@ void StaticMarkingVisitor<StaticVisitor>::VisitSharedFunctionInfo( |
return; |
} |
} else { |
- if (FLAG_cache_optimized_code && !shared->optimized_code_map()->IsSmi()) { |
+ 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(); |