Index: src/bootstrapper.cc |
=================================================================== |
--- src/bootstrapper.cc (revision 5318) |
+++ src/bootstrapper.cc (working copy) |
@@ -232,6 +232,7 @@ |
bool InstallNatives(); |
void InstallCustomCallGenerators(); |
void InstallJSFunctionResultCaches(); |
+ void InitializeNormalizedMapCaches(); |
// Used both for deserialized and from-scratch contexts to add the extensions |
// provided. |
static bool InstallExtensions(Handle<Context> global_context, |
@@ -1400,6 +1401,13 @@ |
} |
+void Genesis::InitializeNormalizedMapCaches() { |
+ Handle<FixedArray> array( |
+ Factory::NewFixedArray(NormalizedMapCache::kEntries, TENURED)); |
+ global_context()->set_normalized_map_cache(NormalizedMapCache::cast(*array)); |
+} |
+ |
+ |
int BootstrapperActive::nesting_ = 0; |
@@ -1768,6 +1776,7 @@ |
HookUpGlobalProxy(inner_global, global_proxy); |
InitializeGlobal(inner_global, empty_function); |
InstallJSFunctionResultCaches(); |
+ InitializeNormalizedMapCaches(); |
if (!InstallNatives()) return; |
MakeFunctionInstancePrototypeWritable(); |