Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 38f6c1f4f0291955cce3acdbf8072ded7cd804df..605e036309e1484e05364ba76a9bcb78e1292201 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -500,23 +500,7 @@ const char* Heap::GetSpaceName(int idx) { |
void Heap::ClearAllKeyedStoreICs() { |
Hannes Payer (out of office)
2015/11/17 12:14:31
The heap does not need to know anymore about:
Type
mvstanton
2015/11/17 12:37:46
Done.
|
- if (FLAG_vector_stores) { |
- TypeFeedbackVector::ClearAllKeyedStoreICs(isolate_); |
- return; |
- } |
- |
- // TODO(mvstanton): Remove this function when FLAG_vector_stores is turned on |
- // permanently, and divert all callers to KeyedStoreIC::ClearAllKeyedStoreICs. |
- HeapObjectIterator it(code_space()); |
- |
- for (Object* object = it.Next(); object != NULL; object = it.Next()) { |
- Code* code = Code::cast(object); |
- Code::Kind current_kind = code->kind(); |
- if (current_kind == Code::FUNCTION || |
- current_kind == Code::OPTIMIZED_FUNCTION) { |
- code->ClearInlineCaches(Code::KEYED_STORE_IC); |
- } |
- } |
+ TypeFeedbackVector::ClearAllKeyedStoreICs(isolate_); |
} |