Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 507ad84090860b0c9eb6993b4896619fcefad389..4216e164091366af9d2659961b0efb2108cccfaf 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -1186,16 +1186,7 @@ class StaticMarkingVisitor : public StaticVisitorBase { |
Heap* heap = map->GetHeap(); |
Code* code = reinterpret_cast<Code*>(object); |
if (FLAG_cleanup_code_caches_at_gc) { |
- Object* raw_info = code->type_feedback_info(); |
- if (raw_info->IsTypeFeedbackInfo()) { |
- TypeFeedbackCells* type_feedback_cells = |
- TypeFeedbackInfo::cast(raw_info)->type_feedback_cells(); |
- for (int i = 0; i < type_feedback_cells->CellCount(); i++) { |
- ASSERT(type_feedback_cells->AstId(i)->IsSmi()); |
- JSGlobalPropertyCell* cell = type_feedback_cells->Cell(i); |
- cell->set_value(TypeFeedbackCells::RawUninitializedSentinel(heap)); |
- } |
- } |
+ code->ClearTypeFeedbackCells(heap); |
} |
code->CodeIterateBody<StaticMarkingVisitor>(heap); |
} |