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

Unified Diff: src/bootstrapper.cc

Issue 1676823002: [runtime] Set constructor field on preallocated maps. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | no next file » | 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 942bc20efa920c78068853f3e247a4631f350b9f..e0663a9d3ab070cbd2642cb52e41f6238893d7c8 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1591,6 +1591,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
map->AppendDescriptor(&d);
}
+ map->SetConstructor(native_context()->object_function());
map->SetInObjectProperties(2);
native_context()->set_iterator_result_map(*map);
}
@@ -2788,6 +2789,7 @@ bool Genesis::InstallNatives(GlobalContextType context_type) {
}
Map::SetPrototype(map, isolate()->initial_object_prototype());
+ map->SetConstructor(native_context()->object_function());
map->SetInObjectProperties(4);
map->set_unused_property_fields(0);
@@ -2830,6 +2832,7 @@ bool Genesis::InstallNatives(GlobalContextType context_type) {
}
Map::SetPrototype(map, isolate()->initial_object_prototype());
+ map->SetConstructor(native_context()->object_function());
map->SetInObjectProperties(4);
map->set_unused_property_fields(0);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698