| Index: src/bootstrapper.cc
|
| ===================================================================
|
| --- src/bootstrapper.cc (revision 2947)
|
| +++ src/bootstrapper.cc (working copy)
|
| @@ -654,6 +654,8 @@
|
| InstallFunction(global, "Array", JS_ARRAY_TYPE, JSArray::kSize,
|
| Top::initial_object_prototype(), Builtins::ArrayCode,
|
| true);
|
| + array_function->shared()->set_construct_stub(
|
| + Builtins::builtin(Builtins::ArrayConstructCode));
|
| array_function->shared()->DontAdaptArguments();
|
|
|
| // This seems a bit hackish, but we need to make sure Array.length
|
| @@ -1471,7 +1473,7 @@
|
| HandleScope scope;
|
|
|
| Handle<DescriptorArray> function_map_descriptors =
|
| - ComputeFunctionInstanceDescriptor(false, true);
|
| + ComputeFunctionInstanceDescriptor(false);
|
| Handle<Map> fm = Factory::CopyMapDropDescriptors(Top::function_map());
|
| fm->set_instance_descriptors(*function_map_descriptors);
|
| Top::context()->global_context()->set_function_map(*fm);
|
|
|
|
|