Home
last modified time | relevance | path

Searched refs:ElementsKind (Results 1 – 25 of 86) sorted by relevance

1234

/external/v8/src/
Delements-kind.h28 enum ElementsKind { enum
82 int ElementsKindToShiftSize(ElementsKind elements_kind);
83 int ElementsKindToByteSize(ElementsKind elements_kind);
84 int GetDefaultHeaderSizeForElementsKind(ElementsKind elements_kind);
85 const char* ElementsKindToString(ElementsKind kind);
87 inline ElementsKind GetInitialFastElementsKind() { return PACKED_SMI_ELEMENTS; } in GetInitialFastElementsKind()
89 ElementsKind GetFastElementsKindFromSequenceIndex(int sequence_number);
90 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind);
92 ElementsKind GetNextTransitionElementsKind(ElementsKind elements_kind);
94 inline bool IsDictionaryElementsKind(ElementsKind kind) { in IsDictionaryElementsKind()
[all …]
Delements-kind.cc16 int ElementsKindToShiftSize(ElementsKind elements_kind) { in ElementsKindToShiftSize()
51 int ElementsKindToByteSize(ElementsKind elements_kind) { in ElementsKindToByteSize()
55 int GetDefaultHeaderSizeForElementsKind(ElementsKind elements_kind) { in GetDefaultHeaderSizeForElementsKind()
66 const char* ElementsKindToString(ElementsKind kind) { in ElementsKindToString()
75 reinterpret_cast<ElementsKind**>(fast_elements_kind_sequence_ptr_arg); in Construct()
76 ElementsKind* fast_elements_kind_sequence = in Construct()
77 new ElementsKind[kFastElementsKindCount]; in Construct()
98 static base::LazyInstance<ElementsKind*,
103 ElementsKind GetFastElementsKindFromSequenceIndex(int sequence_number) { in GetFastElementsKindFromSequenceIndex()
110 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind) { in GetSequenceIndexFromFastElementsKind()
[all …]
Dcode-factory.h94 Isolate* isolate, ElementsKind kind,
97 Isolate* isolate, ElementsKind kind,
101 ElementsKind kind);
103 ElementsKind kind);
Dcode-stubs.h555 ElementsKind elements_kind, KeyedAccessStoreMode mode) in StoreFastElementStub()
566 ElementsKind elements_kind() const { in elements_kind()
576 : public BitField<ElementsKind, CommonStoreModeBits::kNext, 8> {};
609 ElementsTransitionAndStoreStub(Isolate* isolate, ElementsKind from_kind, in ElementsTransitionAndStoreStub()
610 ElementsKind to_kind, bool is_jsarray, in ElementsTransitionAndStoreStub()
618 ElementsKind from_kind() const { return FromBits::decode(minor_key_); } in from_kind()
619 ElementsKind to_kind() const { return ToBits::decode(minor_key_); } in to_kind()
627 : public BitField<ElementsKind, CommonStoreModeBits::kNext, 8> {};
628 class ToBits : public BitField<ElementsKind, 11, 8> {};
Dcode-stub-assembler.h1088 Node* data_pointer, Node* index_node, ElementsKind elements_kind,
1099 TNode<Object> index_node, TNode<Object> value, ElementsKind elements_kind,
1125 TNode<Map> LoadJSArrayElementsMap(ElementsKind kind,
1225 void TryStoreArrayElement(ElementsKind kind, ParameterMode mode,
1229 TNode<Smi> BuildAppendJSArray(ElementsKind kind, SloppyTNode<JSArray> array,
1233 void BuildAppendJSArray(ElementsKind kind, Node* array, Node* value,
1373 ElementsKind kind, Node* array_map, Node* length, Node* allocation_site,
1377 Node* AllocateJSArray(ElementsKind kind, Node* array_map, Node* capacity,
1381 Node* AllocateJSArray(ElementsKind kind, TNode<Map> array_map, in AllocateJSArray()
1387 Node* AllocateJSArray(ElementsKind kind, TNode<Map> array_map, in AllocateJSArray()
[all …]
Dmap-updater.h59 Handle<Map> ReconfigureElementsKind(ElementsKind elements_kind);
155 ElementsKind new_elements_kind_;
Delements.cc103 template<ElementsKind Kind> class ElementsKindTraits {
112 static constexpr ElementsKind Kind = KindParam; \
115 constexpr ElementsKind ElementsKindTraits<KindParam>::Kind;
125 WriteBarrierMode GetWriteBarrierMode(ElementsKind kind) { in GetWriteBarrierMode()
132 ElementsKind from_kind, uint32_t from_start, in CopyObjectToObjectElements()
133 FixedArrayBase* to_base, ElementsKind to_kind, in CopyObjectToObjectElements()
173 FixedArrayBase* to_base, ElementsKind to_kind, uint32_t to_start, in CopyDictionaryToObjectElements()
565 static ElementsKind kind() { return ElementsTraits::Kind; } in kind()
612 ElementsKind packed_kind = GetPackedElementsKind(kind()); in TryTransitionResultArrayToPacked()
769 ElementsKind kind = array->GetElementsKind(); in SetLengthImpl()
[all …]
Delements.h27 static ElementsAccessor* ForKind(ElementsKind elements_kind) { in ForKind()
174 ElementsKind source_kind,
218 ElementsKind source_kind,
Dcode-factory.cc337 Isolate* isolate, ElementsKind kind, in ArrayNoArgumentConstructor()
372 Isolate* isolate, ElementsKind kind, in ArraySingleArgumentConstructor()
408 ElementsKind kind) { in InternalArrayNoArgumentConstructor()
425 Isolate* isolate, ElementsKind kind) { in InternalArraySingleArgumentConstructor()
/external/v8/src/builtins/
Dbase.tq59 type ElementsKind generates 'TNode<Int32T>' constexpr 'ElementsKind';
71 const NO_ELEMENTS: constexpr ElementsKind generates 'NO_ELEMENTS';
73 const PACKED_SMI_ELEMENTS: constexpr ElementsKind generates
75 const HOLEY_SMI_ELEMENTS: constexpr ElementsKind generates 'HOLEY_SMI_ELEMENTS';
76 const PACKED_ELEMENTS: constexpr ElementsKind generates 'PACKED_ELEMENTS';
77 const HOLEY_ELEMENTS: constexpr ElementsKind generates 'HOLEY_ELEMENTS';
78 const PACKED_DOUBLE_ELEMENTS: constexpr ElementsKind generates
80 const HOLEY_DOUBLE_ELEMENTS: constexpr ElementsKind generates
82 const DICTIONARY_ELEMENTS: constexpr ElementsKind generates
85 const UINT8_ELEMENTS: constexpr ElementsKind generates 'UINT8_ELEMENTS';
[all …]
Dbuiltins-array-gen.h135 ElementsKind elements_kind, AllocationSiteMode mode);
136 void GenerateArrayNoArgumentConstructor(ElementsKind kind,
138 void GenerateArraySingleArgumentConstructor(ElementsKind kind,
145 void GenerateInternalArrayNoArgumentConstructor(ElementsKind kind);
146 void GenerateInternalArraySingleArgumentConstructor(ElementsKind kind);
149 static ElementsKind ElementsKindForInstanceType(InstanceType type);
156 void VisitAllFastElementsOneKind(ElementsKind kind,
189 ElementsKind source_elements_kind_ = ElementsKind::NO_ELEMENTS;
Dtyped-array.tq11 RawPtr, Smi, constexpr ElementsKind, constexpr ParameterMode): Object;
13 Context, FixedTypedArrayBase, Smi, Object, constexpr ElementsKind,
19 macro KindForArrayType<T : type>(): constexpr ElementsKind;
20 KindForArrayType<FixedUint8Array>(): constexpr ElementsKind {
23 KindForArrayType<FixedInt8Array>(): constexpr ElementsKind {
26 KindForArrayType<FixedUint16Array>(): constexpr ElementsKind {
29 KindForArrayType<FixedInt16Array>(): constexpr ElementsKind {
32 KindForArrayType<FixedUint32Array>(): constexpr ElementsKind {
35 KindForArrayType<FixedInt32Array>(): constexpr ElementsKind {
38 KindForArrayType<FixedFloat32Array>(): constexpr ElementsKind {
[all …]
/external/v8/src/ic/
Dkeyed-store-generic.cc86 Node* native_context, ElementsKind from_kind,
87 ElementsKind to_kind, Label* bailout);
98 Node* native_context, ElementsKind packed_kind,
99 ElementsKind holey_kind, Label* done,
103 ElementsKind packed_kind, Label* bailout);
106 ElementsKind packed_kind,
107 ElementsKind packed_kind_2, Label* bailout);
170 ElementsKind from_kind, ElementsKind to_kind, Label* bailout) { in TryRewriteElements()
172 ElementsKind holey_from_kind = GetHoleyElementsKind(from_kind); in TryRewriteElements()
173 ElementsKind holey_to_kind = GetHoleyElementsKind(to_kind); in TryRewriteElements()
[all …]
/external/v8/src/objects/
Dliteral-objects-inl.h54 ElementsKind ArrayBoilerplateDescription::elements_kind() const { in elements_kind()
55 return static_cast<ElementsKind>(flags()); in elements_kind()
58 void ArrayBoilerplateDescription::set_elements_kind(ElementsKind kind) { in set_elements_kind()
Dmap.h255 V(ElementsKindBits, ElementsKind, 5, _)
390 DECL_PRIMITIVE_ACCESSORS(elements_kind, ElementsKind)
406 static bool IsValidElementsTransition(ElementsKind from_kind,
407 ElementsKind to_kind);
509 ElementsKind new_elements_kind);
675 ElementsKind to_kind);
678 ElementsKind kind);
681 ElementsKind kind, TransitionFlag flag);
886 ElementsKind elements_kind);
931 ElementsKind elements_kind,
Dliteral-objects.h58 inline ElementsKind elements_kind() const;
59 inline void set_elements_kind(ElementsKind kind);
/external/v8/src/compiler/
Daccess-info.cc29 ElementsKind const elements_kind = map->elements_kind(); in CanInlineElementAccess()
71 ElementsKind elements_kind) in ElementAccessInfo()
257 ElementsKind const elements_kind = map->elements_kind(); in ComputeElementAccessInfo()
582 Maybe<ElementsKind> GeneralizeElementsKind(ElementsKind this_kind, in GeneralizeElementsKind()
583 ElementsKind that_kind) { in GeneralizeElementsKind()
598 return Nothing<ElementsKind>(); in GeneralizeElementsKind()
607 ElementsKind elements_kind = maps.front()->elements_kind(); in ConsolidateElementLoad()
Djs-create-lowering.h96 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()
Djs-heap-broker.h172 ElementsKind GetElementsKind() const;
255 MapRef GetInitialJSArrayMap(ElementsKind kind) const;
300 ElementsKind GetElementsKind() const;
314 ElementsKind elements_kind() const;
327 base::Optional<MapRef> AsElementsKind(ElementsKind kind) const;
Daccess-info.h44 ElementsKind elements_kind);
46 ElementsKind elements_kind() const { return elements_kind_; } in elements_kind()
52 ElementsKind elements_kind_;
Daccess-builder.h116 static FieldAccess ForJSArrayLength(ElementsKind elements_kind); in NON_EXPORTED_BASE()
279 ElementsKind kind, in NON_EXPORTED_BASE()
Dcompilation-dependencies.cc236 ElementsKindDependency(const AllocationSiteRef& site, ElementsKind kind) in ElementsKindDependency()
246 ElementsKind kind = site->PointsToLiteral() in IsValid()
261 ElementsKind kind_;
353 ElementsKind kind = site.PointsToLiteral() in DependOnElementsKind()
Djs-heap-broker.cc284 ElementsKind GetElementsKind = NO_ELEMENTS;
347 ElementsKind from_kind = self.elements_kind(); in SerializeElementsKindGeneralizations()
349 ElementsKind to_kind = static_cast<ElementsKind>(i); in SerializeElementsKindGeneralizations()
730 base::Optional<MapRef> MapRef::AsElementsKind(ElementsKind kind) const { in AsElementsKind()
995 BIMODAL_ACCESSOR_C(AllocationSite, ElementsKind, GetElementsKind) in BIMODAL_ACCESSOR()
1076 MapRef NativeContextRef::GetInitialJSArrayMap(ElementsKind kind) const { in GetInitialJSArrayMap()
1169 ElementsKind JSObjectRef::GetElementsKind() const { in GetElementsKind()
/external/v8/src/heap/
Dfactory.h203 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,
615 ElementsKind elements_kind, int length,
620 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND,
639 static void TypeAndSizeForElementsKind(ElementsKind kind,
646 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind,
656 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind,
[all …]
/external/v8/src/runtime/
Druntime-array.cc28 ElementsKind to_kind = to_map->elements_kind(); in RUNTIME_FUNCTION()
408 ElementsKind from_kind = from->GetElementsKind(); in RUNTIME_FUNCTION()
436 ElementsKind kind = array->GetElementsKind(); in RUNTIME_FUNCTION()
470 ElementsKind kind = array->GetElementsKind(); in RUNTIME_FUNCTION()
601 ElementsKind to_kind = can_use_type_feedback ? site->GetElementsKind() in RUNTIME_FUNCTION()
626 ElementsKind old_kind = array->GetElementsKind(); in RUNTIME_FUNCTION()

1234