summaryrefslogtreecommitdiff
path: root/deps/v8/src/bootstrapper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/bootstrapper.cc')
-rw-r--r--deps/v8/src/bootstrapper.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/v8/src/bootstrapper.cc b/deps/v8/src/bootstrapper.cc
index 31d6e3e00c..2592bb7330 100644
--- a/deps/v8/src/bootstrapper.cc
+++ b/deps/v8/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.