/external/v8/src/ |
D | elements-kind.cc | 16 int ElementsKindToShiftSize(ElementsKind elements_kind) { in ElementsKindToShiftSize() argument 17 switch (elements_kind) { in ElementsKindToShiftSize() 51 int ElementsKindToByteSize(ElementsKind elements_kind) { in ElementsKindToByteSize() argument 52 return 1 << ElementsKindToShiftSize(elements_kind); in ElementsKindToByteSize() 55 int GetDefaultHeaderSizeForElementsKind(ElementsKind elements_kind) { in GetDefaultHeaderSizeForElementsKind() argument 58 if (IsFixedTypedArrayElementsKind(elements_kind)) { in GetDefaultHeaderSizeForElementsKind() 110 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind) { in GetSequenceIndexFromFastElementsKind() argument 112 if (fast_elements_kind_sequence.Get()[i] == elements_kind) { in GetSequenceIndexFromFastElementsKind() 126 static inline bool IsFastTransitionTarget(ElementsKind elements_kind) { in IsFastTransitionTarget() argument 127 return IsFastElementsKind(elements_kind) || in IsFastTransitionTarget() [all …]
|
D | elements-kind.h | 82 int ElementsKindToShiftSize(ElementsKind elements_kind); 83 int ElementsKindToByteSize(ElementsKind elements_kind); 84 int GetDefaultHeaderSizeForElementsKind(ElementsKind elements_kind); 90 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind); 92 ElementsKind GetNextTransitionElementsKind(ElementsKind elements_kind);
|
D | elements.h | 27 static ElementsAccessor* ForKind(ElementsKind elements_kind) { in ForKind() argument 28 DCHECK_LT(static_cast<int>(elements_kind), kElementsKindCount); in ForKind() 29 return elements_accessors_[elements_kind]; in ForKind()
|
D | map-updater.cc | 32 new_elements_kind_(old_map_->elements_kind()), in MapUpdater() 152 Handle<Map> MapUpdater::ReconfigureElementsKind(ElementsKind elements_kind) { in ReconfigureElementsKind() argument 154 new_elements_kind_ = elements_kind; in ReconfigureElementsKind() 242 ElementsKind from_kind = root_map_->elements_kind(); in FindRootMap()
|
/external/v8/src/compiler/ |
D | access-info.cc | 29 ElementsKind const elements_kind = map->elements_kind(); in CanInlineElementAccess() local 30 if (IsFastElementsKind(elements_kind)) return true; in CanInlineElementAccess() 31 if (IsFixedTypedArrayElementsKind(elements_kind) && in CanInlineElementAccess() 32 elements_kind != BIGUINT64_ELEMENTS && in CanInlineElementAccess() 33 elements_kind != BIGINT64_ELEMENTS) { in CanInlineElementAccess() 71 ElementsKind elements_kind) in ElementAccessInfo() argument 72 : elements_kind_(elements_kind), receiver_maps_(receiver_maps) {} in ElementAccessInfo() 257 ElementsKind const elements_kind = map->elements_kind(); in ComputeElementAccessInfo() local 258 *access_info = ElementAccessInfo(MapHandles{map}, elements_kind); in ComputeElementAccessInfo() 283 IsFastElementsKind(map->elements_kind()) && in ComputeElementAccessInfos() [all …]
|
D | js-create-lowering.cc | 489 GetHoleyElementsKind(initial_map.elements_kind()))); in ReduceNewArray() 501 graph()->NewNode(IsDoubleElementsKind(initial_map.elements_kind()) in ReduceNewArray() 513 a.Store(AccessBuilder::ForJSArrayLength(initial_map.elements_kind()), length); in ReduceNewArray() 536 ElementsKind elements_kind = initial_map.elements_kind(); in ReduceNewArray() local 538 elements_kind = GetHoleyElementsKind(elements_kind); in ReduceNewArray() 540 initial_map, initial_map.AsElementsKind(elements_kind)); in ReduceNewArray() 542 DCHECK(IsFastElementsKind(elements_kind)); in ReduceNewArray() 550 AllocateElements(effect, control, elements_kind, capacity, pretenure); in ReduceNewArray() 560 a.Store(AccessBuilder::ForJSArrayLength(elements_kind), length); in ReduceNewArray() 580 ElementsKind elements_kind = initial_map.elements_kind(); in ReduceNewArray() local [all …]
|
D | js-create-lowering.h | 96 ElementsKind elements_kind, int capacity, in NON_EXPORTED_BASE() 99 ElementsKind elements_kind, Node* capacity_and_length); in NON_EXPORTED_BASE() 101 ElementsKind elements_kind, in NON_EXPORTED_BASE()
|
D | js-native-context-specialization.cc | 1226 if (IsHoleyOrDictionaryElementsKind(receiver_map->elements_kind()) || in ReduceElementAccess() 1236 if (!IsFastElementsKind(map->elements_kind())) return NoChange(); in ReduceElementAccess() 1265 IsSimpleMapChangeTransition(transition_source->elements_kind(), in ReduceElementAccess() 1266 transition_target->elements_kind()) in ReduceElementAccess() 1316 transition_source->elements_kind(), in ReduceElementAccess() 1317 transition_target->elements_kind()) in ReduceElementAccess() 2228 ElementsKind elements_kind = access_info.elements_kind(); in BuildElementAccess() local 2231 if (IsFixedTypedArrayElementsKind(elements_kind)) { in BuildElementAccess() 2330 GetArrayTypeFromElementsKind(elements_kind); in BuildElementAccess() 2436 IsSmiOrObjectElementsKind(elements_kind) && in BuildElementAccess() [all …]
|
D | js-call-reducer.cc | 980 IsFastElementsKind(receiver_map->elements_kind()) && in CanInlineArrayIteratingBuiltin() 1033 ElementsKind kind = receiver_maps[0]->elements_kind(); in ReduceArrayForEach() 1038 ElementsKind next_kind = receiver_map->elements_kind(); in ReduceArrayForEach() 1221 ElementsKind kind = receiver_maps[0]->elements_kind(); in ReduceArrayReduce() 1225 if (!UnionElementsKindUptoSize(&kind, receiver_map->elements_kind())) in ReduceArrayReduce() 1501 const ElementsKind kind = receiver_maps[0]->elements_kind(); in ReduceArrayMap() 1508 if (receiver_map->elements_kind() != kind) return NoChange(); in ReduceArrayMap() 1713 const ElementsKind kind = receiver_maps[0]->elements_kind(); in ReduceArrayFilter() 1723 if (receiver_map->elements_kind() != kind) return NoChange(); in ReduceArrayFilter() 1993 const ElementsKind kind = receiver_maps[0]->elements_kind(); in ReduceArrayFind() [all …]
|
D | access-info.h | 44 ElementsKind elements_kind); 46 ElementsKind elements_kind() const { return elements_kind_; } in elements_kind() function
|
/external/v8/src/builtins/ |
D | typed-array.tq | 289 let elements_kind: ElementsKind = array.elements_kind; 291 if (IsElementsKindGreaterThan(elements_kind, UINT32_ELEMENTS)) { 292 if (elements_kind == INT32_ELEMENTS) { 295 } else if (elements_kind == FLOAT32_ELEMENTS) { 298 } else if (elements_kind == FLOAT64_ELEMENTS) { 301 } else if (elements_kind == UINT8_CLAMPED_ELEMENTS) { 304 } else if (elements_kind == BIGUINT64_ELEMENTS) { 307 } else if (elements_kind == BIGINT64_ELEMENTS) { 314 if (elements_kind == UINT8_ELEMENTS) { 317 } else if (elements_kind == INT8_ELEMENTS) { [all …]
|
D | builtins-data-view-gen.h | 44 int32_t DataViewElementSize(ElementsKind elements_kind) { in DataViewElementSize() argument 45 return ElementsKindToByteSize(elements_kind); in DataViewElementSize()
|
D | builtins-typed-array-gen.cc | 35 TNode<Int32T> elements_kind = LoadMapElementsKind(array_map); in LoadMapForType() local 38 elements_kind, in LoadMapForType() 837 TNode<Word32T> elements_kind) { in GetTypedArrayElementSize() argument 841 elements_kind, in GetTypedArrayElementSize() 852 TNode<Word32T> elements_kind = LoadElementsKind(exemplar); in GetDefaultConstructor() local 855 elements_kind, in GetDefaultConstructor() 1137 TNode<Word32T> elements_kind, const TypedArraySwitchCase& case_function) { in DispatchTypedArrayByElementsKind() argument 1157 Switch(elements_kind, &if_unknown_type, elements_kinds, elements_kind_labels, in DispatchTypedArrayByElementsKind() 1478 Node* elements_kind = in TF_BUILTIN() local 1481 Switch(elements_kind, &return_undefined, elements_kinds, elements_kind_labels, in TF_BUILTIN() [all …]
|
D | builtins-typed-array-gen.h | 71 TNode<IntPtrT> GetTypedArrayElementSize(TNode<Word32T> elements_kind); 132 TNode<Word32T> elements_kind, const TypedArraySwitchCase& case_function);
|
D | builtins-array-gen.cc | 858 TNode<Int32T> elements_kind = LoadMapElementsKind(original_map); in GenerateArraySpeciesCreate() local 859 GotoIfNot(IsFastElementsKind(elements_kind), &runtime); in GenerateArraySpeciesCreate() 862 LoadJSArrayElementsMap(elements_kind, native_context); in GenerateArraySpeciesCreate() 909 const ElementsKind elements_kind = in GenerateArraySpeciesCreate() local 913 LoadJSArrayElementsMap(elements_kind, native_context); in GenerateArraySpeciesCreate() 985 TNode<Int32T> elements_kind = LoadElementsKind(array_receiver); in TF_BUILTIN() local 986 GotoIf(Int32LessThanOrEqual(elements_kind, in TF_BUILTIN() 1193 Node* elements_kind = LoadMapElementsKind(map); in HandleFastSlice() local 1194 GotoIfNot(IsFastElementsKind(elements_kind), &try_simple_slice); in HandleFastSlice() 1562 TNode<Int32T> elements_kind = LoadElementsKind(array_receiver); in TF_BUILTIN() local [all …]
|
/external/v8/src/objects/ |
D | map-inl.h | 426 void Map::set_elements_kind(ElementsKind elements_kind) { in set_elements_kind() argument 427 CHECK_LT(static_cast<int>(elements_kind), kElementsKindCount); in set_elements_kind() 428 set_bit_field2(Map::ElementsKindBits::update(bit_field2(), elements_kind)); in set_elements_kind() 431 ElementsKind Map::elements_kind() const { in elements_kind() function 436 return IsSmiElementsKind(elements_kind()); in has_fast_smi_elements() 440 return IsObjectElementsKind(elements_kind()); in has_fast_object_elements() 444 return IsSmiOrObjectElementsKind(elements_kind()); in has_fast_smi_or_object_elements() 448 return IsDoubleElementsKind(elements_kind()); in has_fast_double_elements() 452 return IsFastElementsKind(elements_kind()); in has_fast_elements() 456 return IsSloppyArgumentsElementsKind(elements_kind()); in has_sloppy_arguments_elements() [all …]
|
D | literal-objects-inl.h | 54 ElementsKind ArrayBoilerplateDescription::elements_kind() const { in elements_kind() function
|
/external/v8/src/ic/ |
D | keyed-store-generic.cc | 90 Node* elements, Node* elements_kind, 161 Node* elements_kind = LoadMapElementsKind(prototype_map); in BranchIfPrototypesHaveNonFastElements() local 162 GotoIf(IsFastElementsKind(elements_kind), &loop_body); in BranchIfPrototypesHaveNonFastElements() 163 GotoIf(Word32Equal(elements_kind, Int32Constant(NO_ELEMENTS)), &loop_body); in BranchIfPrototypesHaveNonFastElements() 275 Node* receiver, Node* receiver_map, Node* elements, Node* elements_kind, in StoreElementWithCapacity() argument 326 TryChangeToHoleyMapMulti(receiver, receiver_map, elements_kind, context, in StoreElementWithCapacity() 341 GotoIf(Int32LessThanOrEqual(elements_kind, in StoreElementWithCapacity() 345 TryChangeToHoleyMap(receiver, receiver_map, elements_kind, context, in StoreElementWithCapacity() 435 TryChangeToHoleyMap(receiver, receiver_map, elements_kind, context, in StoreElementWithCapacity() 477 Node* elements_kind = LoadMapElementsKind(receiver_map); in EmitGenericElementStore() local [all …]
|
D | handler-configuration.cc | 186 ElementsKind elements_kind = receiver_map->elements_kind(); in StoreElementTransition() local 188 isolate, elements_kind, transition->elements_kind(), in StoreElementTransition()
|
D | ic.cc | 264 return IsMoreGeneralElementsKindTransition(old_map->elements_kind(), in ShouldRecomputeHandler() 265 receiver_map()->elements_kind()); in ShouldRecomputeHandler() 625 ElementsKind target_elements_kind = target_map->elements_kind(); in IsTransitionOfMonomorphicTarget() 627 source_map->elements_kind(), target_elements_kind); in IsTransitionOfMonomorphicTarget() 1030 target_receiver_maps.at(0)->elements_kind(), in UpdateLoadElement() 1093 ElementsKind elements_kind = receiver_map->elements_kind(); in LoadElementHandler() local 1094 if (IsSloppyArgumentsElementsKind(elements_kind)) { in LoadElementHandler() 1099 if (elements_kind == DICTIONARY_ELEMENTS) { in LoadElementHandler() 1101 return LoadHandler::LoadElement(isolate(), elements_kind, false, in LoadElementHandler() 1104 DCHECK(IsFastElementsKind(elements_kind) || in LoadElementHandler() [all …]
|
D | handler-configuration-inl.h | 91 ElementsKind elements_kind, in LoadElement() argument 98 ElementsKindBits::encode(elements_kind) | in LoadElement()
|
/external/v8/src/heap/ |
D | factory.h | 203 ElementsKind elements_kind, Handle<FixedArrayBase> constant_values); 478 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, 483 ElementsKind elements_kind, int inobject_properties); 599 ElementsKind elements_kind, int length, int capacity, 604 int capacity, ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, 607 elements_kind = GetHoleyElementsKind(elements_kind); 609 return NewJSArray(elements_kind, 0, capacity, 615 ElementsKind elements_kind, int length, 620 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, 646 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind, [all …]
|
D | factory.cc | 243 ElementsKind elements_kind, Handle<FixedArrayBase> constant_values) { in NewArrayBoilerplateDescription() argument 247 result->set_elements_kind(elements_kind); in NewArrayBoilerplateDescription() 1812 ElementsKind elements_kind, in NewMap() argument 1817 IsDictionaryElementsKind(elements_kind) || in NewMap() 1818 IsTerminalElementsKind(elements_kind)); in NewMap() 1823 elements_kind, inobject_properties), in NewMap() 1828 ElementsKind elements_kind, in InitializeMap() argument 1863 map->set_elements_kind(elements_kind); in InitializeMap() 2353 ElementsKind elements_kind; in NewFunction() local 2356 elements_kind = PACKED_SMI_ELEMENTS; in NewFunction() [all …]
|
D | factory-inl.h | 156 ElementsKind elements_kind, in NewJSArrayWithElements() argument 158 return NewJSArrayWithElements(elements, elements_kind, elements->length(), in NewJSArrayWithElements()
|
/external/v8/src/runtime/ |
D | runtime-object.cc | 114 ElementsKind elements_kind = js_object->GetElementsKind(); in KeyedGetObjectProperty() local 115 if (IsDoubleElementsKind(elements_kind)) { in KeyedGetObjectProperty() 117 elements_kind = IsHoleyElementsKind(elements_kind) ? HOLEY_ELEMENTS in KeyedGetObjectProperty() 119 JSObject::TransitionElementsKind(js_object, elements_kind); in KeyedGetObjectProperty() 122 DCHECK(IsSmiOrObjectElementsKind(elements_kind) || in KeyedGetObjectProperty() 123 !IsFastElementsKind(elements_kind)); in KeyedGetObjectProperty() 904 IsFastPackedElementsKind(obj->map()->elements_kind())); in RUNTIME_FUNCTION()
|