Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 1115882c4183177e057c0ae7e3a67b7574a5447a..5c2d5786099bff15cd894eea21f08693bd4dc0cf 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -2695,6 +2695,10 @@ |
// expanding the dictionary during bootstrapping. |
set_code_stubs(*UnseededNumberDictionary::New(isolate(), 128)); |
+ // Create the non_monomorphic_cache used in stub-cache.cc. The initial size |
+ // is set to avoid expanding the dictionary during bootstrapping. |
+ set_non_monomorphic_cache(*UnseededNumberDictionary::New(isolate(), 64)); |
+ |
set_instanceof_cache_function(Smi::FromInt(0)); |
set_instanceof_cache_map(Smi::FromInt(0)); |
set_instanceof_cache_answer(Smi::FromInt(0)); |
@@ -2897,6 +2901,7 @@ |
case kInstanceofCacheMapRootIndex: |
case kInstanceofCacheAnswerRootIndex: |
case kCodeStubsRootIndex: |
+ case kNonMonomorphicCacheRootIndex: |
case kEmptyScriptRootIndex: |
case kSymbolRegistryRootIndex: |
case kScriptListRootIndex: |