Index: src/objects-visiting-inl.h |
diff --git a/src/objects-visiting-inl.h b/src/objects-visiting-inl.h |
index 30a7ad460b01222931a8a0defe744bf96958a31c..80662cc745e1c3715cc3bb53ecb4e66d1d578ce2 100644 |
--- a/src/objects-visiting-inl.h |
+++ b/src/objects-visiting-inl.h |
@@ -216,6 +216,18 @@ void StaticMarkingVisitor<StaticVisitor>::VisitGlobalContext( |
template<typename StaticVisitor> |
+void StaticMarkingVisitor<StaticVisitor>::VisitCode( |
+ Map* map, HeapObject* object) { |
+ Heap* heap = map->GetHeap(); |
+ Code* code = Code::cast(object); |
+ if (FLAG_cleanup_code_caches_at_gc) { |
+ code->ClearTypeFeedbackCells(heap); |
+ } |
+ code->CodeIterateBody<StaticVisitor>(heap); |
+} |
+ |
+ |
+template<typename StaticVisitor> |
void StaticMarkingVisitor<StaticVisitor>::VisitJSRegExp( |
Map* map, HeapObject* object) { |
int last_property_offset = |