Remove unused functions
Remove InitialArrayPrototypeHasInitialArrayPrototypeMap and HasInitialFastElementsKindMap introduced by http://crrev.com/55efb6cc5dd0ae28b9cc41da31fe86069487c113, but not used after http://crrev.com/1525374ff5a564b55b748ad33e6cd0d0ea684006. Change-Id: I1182221a95d5fc1ac953139e400533efe420bd19 Reviewed-on: https://chromium-review.googlesource.com/1045951 Reviewed-by: Jakob Gruber <jgruber@chromium.org> Commit-Queue: Jakob Gruber <jgruber@chromium.org> Cr-Commit-Position: refs/heads/master@{#53065}
This commit is contained in:
parent
9f5018c9b0
commit
0b49d9f52a
@ -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<JSFunction> js_array_constructor(native_context()->array_function());
|
||||
Handle<JSObject> js_array_prototype(
|
||||
JSObject::cast(js_array_constructor->instance_prototype()));
|
||||
native_context()->set_initial_array_prototype_map(js_array_prototype->map());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1355,27 +1355,6 @@ TNode<BoolT> CodeStubAssembler::HasInstanceType(SloppyTNode<HeapObject> object,
|
||||
return InstanceTypeEqual(LoadInstanceType(object), instance_type);
|
||||
}
|
||||
|
||||
TNode<BoolT>
|
||||
CodeStubAssembler::InitialArrayPrototypeHasInitialArrayPrototypeMap(
|
||||
TNode<Context> native_context) {
|
||||
CSA_ASSERT(this, IsNativeContext(native_context));
|
||||
TNode<Map> proto_map = LoadMap(CAST(LoadContextElement(
|
||||
native_context, Context::INITIAL_ARRAY_PROTOTYPE_INDEX)));
|
||||
TNode<Map> initial_map = CAST(LoadContextElement(
|
||||
native_context, Context::INITIAL_ARRAY_PROTOTYPE_MAP_INDEX));
|
||||
return WordEqual(proto_map, initial_map);
|
||||
}
|
||||
|
||||
TNode<BoolT> CodeStubAssembler::HasInitialFastElementsKindMap(
|
||||
TNode<Context> native_context, TNode<JSArray> jsarray) {
|
||||
CSA_ASSERT(this, IsNativeContext(native_context));
|
||||
TNode<Map> map = LoadMap(jsarray);
|
||||
TNode<Int32T> elements_kind = LoadMapElementsKind(map);
|
||||
TNode<Map> initial_jsarray_element_map =
|
||||
LoadJSArrayElementsMap(elements_kind, native_context);
|
||||
return WordEqual(initial_jsarray_element_map, map);
|
||||
}
|
||||
|
||||
TNode<BoolT> CodeStubAssembler::DoesntHaveInstanceType(
|
||||
SloppyTNode<HeapObject> object, InstanceType instance_type) {
|
||||
return Word32NotEqual(LoadInstanceType(object), Int32Constant(instance_type));
|
||||
|
@ -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<BoolT> HasInstanceType(SloppyTNode<HeapObject> object,
|
||||
InstanceType type);
|
||||
// Determines whether Array's prototype has changed.
|
||||
TNode<BoolT> InitialArrayPrototypeHasInitialArrayPrototypeMap(
|
||||
TNode<Context> native_context);
|
||||
// Determines whether an array's elements map has changed.
|
||||
TNode<BoolT> HasInitialFastElementsKindMap(TNode<Context> native_context,
|
||||
TNode<JSArray> jsarray);
|
||||
TNode<BoolT> DoesntHaveInstanceType(SloppyTNode<HeapObject> object,
|
||||
InstanceType type);
|
||||
TNode<BoolT> TaggedDoesntHaveInstanceType(SloppyTNode<HeapObject> any_tagged,
|
||||
|
@ -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, \
|
||||
|
Loading…
Reference in New Issue
Block a user