Index: src/incremental-marking.cc |
diff --git a/src/incremental-marking.cc b/src/incremental-marking.cc |
index f3255e21ebf75022ce40b774f9cc5578fc0e2adf..7bbd5218b15fce6d55881088a491804b4f421747 100644 |
--- a/src/incremental-marking.cc |
+++ b/src/incremental-marking.cc |
@@ -205,6 +205,12 @@ class IncrementalMarkingMarkingVisitor : public ObjectVisitor { |
MarkObject(target); |
} |
+ void VisitSharedFunctionInfo(SharedFunctionInfo* shared) { |
+ if (shared->ic_age() != heap_->global_ic_age()) { |
+ shared->ResetForNewContext(heap_->global_ic_age()); |
+ } |
+ } |
+ |
void VisitPointer(Object** p) { |
Object* obj = *p; |
if (obj->NonFailureIsHeapObject()) { |