Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: src/bootstrapper.cc

Issue 1053973002: Version 4.2.77.14 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.2
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/api-natives.cc ('k') | src/contexts.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « src/api-natives.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698