| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 5cdda84e57eec87964b25fbd99026aac0c96b31f..5d760f12654a7a7fb9133e1b0be7ae114aff0807 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -2472,7 +2472,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
|
| Handle<Map> map =
|
| factory->NewMap(JS_MODULE_NAMESPACE_TYPE, JSModuleNamespace::kSize);
|
| Map::SetPrototype(map, isolate->factory()->null_value());
|
| - Map::EnsureDescriptorSlack(map, 2);
|
| + Map::EnsureDescriptorSlack(map, 1);
|
| native_context()->set_js_module_namespace_map(*map);
|
|
|
| { // Install @@toStringTag.
|
| @@ -2483,16 +2483,6 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
|
| attribs);
|
| map->AppendDescriptor(&d);
|
| }
|
| -
|
| - { // Install @@iterator.
|
| - Handle<JSFunction> iterator = SimpleCreateFunction(
|
| - isolate, factory->NewStringFromAsciiChecked("[Symbol.iterator]"),
|
| - Builtins::kModuleNamespaceIterator, 0, true);
|
| - iterator->shared()->set_native(true);
|
| - // TODO(neis): Is this really supposed to be writable?
|
| - DataConstantDescriptor d(factory->iterator_symbol(), iterator, DONT_ENUM);
|
| - map->AppendDescriptor(&d);
|
| - }
|
| }
|
|
|
| { // -- I t e r a t o r R e s u l t
|
| @@ -3088,25 +3078,6 @@ void Bootstrapper::ExportFromRuntime(Isolate* isolate,
|
| *generator_function_function);
|
| }
|
|
|
| - { // -- F i x e d A r r a y I t e r a t o r
|
| - int size = JSFixedArrayIterator::kHeaderSize +
|
| - JSFixedArrayIterator::kInObjectPropertyCount * kPointerSize;
|
| - Handle<Map> map = factory->NewMap(JS_FIXED_ARRAY_ITERATOR_TYPE, size);
|
| - Map::SetPrototype(map, iterator_prototype);
|
| - Map::EnsureDescriptorSlack(map,
|
| - JSFixedArrayIterator::kInObjectPropertyCount);
|
| - map->SetInObjectProperties(JSFixedArrayIterator::kInObjectPropertyCount);
|
| - map->SetConstructor(native_context->object_function());
|
| -
|
| - { // next
|
| - DataDescriptor d(factory->next_string(), JSFixedArrayIterator::kNextIndex,
|
| - DONT_ENUM, Representation::Tagged());
|
| - map->AppendDescriptor(&d);
|
| - }
|
| -
|
| - native_context->set_fixed_array_iterator_map(*map);
|
| - }
|
| -
|
| { // -- S e t I t e r a t o r
|
| Handle<JSObject> set_iterator_prototype =
|
| isolate->factory()->NewJSObject(isolate->object_function(), TENURED);
|
|
|