| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 31d6e3e00c2cc355bc8b2caaface11a6989d55bd..2592bb733008d3cd2e439a90e2aa139bf2f9defb 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -2059,7 +2059,9 @@ bool Genesis::InstallNatives() {
|
|
|
| InstallNativeFunctions();
|
|
|
| - native_context()->set_function_cache(heap()->empty_fixed_array());
|
| + auto function_cache =
|
| + ObjectHashTable::New(isolate(), ApiNatives::kInitialFunctionCacheSize);
|
| + native_context()->set_function_cache(*function_cache);
|
|
|
| // Store the map for the string prototype after the natives has been compiled
|
| // and the String function has been set up.
|
|
|