Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index cf2ebf8add336ec04aafec750aea13f45d69a39f..1e06d9724dcfe82c684950a74f0bf571e5e21924 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1484,8 +1484,14 @@ Handle<JSFunction> Genesis::InstallInternalArray( |
factory()->NewJSObject(isolate()->object_function(), TENURED); |
SetPrototype(array_function, prototype); |
+ // TODO(mvstanton): For performance reasons, this code would have to |
+ // be changed to successfully run with FLAG_optimize_constructed_arrays. |
+ // The next checkin to enable FLAG_optimize_constructed_arrays by |
+ // default will address this. |
+ CHECK(!FLAG_optimize_constructed_arrays); |
array_function->shared()->set_construct_stub( |
isolate()->builtins()->builtin(Builtins::kArrayConstructCode)); |
+ |
array_function->shared()->DontAdaptArguments(); |
MaybeObject* maybe_map = array_function->initial_map()->Copy(); |