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

Unified Diff: src/bootstrapper.cc

Issue 2465253011: Fastpath some spread-call desugaring. (Closed)
Patch Set: Handles double arrays too Created 4 years, 1 month 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 | src/builtins/builtins-array.cc » ('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 08f024f5a6d1d11df89c6ecf84e66f7e73f08092..8e345aee1ff9df434cb73231591ca575e98bbf9c 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1350,6 +1350,11 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
array_iterator_function->shared()->set_instance_class_name(
isolate->heap()->ArrayIterator_string());
+ native_context()->set_initial_array_iterator_prototype(
+ *array_iterator_prototype);
+ native_context()->set_initial_array_iterator_prototype_map(
+ array_iterator_prototype->map());
+
Handle<Map> initial_map(array_iterator_function->initial_map(), isolate);
#define ARRAY_ITERATOR_LIST(V) \
« no previous file with comments | « no previous file | src/builtins/builtins-array.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698