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

Unified Diff: src/bootstrapper.cc

Issue 988283003: use a hash table for the function cache as blink is leaking functiontemplates (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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 87cd0d4a0cca13da51dd2134e55dd7b1fd9b81b7..c5d59e66b67467d2cbe43969c7d4168b506a19b1 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -2117,7 +2117,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