Index: src/type-feedback-vector.cc |
diff --git a/src/type-feedback-vector.cc b/src/type-feedback-vector.cc |
index bb22cac1e39113cae9a72afd727500064af26357..79afa2dad2dc31d60d735eaf9f746b1c917159c2 100644 |
--- a/src/type-feedback-vector.cc |
+++ b/src/type-feedback-vector.cc |
@@ -133,17 +133,8 @@ Handle<TypeFeedbackVector> TypeFeedbackVector::Copy( |
// This logic is copied from |
// StaticMarkingVisitor<StaticVisitor>::VisitCodeTarget. |
static bool ClearLogic(Heap* heap, int ic_age) { |
- if (FLAG_cleanup_code_caches_at_gc && |
- (heap->flush_monomorphic_ics() || |
- // TODO(mvstanton): is this ic_age granular enough? it comes from |
ulan
2015/02/05 09:44:15
I am going to remove clearing based on ic_age in a
|
- // the SharedFunctionInfo which may change on a different schedule |
- // than ic targets. |
- // ic_age != heap->global_ic_age() || |
- // is_invalidated_weak_stub || |
- heap->isolate()->serializer_enabled())) { |
- return true; |
- } |
- return false; |
+ return FLAG_cleanup_code_caches_at_gc && |
+ heap->isolate()->serializer_enabled(); |
} |