| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 6f9248abcf64c1887d5f5b19ff28c7839c948017..2bb333f4c88da50140409206a5d22cd94e190e78 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -1334,6 +1334,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
|
| Handle<JSFunction> next = InstallFunction(
|
| array_iterator_prototype, "next", JS_OBJECT_TYPE, JSObject::kHeaderSize,
|
| MaybeHandle<JSObject>(), Builtins::kArrayIteratorPrototypeNext);
|
| + next->shared()->set_builtin_function_id(kArrayIteratorNext);
|
|
|
| // Set the expected parameters for %ArrayIteratorPrototype%.next to 0 (not
|
| // including the receiver), as required by the builtin.
|
| @@ -2187,14 +2188,21 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
|
| kTypedArrayLength);
|
|
|
| // Install "keys", "values" and "entries" methods on the {prototype}.
|
| - SimpleInstallFunction(prototype, factory->entries_string(),
|
| - Builtins::kTypedArrayPrototypeEntries, 0, true);
|
| - SimpleInstallFunction(prototype, factory->keys_string(),
|
| - Builtins::kTypedArrayPrototypeKeys, 0, true);
|
| - Handle<JSFunction> iterator =
|
| + Handle<JSFunction> entries =
|
| + SimpleInstallFunction(prototype, factory->entries_string(),
|
| + Builtins::kTypedArrayPrototypeEntries, 0, true);
|
| + entries->shared()->set_builtin_function_id(kTypedArrayEntries);
|
| +
|
| + Handle<JSFunction> keys =
|
| + SimpleInstallFunction(prototype, factory->keys_string(),
|
| + Builtins::kTypedArrayPrototypeKeys, 0, true);
|
| + keys->shared()->set_builtin_function_id(kTypedArrayKeys);
|
| +
|
| + Handle<JSFunction> values =
|
| SimpleInstallFunction(prototype, factory->values_string(),
|
| Builtins::kTypedArrayPrototypeValues, 0, true);
|
| - JSObject::AddProperty(prototype, factory->iterator_symbol(), iterator,
|
| + values->shared()->set_builtin_function_id(kTypedArrayValues);
|
| + JSObject::AddProperty(prototype, factory->iterator_symbol(), values,
|
| DONT_ENUM);
|
| }
|
|
|
|
|