diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc index 02ebb79c46..d969feb794 100644 --- a/src/bootstrapper.cc +++ b/src/bootstrapper.cc @@ -5144,11 +5144,6 @@ bool Genesis::ConfigureGlobalObjects( native_context()->set_js_map_map(js_map_fun->initial_map()); native_context()->set_js_set_map(js_set_fun->initial_map()); - Handle js_array_constructor(native_context()->array_function()); - Handle js_array_prototype( - JSObject::cast(js_array_constructor->instance_prototype())); - native_context()->set_initial_array_prototype_map(js_array_prototype->map()); - return true; } diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc index 1507953571..41d8ee51a6 100644 --- a/src/code-stub-assembler.cc +++ b/src/code-stub-assembler.cc @@ -1355,27 +1355,6 @@ TNode CodeStubAssembler::HasInstanceType(SloppyTNode object, return InstanceTypeEqual(LoadInstanceType(object), instance_type); } -TNode -CodeStubAssembler::InitialArrayPrototypeHasInitialArrayPrototypeMap( - TNode native_context) { - CSA_ASSERT(this, IsNativeContext(native_context)); - TNode proto_map = LoadMap(CAST(LoadContextElement( - native_context, Context::INITIAL_ARRAY_PROTOTYPE_INDEX))); - TNode initial_map = CAST(LoadContextElement( - native_context, Context::INITIAL_ARRAY_PROTOTYPE_MAP_INDEX)); - return WordEqual(proto_map, initial_map); -} - -TNode CodeStubAssembler::HasInitialFastElementsKindMap( - TNode native_context, TNode jsarray) { - CSA_ASSERT(this, IsNativeContext(native_context)); - TNode map = LoadMap(jsarray); - TNode elements_kind = LoadMapElementsKind(map); - TNode initial_jsarray_element_map = - LoadJSArrayElementsMap(elements_kind, native_context); - return WordEqual(initial_jsarray_element_map, map); -} - TNode CodeStubAssembler::DoesntHaveInstanceType( SloppyTNode object, InstanceType instance_type) { return Word32NotEqual(LoadInstanceType(object), Int32Constant(instance_type)); diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h index 076b999c3d..575adf0990 100644 --- a/src/code-stub-assembler.h +++ b/src/code-stub-assembler.h @@ -571,12 +571,6 @@ class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler { // Compare the instance the type of the object against the provided one. TNode HasInstanceType(SloppyTNode object, InstanceType type); - // Determines whether Array's prototype has changed. - TNode InitialArrayPrototypeHasInitialArrayPrototypeMap( - TNode native_context); - // Determines whether an array's elements map has changed. - TNode HasInitialFastElementsKindMap(TNode native_context, - TNode jsarray); TNode DoesntHaveInstanceType(SloppyTNode object, InstanceType type); TNode TaggedDoesntHaveInstanceType(SloppyTNode any_tagged, diff --git a/src/contexts.h b/src/contexts.h index af178e04e7..4cfbb29f06 100644 --- a/src/contexts.h +++ b/src/contexts.h @@ -158,7 +158,6 @@ enum ContextLookupFlags { V(INITIAL_ARRAY_ITERATOR_PROTOTYPE_INDEX, JSObject, \ initial_array_iterator_prototype) \ V(INITIAL_ARRAY_PROTOTYPE_INDEX, JSObject, initial_array_prototype) \ - V(INITIAL_ARRAY_PROTOTYPE_MAP_INDEX, Map, initial_array_prototype_map) \ V(INITIAL_ERROR_PROTOTYPE_INDEX, JSObject, initial_error_prototype) \ V(INITIAL_GENERATOR_PROTOTYPE_INDEX, JSObject, initial_generator_prototype) \ V(INITIAL_ASYNC_GENERATOR_PROTOTYPE_INDEX, JSObject, \