| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index 616c96e909fa632e4ce329e87cdedf342b4f026d..41179f9a892a0967c3e82d1a79d0ddbee0fa7f9c 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "src/accessors.h"
|
| #include "src/api.h"
|
| +#include "src/ast/context-slot-cache.h"
|
| #include "src/base/bits.h"
|
| #include "src/base/once.h"
|
| #include "src/base/utils/random-number-generator.h"
|
| @@ -1474,6 +1475,7 @@
|
| // At any old GC clear the keyed lookup cache to enable collection of unused
|
| // maps.
|
| isolate_->keyed_lookup_cache()->Clear();
|
| + isolate_->context_slot_cache()->Clear();
|
| isolate_->descriptor_lookup_cache()->Clear();
|
| RegExpResultsCache::Clear(string_split_cache());
|
| RegExpResultsCache::Clear(regexp_multiple_cache());
|
| @@ -2888,6 +2890,9 @@
|
|
|
| // Initialize keyed lookup cache.
|
| isolate_->keyed_lookup_cache()->Clear();
|
| +
|
| + // Initialize context slot cache.
|
| + isolate_->context_slot_cache()->Clear();
|
|
|
| // Initialize descriptor cache.
|
| isolate_->descriptor_lookup_cache()->Clear();
|
|
|