Home
last modified time | relevance | path

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

12345

/third_party/node/deps/v8/src/objects/
Delements-kind.h78 enum ElementsKind : uint8_t { enum
168 V8_EXPORT_PRIVATE int ElementsKindToShiftSize(ElementsKind elements_kind);
169 V8_EXPORT_PRIVATE int ElementsKindToByteSize(ElementsKind elements_kind);
170 int GetDefaultHeaderSizeForElementsKind(ElementsKind elements_kind);
171 const char* ElementsKindToString(ElementsKind kind);
173 inline ElementsKind GetInitialFastElementsKind() { return PACKED_SMI_ELEMENTS; } in GetInitialFastElementsKind()
175 ElementsKind GetFastElementsKindFromSequenceIndex(int sequence_number);
176 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind);
178 ElementsKind GetNextTransitionElementsKind(ElementsKind elements_kind);
180 inline bool IsDictionaryElementsKind(ElementsKind kind) { in IsDictionaryElementsKind()
[all …]
Delements-kind.cc15 int ElementsKindToShiftSize(ElementsKind elements_kind) { in ElementsKindToShiftSize()
68 int ElementsKindToByteSize(ElementsKind elements_kind) { in ElementsKindToByteSize()
72 int GetDefaultHeaderSizeForElementsKind(ElementsKind elements_kind) { in GetDefaultHeaderSizeForElementsKind()
82 const char* ElementsKindToString(ElementsKind kind) { in ElementsKindToString()
133 const ElementsKind kFastElementsKindSequence[kFastElementsKindCount] = {
150 ElementsKind GetFastElementsKindFromSequenceIndex(int sequence_number) { in GetFastElementsKindFromSequenceIndex()
155 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind) { in GetSequenceIndexFromFastElementsKind()
164 ElementsKind GetNextTransitionElementsKind(ElementsKind kind) { in GetNextTransitionElementsKind()
169 static inline bool IsFastTransitionTarget(ElementsKind elements_kind) { in IsFastTransitionTarget()
174 bool IsMoreGeneralElementsKindTransition(ElementsKind from_kind, in IsMoreGeneralElementsKindTransition()
[all …]
Dallocation-site.h73 using ElementsKindBits = base::BitField<ElementsKind, 0, 6>;
124 inline ElementsKind GetElementsKind() const;
125 inline void SetElementsKind(ElementsKind kind);
135 ElementsKind to_kind);
141 static inline bool ShouldTrack(ElementsKind boilerplate_elements_kind);
142 static bool ShouldTrack(ElementsKind from, ElementsKind to);
Djs-array.tq107 constexpr ElementsKind, Map, intptr, Smi,
109 extern macro AllocateJSArray(constexpr ElementsKind, Map, intptr, Smi): JSArray;
110 extern macro AllocateJSArray(constexpr ElementsKind, Map, Smi, Smi): JSArray;
145 constexpr ElementsKind, FixedArrayBase, intptr, intptr, intptr): void;
150 ElementsKind::HOLEY_SMI_ELEMENTS, elements, dstIndex, srcIndex, count);
156 ElementsKind::HOLEY_ELEMENTS, elements, dstIndex, srcIndex, count);
162 ElementsKind::HOLEY_DOUBLE_ELEMENTS, elements, dstIndex, srcIndex, count);
166 constexpr ElementsKind, FixedArrayBase, intptr, FixedArrayBase, intptr,
172 ElementsKind::HOLEY_ELEMENTS, dstElements, dstIndex, srcElements,
179 ElementsKind::HOLEY_DOUBLE_ELEMENTS, dstElements, dstIndex, srcElements,
[all …]
Dallocation-site-inl.h99 ElementsKind AllocationSite::GetElementsKind() const { in GetElementsKind()
103 void AllocationSite::SetElementsKind(ElementsKind kind) { in SetElementsKind()
124 bool AllocationSite::ShouldTrack(ElementsKind boilerplate_elements_kind) { in ShouldTrack()
213 ElementsKind to_kind) { in DigestTransitionFeedback()
219 ElementsKind kind = boilerplate->GetElementsKind(); in DigestTransitionFeedback()
249 ElementsKind kind = site->GetElementsKind(); in DigestTransitionFeedback()
Dliteral-objects-inl.h127 ElementsKind ArrayBoilerplateDescription::elements_kind() const { in OBJECT_CONSTRUCTORS_IMPL()
128 return static_cast<ElementsKind>(flags()); in OBJECT_CONSTRUCTORS_IMPL()
131 void ArrayBoilerplateDescription::set_elements_kind(ElementsKind kind) { in set_elements_kind()
Dfixed-array.tq98 constexpr ElementsKind, intptr, constexpr AllocationFlag): FixedArrayBase;
110 constexpr ElementsKind, FixedArray, constexpr ElementsKind, FixedArray,
113 constexpr ElementsKind, FixedArray, constexpr ElementsKind, FixedArray,
Dmap.h409 DECL_PRIMITIVE_ACCESSORS(elements_kind, ElementsKind)
535 ElementsKind new_elements_kind,
705 ElementsKind to_kind);
709 ElementsKind kind,
713 ElementsKind kind);
716 ElementsKind kind, TransitionFlag flag);
828 bool EquivalentToForNormalization(const Map other, ElementsKind elements_kind,
878 Map LookupElementsTransitionMap(Isolate* isolate, ElementsKind elements_kind,
960 ElementsKind elements_kind,
Dliteral-objects.h66 inline ElementsKind elements_kind() const;
67 inline void set_elements_kind(ElementsKind kind);
/third_party/node/deps/v8/src/builtins/
Dtyped-array.tq11 type Uint8Elements extends ElementsKind;
12 type Int8Elements extends ElementsKind;
13 type Uint16Elements extends ElementsKind;
14 type Int16Elements extends ElementsKind;
15 type Uint32Elements extends ElementsKind;
16 type Int32Elements extends ElementsKind;
17 type Float32Elements extends ElementsKind;
18 type Float64Elements extends ElementsKind;
19 type Uint8ClampedElements extends ElementsKind;
20 type BigUint64Elements extends ElementsKind;
[all …]
Ddata-view.tq14 macro MakeDataViewGetterNameString(kind: constexpr ElementsKind): String {
15 if constexpr (kind == ElementsKind::UINT8_ELEMENTS) {
17 } else if constexpr (kind == ElementsKind::INT8_ELEMENTS) {
19 } else if constexpr (kind == ElementsKind::UINT16_ELEMENTS) {
21 } else if constexpr (kind == ElementsKind::INT16_ELEMENTS) {
23 } else if constexpr (kind == ElementsKind::UINT32_ELEMENTS) {
25 } else if constexpr (kind == ElementsKind::INT32_ELEMENTS) {
27 } else if constexpr (kind == ElementsKind::FLOAT32_ELEMENTS) {
29 } else if constexpr (kind == ElementsKind::FLOAT64_ELEMENTS) {
31 } else if constexpr (kind == ElementsKind::BIGINT64_ELEMENTS) {
[all …]
Darray.tq11 type GenericElementsAccessor extends ElementsKind;
12 type FastPackedSmiElements extends ElementsKind;
13 type FastPackedObjectElements extends ElementsKind;
14 type FastPackedDoubleElements extends ElementsKind;
15 type FastSmiOrObjectElements extends ElementsKind;
16 type FastDoubleElements extends ElementsKind;
17 type DictionaryElements extends ElementsKind;
87 LoadJSArrayElementsMap(ElementsKind::PACKED_ELEMENTS, nativeContext);
Darray-join.tq18 transitioning builtin LoadJoinElement<T : type extends ElementsKind>(
55 builtin LoadJoinTypedElement<T : type extends ElementsKind>(
341 const kind: ElementsKind = map.elements_kind;
350 if (IsElementsKindLessThanOrEqual(kind, ElementsKind::HOLEY_ELEMENTS)) {
353 kind, ElementsKind::HOLEY_DOUBLE_ELEMENTS)) {
355 } else if (kind == ElementsKind::DICTIONARY_ELEMENTS)
387 const kind: ElementsKind = map.elements_kind;
390 if (IsElementsKindGreaterThan(kind, ElementsKind::UINT32_ELEMENTS)) {
391 if (kind == ElementsKind::INT32_ELEMENTS) {
393 } else if (kind == ElementsKind::FLOAT32_ELEMENTS) {
[all …]
Dbuiltins-array-gen.h94 ElementsKind elements_kind, AllocationSiteMode mode);
95 void GenerateArrayNoArgumentConstructor(ElementsKind kind,
97 void GenerateArraySingleArgumentConstructor(ElementsKind kind,
123 ElementsKind source_elements_kind_ = ElementsKind::NO_ELEMENTS;
Dbase.tq292 extern enum ElementsKind extends int32 {
332 const kFirstFixedTypedArrayElementsKind: constexpr ElementsKind =
333 ElementsKind::UINT8_ELEMENTS;
334 const kFirstRabGsabFixedTypedArrayElementsKind: constexpr ElementsKind =
335 ElementsKind::RAB_GSAB_UINT8_ELEMENTS;
715 constexpr ElementsKind, FastJSArray, JSAny): void labels Bailout;
717 extern macro EnsureArrayPushable(implicit context: Context)(Map): ElementsKind
821 constexpr ElementsKind, constexpr ElementsKind): constexpr bool;
822 extern operator '==' macro ElementsKindEqual(ElementsKind, ElementsKind): bool;
824 k1: ElementsKind, k2: ElementsKind): bool {
[all …]
Dbuiltins-typed-array-gen.h86 using TypedArraySwitchCase = std::function<void(ElementsKind, int, int)>;
101 ElementsKind elements_kind);
106 ElementsKind elements_kind,
112 ElementsKind elements_kind, Label* if_detached);
Darray-reverse.tq6 macro LoadElement<ElementsAccessor : type extends ElementsKind, T: type>(
29 macro StoreElement<ElementsAccessor : type extends ElementsKind, T: type>(
146 const kind: ElementsKind = array.map.elements_kind;
147 if (kind == ElementsKind::PACKED_SMI_ELEMENTS) {
151 } else if (kind == ElementsKind::PACKED_ELEMENTS) {
155 } else if (kind == ElementsKind::PACKED_DOUBLE_ELEMENTS) {
Dbuiltins-handler-gen.cc29 using ElementsKindSwitchCase = std::function<void(ElementsKind)>;
36 std::function<void(ElementsKind, ElementsKind)>;
95 STATIC_ASSERT(sizeof(ElementsKind) == sizeof(uint8_t)); in DispatchForElementsKindTransition()
162 [=, &miss](ElementsKind from_kind, ElementsKind to_kind) { in Generate_ElementsTransitionAndStore()
306 [=, &miss, &maybe_converted_value](ElementsKind elements_kind) { in Generate_StoreFastElementIC()
Darray-slice.tq19 LoadJSArrayElementsMap(ElementsKind::HOLEY_ELEMENTS, context);
21 AllocateJSArray(ElementsKind::HOLEY_ELEMENTS, arrayMap, count, count);
25 ElementsKind::PACKED_ELEMENTS, newElements, 0, sourceElements,
53 LoadJSArrayElementsMap(ElementsKind::HOLEY_ELEMENTS, context);
55 AllocateJSArray(ElementsKind::HOLEY_ELEMENTS, arrayMap, count, count);
80 ElementsKind::PACKED_ELEMENTS, resultElements, Convert<intptr>(indexOut),
Dtyped-array-set.tq143 const srcKind: ElementsKind = fastSrc.map.elements_kind;
150 srcKind, ElementsKind::PACKED_SMI_ELEMENTS,
151 ElementsKind::HOLEY_SMI_ELEMENTS) ||
153 srcKind, ElementsKind::PACKED_DOUBLE_ELEMENTS,
154 ElementsKind::HOLEY_DOUBLE_ELEMENTS)) {
207 const srcKind: ElementsKind = source.elements_kind;
/third_party/node/deps/v8/src/compiler/
Djs-create-lowering.h73 Node* node, Node* length, MapRef initial_map, ElementsKind elements_kind, in NON_EXPORTED_BASE()
78 ElementsKind elements_kind, AllocationType allocation, in NON_EXPORTED_BASE()
82 ElementsKind elements_kind, AllocationType allocation, in NON_EXPORTED_BASE()
110 ElementsKind elements_kind, int capacity, in NON_EXPORTED_BASE()
113 ElementsKind elements_kind, Node* capacity_and_length); in NON_EXPORTED_BASE()
115 ElementsKind elements_kind, in NON_EXPORTED_BASE()
/third_party/node/deps/v8/src/ic/
Dkeyed-store-generic.cc121 ElementsKind from_kind, ElementsKind to_kind,
139 ElementsKind packed_kind,
140 ElementsKind holey_kind, Label* done,
144 TNode<Context> context, ElementsKind packed_kind,
150 ElementsKind packed_kind,
151 ElementsKind packed_kind_2, Label* bailout);
266 ElementsKind from_kind, ElementsKind to_kind, Label* bailout) { in TryRewriteElements()
268 ElementsKind holey_from_kind = GetHoleyElementsKind(from_kind); in TryRewriteElements()
269 ElementsKind holey_to_kind = GetHoleyElementsKind(to_kind); in TryRewriteElements()
309 TNode<NativeContext> native_context, ElementsKind packed_kind, in TryChangeToHoleyMapHelper()
[all …]
/third_party/node/deps/v8/src/codegen/
Dcode-stub-assembler.h1605 ElementsKind elements_kind);
1646 TNode<Map> LoadJSArrayElementsMap(ElementsKind kind,
1834 void TryStoreArrayElement(ElementsKind kind, Label* bailout,
1838 TNode<Smi> BuildAppendJSArray(ElementsKind kind, TNode<JSArray> array,
1842 void BuildAppendJSArray(ElementsKind kind, TNode<JSArray> array,
1963 ElementsKind kind, TNode<Map> array_map, TNode<Smi> length,
1971 ElementsKind kind, TNode<Map> array_map, TNode<IntPtrT> capacity,
1975 ElementsKind kind, TNode<Map> array_map, TNode<Smi> capacity,
1982 ElementsKind kind, TNode<Map> array_map, TNode<Smi> capacity,
1989 ElementsKind kind, TNode<Map> array_map, TNode<IntPtrT> capacity,
[all …]
Dcode-factory.h86 Isolate* isolate, ElementsKind kind,
89 Isolate* isolate, ElementsKind kind,
/third_party/node/deps/v8/src/runtime/
Druntime-array.cc30 ElementsKind to_kind = to_map->elements_kind(); in RUNTIME_FUNCTION()
47 ElementsKind to_kind = static_cast<ElementsKind>(args.smi_value_at(1)); in RUNTIME_FUNCTION()
104 ElementsKind to_kind = can_use_type_feedback ? site->GetElementsKind() in RUNTIME_FUNCTION()
129 ElementsKind old_kind = array->GetElementsKind(); in RUNTIME_FUNCTION()

12345