Home
last modified time | relevance | path

Searched refs:elements_kind (Results 1 - 25 of 67) sorted by relevance

123

/third_party/node/deps/v8/src/objects/
H A Delements-kind.cc15 int ElementsKindToShiftSize(ElementsKind elements_kind) { in ElementsKindToShiftSize() argument
16 switch (elements_kind) { in ElementsKindToShiftSize()
68 int ElementsKindToByteSize(ElementsKind elements_kind) { in ElementsKindToByteSize() argument
69 return 1 << ElementsKindToShiftSize(elements_kind); in ElementsKindToByteSize()
72 int GetDefaultHeaderSizeForElementsKind(ElementsKind elements_kind) { in GetDefaultHeaderSizeForElementsKind() argument
75 if (IsTypedArrayElementsKind(elements_kind)) { in GetDefaultHeaderSizeForElementsKind()
155 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind) { in GetSequenceIndexFromFastElementsKind() argument
157 if (kFastElementsKindSequence[i] == elements_kind) { in GetSequenceIndexFromFastElementsKind()
169 static inline bool IsFastTransitionTarget(ElementsKind elements_kind) { in IsFastTransitionTarget() argument
170 return IsFastElementsKind(elements_kind) || in IsFastTransitionTarget()
[all...]
H A Dmap-inl.h173 return Normalize(isolate, fast_map, fast_map->elements_kind(), mode, reason); in Normalize()
178 return EquivalentToForNormalization(other, elements_kind(), mode); in EquivalentToForNormalization()
551 void Map::set_elements_kind(ElementsKind elements_kind) { in set_elements_kind() argument
552 CHECK_LT(static_cast<int>(elements_kind), kElementsKindCount); in set_elements_kind()
554 Map::Bits2::ElementsKindBits::update(bit_field2(), elements_kind)); in set_elements_kind()
557 ElementsKind Map::elements_kind() const { in elements_kind() function in v8::internal::Map
562 return IsSmiElementsKind(elements_kind()); in has_fast_smi_elements()
566 return IsObjectElementsKind(elements_kind()); in has_fast_object_elements()
570 return IsSmiOrObjectElementsKind(elements_kind()); in has_fast_smi_or_object_elements()
574 return IsDoubleElementsKind(elements_kind()); in has_fast_double_elements()
[all...]
H A Dmap.cc884 ElementsKind elements_kind) { in HasElementsKind()
886 if (!current.is_null() && current->elements_kind() == elements_kind) in HasElementsKind()
899 ElementsKind kind = elements_kind(); in FindElementsKindTransitionedMap()
917 if (!HasElementsKind(candidates, root_map.elements_kind())) continue; in FindElementsKindTransitionedMap()
924 IsFastPackedElementsKind(current.elements_kind()); in FindElementsKindTransitionedMap()
944 ElementsKind kind = map.elements_kind(); in FindClosestElementsTransition()
948 kind = next_map.elements_kind(); in FindClosestElementsTransition()
952 DCHECK_EQ(to_kind, current_map.elements_kind()); in FindClosestElementsTransition()
959 if (to_map.elements_kind() in LookupElementsTransitionMap()
883 HasElementsKind(MapHandles const& maps, ElementsKind elements_kind) HasElementsKind() argument
1123 ElementsKind elements_kind = current.GetElementsKind(isolate); MayHaveReadOnlyElementsInPrototypeChain() local
2159 EquivalentToForNormalization(const Map other, ElementsKind elements_kind, PropertyNormalizationMode mode) const EquivalentToForNormalization() argument
2323 Get(Handle<Map> fast_map, ElementsKind elements_kind, PropertyNormalizationMode mode) Get() argument
[all...]
H A Dmap-updater.cc97 new_elements_kind_(old_map_->elements_kind()), in MapUpdater()
234 Handle<Map> MapUpdater::ReconfigureElementsKind(ElementsKind elements_kind) { in ReconfigureElementsKind() argument
240 new_elements_kind_ = elements_kind; in ReconfigureElementsKind()
352 if (constructor.initial_map().elements_kind() != old_map.elements_kind()) { in TryUpdateNoLock()
359 ElementsKind from_kind = root_map.elements_kind(); in TryUpdateNoLock()
360 ElementsKind to_kind = old_map.elements_kind(); in TryUpdateNoLock()
376 to_kind = info.integrity_level_source_map.elements_kind(); in TryUpdateNoLock()
397 DCHECK_EQ(old_map.elements_kind(), result.elements_kind()); in TryUpdateNoLock()
[all...]
H A Delements-kind.h168 V8_EXPORT_PRIVATE int ElementsKindToShiftSize(ElementsKind elements_kind);
169 V8_EXPORT_PRIVATE int ElementsKindToByteSize(ElementsKind elements_kind);
170 int GetDefaultHeaderSizeForElementsKind(ElementsKind elements_kind);
176 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind);
178 ElementsKind GetNextTransitionElementsKind(ElementsKind elements_kind);
H A Delements.h29 static ElementsAccessor* ForKind(ElementsKind elements_kind) { in ForKind() argument
30 DCHECK_LT(static_cast<int>(elements_kind), kElementsKindCount); in ForKind()
31 return elements_accessors_[elements_kind]; in ForKind()
H A Dlookup.cc1435 Isolate* isolate, FixedArray array_elements, ElementsKind elements_kind, in TryGetOwnCowElement()
1440 DCHECK(IsFastElementsKind(elements_kind) && in TryGetOwnCowElement()
1441 IsSmiOrObjectElementsKind(elements_kind)); in TryGetOwnCowElement()
1442 USE(elements_kind); in TryGetOwnCowElement()
1481 JSObject holder, FixedArrayBase elements, ElementsKind elements_kind, in TryGetOwnConstantElement()
1502 if (IsFrozenElementsKind(elements_kind)) { in TryGetOwnConstantElement()
1509 if (IsHoleyElementsKindForRead(elements_kind) && in TryGetOwnConstantElement()
1515 } else if (IsDictionaryElementsKind(elements_kind)) { in TryGetOwnConstantElement()
1523 } else if (IsStringWrapperElementsKind(elements_kind)) { in TryGetOwnConstantElement()
1533 DCHECK(!IsFrozenElementsKind(elements_kind)); in TryGetOwnConstantElement()
1434 TryGetOwnCowElement( Isolate* isolate, FixedArray array_elements, ElementsKind elements_kind, int array_length, size_t index) TryGetOwnCowElement() argument
1479 TryGetOwnConstantElement( Object* result_out, Isolate* isolate, LocalIsolate* local_isolate, JSObject holder, FixedArrayBase elements, ElementsKind elements_kind, size_t index) TryGetOwnConstantElement() argument
[all...]
H A Dmap.h163 // | | - elements_kind (bits 2..7) |
409 DECL_PRIMITIVE_ACCESSORS(elements_kind, ElementsKind)
775 // elements_kind that's found in |candidates|, or |nullptr| if no match is
824 // up to the given |elements_kind|.
828 bool EquivalentToForNormalization(const Map other, ElementsKind elements_kind,
876 // Returns the map that this (root) map transitions to if its elements_kind
877 // is changed to |elements_kind|, or |nullptr| if no such map is cached yet.
878 Map LookupElementsTransitionMap(Isolate* isolate, ElementsKind elements_kind,
960 ElementsKind elements_kind,
H A Djs-function.cc1058 int TypedArrayElementsKindToConstructorIndex(ElementsKind elements_kind) { in TypedArrayElementsKindToConstructorIndex() argument
1059 return Context::FIRST_FIXED_TYPED_ARRAY_FUN_INDEX + elements_kind - in TypedArrayElementsKindToConstructorIndex()
1063 int TypedArrayElementsKindToRabGsabCtorIndex(ElementsKind elements_kind) { in TypedArrayElementsKindToRabGsabCtorIndex() argument
1064 return Context::FIRST_RAB_GSAB_TYPED_ARRAY_MAP_INDEX + elements_kind - in TypedArrayElementsKindToRabGsabCtorIndex()
1079 TypedArrayElementsKindToConstructorIndex(map->elements_kind()); in GetDerivedRabGsabMap()
1082 TypedArrayElementsKindToRabGsabCtorIndex(map->elements_kind()); in GetDerivedRabGsabMap()
1092 GetCorrespondingRabGsabElementsKind(map->elements_kind())); in GetDerivedRabGsabMap()
/third_party/node/deps/v8/src/builtins/
H A Dbuiltins-typed-array-gen.cc207 TNode<Int32T> elements_kind) { in GetTypedArrayElementSize()
211 elements_kind, in GetTypedArrayElementSize()
227 TNode<Int32T> elements_kind = LoadMapElementsKind(map); in GetTypedArrayElementsInfo() local
233 elements_kind, in GetTypedArrayElementsInfo()
240 elements_kind}; in GetTypedArrayElementsInfo()
246 TNode<Int32T> elements_kind = LoadElementsKind(exemplar); in GetDefaultConstructor() local
249 elements_kind, in GetDefaultConstructor()
383 TNode<Word32T> elements_kind, const TypedArraySwitchCase& case_function) { in DispatchTypedArrayByElementsKind()
404 Switch(elements_kind, &if_unknown_type, elements_kinds, elements_kind_labels, in DispatchTypedArrayByElementsKind()
466 TNode<UintPtrT> index, TNode<Numeric> value, ElementsKind elements_kind) { in StoreJSTypedArrayElementFromNumeric()
206 GetTypedArrayElementSize( TNode<Int32T> elements_kind) GetTypedArrayElementSize() argument
382 DispatchTypedArrayByElementsKind( TNode<Word32T> elements_kind, const TypedArraySwitchCase& case_function) DispatchTypedArrayByElementsKind() argument
464 StoreJSTypedArrayElementFromNumeric( TNode<Context> context, TNode<JSTypedArray> typed_array, TNode<UintPtrT> index, TNode<Numeric> value, ElementsKind elements_kind) StoreJSTypedArrayElementFromNumeric() argument
500 StoreJSTypedArrayElementFromPreparedValue( TNode<Context> context, TNode<JSTypedArray> typed_array, TNode<UintPtrT> index, TNode<TValue> prepared_value, ElementsKind elements_kind, Label* if_detached) StoreJSTypedArrayElementFromPreparedValue() argument
519 StoreJSTypedArrayElementFromTagged( TNode<Context> context, TNode<JSTypedArray> typed_array, TNode<UintPtrT> index, TNode<Object> value, ElementsKind elements_kind, Label* if_detached) StoreJSTypedArrayElementFromTagged() argument
601 TNode<Int32T> elements_kind = TF_BUILTIN() local
[all...]
H A Dbuiltins-sharedarraybuffer-gen.cc82 TNode<Int32T> elements_kind = LoadMapElementsKind(map); in ValidateIntegerTypedArray()
83 GotoIf(Int32LessThan(elements_kind, Int32Constant(FLOAT32_ELEMENTS)), in ValidateIntegerTypedArray()
87 Branch(Int32GreaterThan(elements_kind, Int32Constant(UINT8_CLAMPED_ELEMENTS)), in ValidateIntegerTypedArray()
97 *out_elements_kind = elements_kind; in ValidateIntegerTypedArray()
181 TNode<Int32T> elements_kind;
185 &elements_kind, &backing_store, &detached);
209 Switch(elements_kind, &other, case_values, case_labels,
284 TNode<Int32T> elements_kind;
288 &elements_kind, &backing_store, &detached);
302 GotoIf(Int32GreaterThan(elements_kind, Int32Constan
[all...]
H A Dbuiltins-typed-array-gen.h40 TNode<IntPtrT> GetTypedArrayElementSize(TNode<Int32T> elements_kind);
89 TNode<Word32T> elements_kind, const TypedArraySwitchCase& case_function);
101 ElementsKind elements_kind);
106 ElementsKind elements_kind,
112 ElementsKind elements_kind, Label* if_detached);
H A Dbuiltins-data-view-gen.h36 int32_t DataViewElementSize(ElementsKind elements_kind) { in DataViewElementSize() argument
37 return ElementsKindToByteSize(elements_kind); in DataViewElementSize()
H A Dbuiltins-array-gen.cc172 TNode<Int32T> elements_kind = LoadMapElementsKind(typed_array_map); in GenerateIteratingTypedArrayBuiltinBody() local
173 Switch(elements_kind, &unexpected_instance_type, elements_kinds.data(), in GenerateIteratingTypedArrayBuiltinBody()
297 TNode<Int32T> elements_kind = LoadElementsKind(array_receiver); in TF_BUILTIN() local
298 GotoIf(Int32LessThanOrEqual(elements_kind, in TF_BUILTIN()
389 TNode<Int32T> elements_kind = LoadElementsKind(array_receiver); in TF_BUILTIN() local
390 GotoIf(Word32Equal(elements_kind, Int32Constant(DICTIONARY_ELEMENTS)), in TF_BUILTIN()
433 TNode<Int32T> elements_kind = LoadElementsKind(array_receiver); in TF_BUILTIN() local
434 GotoIf(Word32Equal(elements_kind, Int32Constant(DICTIONARY_ELEMENTS)), in TF_BUILTIN()
686 TNode<Int32T> elements_kind = LoadElementsKind(array); in Generate() local
692 GotoIf(IsElementsKindLessThanOrEqual(elements_kind, HOLEY_ELEMENT in Generate()
1259 TNode<Int32T> elements_kind = LoadMapElementsKind(array_map); TF_BUILTIN() local
1360 TNode<Int32T> elements_kind = LoadMapElementsKind(array_map); TF_BUILTIN() local
1700 TNode<Int32T> elements_kind = LoadElementsKind(*allocation_site); CreateArrayDispatchNoArgument() local
1854 GenerateConstructor( TNode<Context> context, TNode<HeapObject> array_function, TNode<Map> array_map, TNode<Object> array_size, TNode<HeapObject> allocation_site, ElementsKind elements_kind, AllocationSiteMode mode) GenerateConstructor() argument
[all...]
H A Dbuiltins-handler-gen.cc30 void DispatchByElementsKind(TNode<Int32T> elements_kind,
231 TNode<Int32T> elements_kind, const ElementsKindSwitchCase& case_function, in DispatchByElementsKind()
254 Switch(elements_kind, &if_unknown_type, elements_kinds, elements_kind_labels, in DispatchByElementsKind()
303 // TODO(v8:8481): Pass elements_kind in feedback vector slots. in Generate_StoreFastElementIC()
306 [=, &miss, &maybe_converted_value](ElementsKind elements_kind) { in Generate_StoreFastElementIC()
307 EmitElementStore(receiver, key, value, elements_kind, store_mode, &miss, in Generate_StoreFastElementIC()
230 DispatchByElementsKind( TNode<Int32T> elements_kind, const ElementsKindSwitchCase& case_function, bool handle_typed_elements_kind) DispatchByElementsKind() argument
/third_party/node/deps/v8/src/compiler/
H A Djs-create-lowering.h73 Node* node, Node* length, MapRef initial_map, ElementsKind elements_kind,
78 ElementsKind elements_kind, AllocationType allocation,
82 ElementsKind elements_kind, AllocationType allocation,
110 ElementsKind elements_kind, int capacity,
113 ElementsKind elements_kind, Node* capacity_and_length);
115 ElementsKind elements_kind,
H A Djs-create-lowering.cc462 Node* node, Node* length, MapRef initial_map, ElementsKind elements_kind, in ReduceNewArray()
472 initial_map.AsElementsKind(GetHoleyElementsKind(elements_kind)); in ReduceNewArray()
492 graph()->NewNode(IsDoubleElementsKind(initial_map.elements_kind()) in ReduceNewArray()
504 a.Store(AccessBuilder::ForJSArrayLength(initial_map.elements_kind()), length); in ReduceNewArray()
519 ElementsKind elements_kind, AllocationType allocation, in ReduceNewArray()
529 elements_kind = GetHoleyElementsKind(elements_kind); in ReduceNewArray()
533 initial_map.AsElementsKind(elements_kind); in ReduceNewArray()
537 DCHECK(IsFastElementsKind(elements_kind)); in ReduceNewArray()
545 AllocateElements(effect, control, elements_kind, capacit in ReduceNewArray()
461 ReduceNewArray( Node* node, Node* length, MapRef initial_map, ElementsKind elements_kind, AllocationType allocation, const SlackTrackingPrediction& slack_tracking_prediction) ReduceNewArray() argument
517 ReduceNewArray( Node* node, Node* length, int capacity, MapRef initial_map, ElementsKind elements_kind, AllocationType allocation, const SlackTrackingPrediction& slack_tracking_prediction) ReduceNewArray() argument
566 ReduceNewArray( Node* node, std::vector<Node*> values, MapRef initial_map, ElementsKind elements_kind, AllocationType allocation, const SlackTrackingPrediction& slack_tracking_prediction) ReduceNewArray() argument
650 ElementsKind elements_kind = initial_map->elements_kind(); ReduceJSCreateArray() local
1616 AllocateElements(Node* effect, Node* control, ElementsKind elements_kind, int capacity, AllocationType allocation) AllocateElements() argument
1641 AllocateElements(Node* effect, Node* control, ElementsKind elements_kind, std::vector<Node*> const& values, AllocationType allocation) AllocateElements() argument
[all...]
H A Daccess-info.cc89 ZoneVector<MapRef>&& lookup_start_object_maps, ElementsKind elements_kind, in ElementAccessInfo()
91 : elements_kind_(elements_kind), in ElementAccessInfo()
371 return ElementAccessInfo({{map}, zone()}, map.elements_kind(), zone()); in ComputeElementAccessInfo()
1022 ElementsKind elements_kind = first_map_ref->elements_kind(); in ConsolidateElementLoad() local
1033 if (!GeneralizeElementsKind(elements_kind, map->elements_kind()) in ConsolidateElementLoad()
1034 .To(&elements_kind)) { in ConsolidateElementLoad()
1041 return ElementAccessInfo(std::move(maps), elements_kind, zone()); in ConsolidateElementLoad()
1068 if (IsDoubleElementsKind(map.elements_kind())) { in LookupSpecialFieldAccessor()
88 ElementAccessInfo( ZoneVector<MapRef>&& lookup_start_object_maps, ElementsKind elements_kind, Zone* zone) ElementAccessInfo() argument
[all...]
H A Djs-native-context-specialization.cc1689 if ((IsHoleyOrDictionaryElementsKind(receiver_map.elements_kind()) || in ReduceElementAccess()
1711 if (IsFastElementsKind(access_info.elements_kind())) { in ReduceElementAccess()
1729 IsSimpleMapChangeTransition(transition_source.elements_kind(), in ReduceElementAccess()
1730 transition_target.elements_kind()) in ReduceElementAccess()
1781 IsSimpleMapChangeTransition(transition_source.elements_kind(), in ReduceElementAccess()
1782 transition_target.elements_kind()) in ReduceElementAccess()
2647 ElementsKind elements_kind = access_info.elements_kind(); in BuildElementAccess() local
2651 if (IsTypedArrayElementsKind(elements_kind)) { in BuildElementAccess()
2757 GetArrayTypeFromElementsKind(elements_kind); in BuildElementAccess()
[all...]
H A Dheap-refs.cc800 IsFastElementsKind(map->elements_kind()) && in SupportsFastArrayIteration()
1062 ElementsKind kind = elements_kind(); in CanInlineElementAccess()
1072 const ElementsKind current_kind = elements_kind(); in AsElementsKind()
1103 !IsFastElementsKind(prototype_map.elements_kind())) { in HasOnlyStablePrototypesWithFastElements()
1460 HEAP_ACCESSOR_B(Map, bit_field2, elements_kind, Map::Bits2::ElementsKindBits)
1804 *elements_ref.object(), map().elements_kind(), index); in GetOwnConstantElement()
1816 FixedArrayBase elements, ElementsKind elements_kind, uint32_t index) const { in GetOwnConstantElementFromHeap()
1844 elements, elements_kind, index); in GetOwnConstantElementFromHeap()
1904 ElementsKind elements_kind = map().elements_kind(); in GetOwnCowElement() local
1815 GetOwnConstantElementFromHeap( FixedArrayBase elements, ElementsKind elements_kind, uint32_t index) const GetOwnConstantElementFromHeap() argument
[all...]
H A Djs-call-reducer.cc2072 ElementsKind elements_kind,
2075 switch (elements_kind) {
2086 DCHECK_EQ(HOLEY_DOUBLE_ELEMENTS, elements_kind);
2092 switch (elements_kind) {
2103 DCHECK_EQ(HOLEY_DOUBLE_ELEMENTS, elements_kind);
3285 *kind_return = receiver_maps[0].elements_kind();
3288 !UnionElementsKindUptoSize(kind_return, map.elements_kind())) {
3304 if (map.elements_kind() == HOLEY_DOUBLE_ELEMENTS && !builtin_is_push) {
3307 ElementsKind current_kind = map.elements_kind();
3361 ElementsKind elements_kind() cons
[all...]
/third_party/node/deps/v8/src/ic/
H A Dkeyed-store-generic.cc127 TNode<Word32T> elements_kind,
255 TNode<Int32T> elements_kind = LoadMapElementsKind(prototype_map); in BranchIfPrototypesMayHaveReadOnlyElements() local
256 GotoIf(IsFastOrNonExtensibleOrSealedElementsKind(elements_kind), in BranchIfPrototypesMayHaveReadOnlyElements()
258 GotoIf(Word32Equal(elements_kind, Int32Constant(NO_ELEMENTS)), &loop_body); in BranchIfPrototypesMayHaveReadOnlyElements()
374 TNode<FixedArrayBase> elements, TNode<Word32T> elements_kind, in StoreElementWithCapacity()
418 // Check if the value we're storing matches the elements_kind. Smis in StoreElementWithCapacity()
425 TryChangeToHoleyMapMulti(receiver, receiver_map, elements_kind, context, in StoreElementWithCapacity()
440 GotoIf(Int32LessThanOrEqual(elements_kind, in StoreElementWithCapacity()
444 TryChangeToHoleyMap(receiver, receiver_map, elements_kind, context, in StoreElementWithCapacity()
533 TryChangeToHoleyMap(receiver, receiver_map, elements_kind, contex in StoreElementWithCapacity()
372 StoreElementWithCapacity( TNode<JSObject> receiver, TNode<Map> receiver_map, TNode<FixedArrayBase> elements, TNode<Word32T> elements_kind, TNode<IntPtrT> index, TNode<Object> value, TNode<Context> context, Label* slow, UpdateLength update_length) StoreElementWithCapacity() argument
575 TNode<Int32T> elements_kind = LoadMapElementsKind(receiver_map); EmitGenericElementStore() local
[all...]
H A Dic.cc263 old_map->elements_kind(), lookup_start_object_map()->elements_kind()); in ShouldRecomputeHandler()
753 ElementsKind target_elements_kind = target_map.elements_kind(); in IsTransitionOfMonomorphicTarget()
755 source_map.elements_kind(), target_elements_kind); in IsTransitionOfMonomorphicTarget()
1268 target_receiver_maps.at(0)->elements_kind(), in UpdateLoadElement()
1385 ElementsKind elements_kind = receiver_map->elements_kind(); in LoadElementHandler() local
1386 if (IsSloppyArgumentsElementsKind(elements_kind)) { in LoadElementHandler()
1393 if (elements_kind == DICTIONARY_ELEMENTS) { in LoadElementHandler()
1395 return LoadHandler::LoadElement(isolate(), elements_kind, fals in LoadElementHandler()
[all...]
/third_party/node/deps/v8/src/heap/
H A Dfactory-inl.h55 ElementsKind elements_kind, in NewJSArrayWithElements()
57 return NewJSArrayWithElements(elements, elements_kind, elements->length(), in NewJSArrayWithElements()
54 NewJSArrayWithElements(Handle<FixedArrayBase> elements, ElementsKind elements_kind, AllocationType allocation) NewJSArrayWithElements() argument
H A Dfactory.h444 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND,
451 ElementsKind elements_kind, int inobject_properties,
558 ElementsKind elements_kind, int length, int capacity,
563 int capacity, ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, in NewJSArray()
566 elements_kind = GetHoleyElementsKind(elements_kind); in NewJSArray()
568 return NewJSArray(elements_kind, 0, capacity, in NewJSArray()
574 Handle<FixedArrayBase> elements, ElementsKind elements_kind, int length,
579 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND,
1097 Handle<FixedArrayBase> elements, ElementsKind elements_kind, in
[all...]

Completed in 43 milliseconds

123