| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 143c00154c63b56304706f0c0515b93106b614d4..3eb097967d7558b6048be188fdc7324411b84fb8 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -2606,16 +2606,10 @@ void Genesis::InstallTypedArray(const char* name, ElementsKind elements_kind,
|
|
|
| Handle<JSObject> prototype =
|
| factory()->NewJSObject(isolate()->object_function(), TENURED);
|
| - Handle<JSFunction> result =
|
| - InstallFunction(global, name, JS_TYPED_ARRAY_TYPE, JSTypedArray::kSize,
|
| - prototype, Builtins::kIllegal);
|
| -
|
| - Handle<Map> initial_map = isolate()->factory()->NewMap(
|
| - JS_TYPED_ARRAY_TYPE,
|
| - JSTypedArray::kSizeWithInternalFields,
|
| - elements_kind);
|
| - JSFunction::SetInitialMap(result, initial_map,
|
| - handle(initial_map->prototype(), isolate()));
|
| + Handle<JSFunction> result = InstallFunction(
|
| + global, name, JS_TYPED_ARRAY_TYPE, JSTypedArray::kSizeWithInternalFields,
|
| + prototype, Builtins::kIllegal);
|
| + result->initial_map()->set_elements_kind(elements_kind);
|
|
|
| CHECK(JSObject::SetPrototype(result, typed_array_function, false,
|
| Object::DONT_THROW)
|
|
|