Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 3df224995eff4807d2da1208b8c270363c011640..0d26b4776979f8d6f2e10d49668a5a7866cd7f1c 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -430,7 +430,6 @@ void Heap::IncrementDeferredCount(v8::Isolate::UseCounterFeature feature) { |
void Heap::GarbageCollectionPrologue() { |
{ |
AllowHeapAllocation for_the_first_part_of_prologue; |
- ClearJSFunctionResultCaches(); |
gc_count_++; |
unflattened_strings_length_ = 0; |
@@ -1134,29 +1133,6 @@ void Heap::EnsureFromSpaceIsCommitted() { |
} |
-void Heap::ClearJSFunctionResultCaches() { |
- if (isolate_->bootstrapper()->IsActive()) return; |
- |
- Object* context = native_contexts_list(); |
- while (!context->IsUndefined()) { |
- // Get the caches for this context. GC can happen when the context |
- // is not fully initialized, so the caches can be undefined. |
- Object* caches_or_undefined = |
- Context::cast(context)->get(Context::JSFUNCTION_RESULT_CACHES_INDEX); |
- if (!caches_or_undefined->IsUndefined()) { |
- FixedArray* caches = FixedArray::cast(caches_or_undefined); |
- // Clear the caches: |
- int length = caches->length(); |
- for (int i = 0; i < length; i++) { |
- JSFunctionResultCache::cast(caches->get(i))->Clear(); |
- } |
- } |
- // Get the next context: |
- context = Context::cast(context)->get(Context::NEXT_CONTEXT_LINK); |
- } |
-} |
- |
- |
void Heap::ClearNormalizedMapCaches() { |
if (isolate_->bootstrapper()->IsActive() && |
!incremental_marking()->IsMarking()) { |