Home
last modified time | relevance | path

Searched refs:elements_kind (Results 1 – 25 of 81) sorted by relevance

1234

/external/v8/test/mjsunit/
Delements-kind.js30 var elements_kind = { variable
47 if (%HasFastSmiElements(obj)) return elements_kind.fast_smi_only;
48 if (%HasFastObjectElements(obj)) return elements_kind.fast;
49 if (%HasFastDoubleElements(obj)) return elements_kind.fast_double;
50 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
53 return elements_kind.fixed_int8;
56 return elements_kind.fixed_uint8;
59 return elements_kind.fixed_int16;
62 return elements_kind.fixed_uint16;
65 return elements_kind.fixed_int32;
[all …]
Dallocation-site-info.js31 var elements_kind = { variable
48 if (%HasFastSmiElements(obj)) return elements_kind.fast_smi_only;
49 if (%HasFastObjectElements(obj)) return elements_kind.fast;
50 if (%HasFastDoubleElements(obj)) return elements_kind.fast_double;
51 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
73 assertKind(elements_kind.fast_smi_only, obj);
77 assertKind(elements_kind.fast_smi_only, obj);
81 assertKind(elements_kind.fast_smi_only, obj);
85 assertKind(elements_kind.fast_smi_only, obj);
89 assertKind(elements_kind.fast_smi_only, obj);
[all …]
Dosr-elements-kind.js35 var elements_kind = { variable
52 if (%HasFastSmiElements(obj)) return elements_kind.fast_smi_only;
53 if (%HasFastObjectElements(obj)) return elements_kind.fast;
54 if (%HasFastDoubleElements(obj)) return elements_kind.fast_double;
55 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
58 return elements_kind.fixed_int8;
61 return elements_kind.fixed_uint8;
64 return elements_kind.fixed_int16;
67 return elements_kind.fixed_uint16;
70 return elements_kind.fixed_int32;
[all …]
Dopt-elements-kind.js35 var elements_kind = { variable
52 if (%HasFastSmiElements(obj)) return elements_kind.fast_smi_only;
53 if (%HasFastObjectElements(obj)) return elements_kind.fast;
54 if (%HasFastDoubleElements(obj)) return elements_kind.fast_double;
55 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
58 return elements_kind.fixed_int8;
61 return elements_kind.fixed_uint8;
64 return elements_kind.fixed_int16;
67 return elements_kind.fixed_uint16;
70 return elements_kind.fixed_int32;
[all …]
Darray-feedback.js30 var elements_kind = { variable
47 if (%HasFastSmiElements(obj)) return elements_kind.fast_smi_only;
48 if (%HasFastObjectElements(obj)) return elements_kind.fast;
49 if (%HasFastDoubleElements(obj)) return elements_kind.fast_double;
50 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
74 assertKind(elements_kind.fast_smi_only, a);
77 assertKind(elements_kind.fast_double, b);
87 assertKind(elements_kind.fast_smi_only, a);
91 assertKind(elements_kind.fast, b);
94 assertKind(elements_kind.fast, a);
[all …]
Darray-constructor-feedback.js32 var elements_kind = { variable
49 if (%HasFastSmiElements(obj)) return elements_kind.fast_smi_only;
50 if (%HasFastObjectElements(obj)) return elements_kind.fast;
51 if (%HasFastDoubleElements(obj)) return elements_kind.fast_double;
52 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
75 assertKind(elements_kind.fast_double, b);
93 assertKind(elements_kind.fast_double, b);
96 assertKind(elements_kind.fast_double, b);
109 assertKind(elements_kind.fast_smi_only, b);
113 assertKind(elements_kind.fast_smi_only, c);
[all …]
Darray-literal-feedback.js31 var elements_kind = { variable
48 if (%HasFastSmiElements(obj)) return elements_kind.fast_smi_only;
49 if (%HasFastObjectElements(obj)) return elements_kind.fast;
50 if (%HasFastDoubleElements(obj)) return elements_kind.fast_double;
51 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
106 assertKind(elements_kind.fast, b);
/external/v8/src/ic/
Dic-compiler.cc19 ElementsKind elements_kind = receiver_map->elements_kind(); in ComputeKeyedLoadMonomorphicHandler() local
24 is_js_array && elements_kind == FAST_HOLEY_ELEMENTS && in ComputeKeyedLoadMonomorphicHandler()
25 *receiver_map == isolate->get_initial_js_array_map(elements_kind); in ComputeKeyedLoadMonomorphicHandler()
39 stub = LoadFastElementStub(isolate, is_js_array, elements_kind, in ComputeKeyedLoadMonomorphicHandler()
96 ElementsKind elements_kind = receiver_map->elements_kind(); in CompileKeyedStorePolymorphicHandlers() local
99 ElementsTransitionAndStoreStub(isolate(), elements_kind, in CompileKeyedStorePolymorphicHandlers()
100 transitioned_map->elements_kind(), in CompileKeyedStorePolymorphicHandlers()
107 if (IsSloppyArgumentsElements(elements_kind)) { in CompileKeyedStorePolymorphicHandlers()
113 elements_kind, store_mode).GetCode(); in CompileKeyedStorePolymorphicHandlers()
116 StoreElementStub(isolate(), elements_kind, store_mode).GetCode(); in CompileKeyedStorePolymorphicHandlers()
[all …]
Dhandler-compiler.cc597 ElementsKind elements_kind = receiver_map->elements_kind(); in CompileElementHandlers() local
602 (is_js_array && elements_kind == FAST_HOLEY_ELEMENTS && in CompileElementHandlers()
603 *receiver_map == isolate()->get_initial_js_array_map(elements_kind)); in CompileElementHandlers()
610 } else if (IsSloppyArgumentsElements(elements_kind)) { in CompileElementHandlers()
612 } else if (IsFastElementsKind(elements_kind) || in CompileElementHandlers()
613 IsFixedTypedArrayElementsKind(elements_kind)) { in CompileElementHandlers()
614 cached_stub = LoadFastElementStub(isolate(), is_js_array, elements_kind, in CompileElementHandlers()
617 DCHECK(elements_kind == DICTIONARY_ELEMENTS); in CompileElementHandlers()
/external/v8/src/
Delements-kind.cc16 int ElementsKindToShiftSize(ElementsKind elements_kind) { in ElementsKindToShiftSize() argument
17 switch (elements_kind) { in ElementsKindToShiftSize()
52 int GetDefaultHeaderSizeForElementsKind(ElementsKind elements_kind) { in GetDefaultHeaderSizeForElementsKind() argument
55 if (IsFixedTypedArrayElementsKind(elements_kind)) { in GetDefaultHeaderSizeForElementsKind()
106 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind) { in GetSequenceIndexFromFastElementsKind() argument
108 if (fast_elements_kind_sequence.Get()[i] == elements_kind) { in GetSequenceIndexFromFastElementsKind()
123 static inline bool IsFastTransitionTarget(ElementsKind elements_kind) { in IsFastTransitionTarget() argument
124 return IsFastElementsKind(elements_kind) || in IsFastTransitionTarget()
125 elements_kind == DICTIONARY_ELEMENTS; in IsFastTransitionTarget()
Delements-kind.h74 int ElementsKindToShiftSize(ElementsKind elements_kind);
75 int GetDefaultHeaderSizeForElementsKind(ElementsKind elements_kind);
81 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind);
83 ElementsKind GetNextTransitionElementsKind(ElementsKind elements_kind);
Dfactory.h324 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND);
424 ElementsKind elements_kind, int length, int capacity,
429 int capacity, ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND,
432 elements_kind = GetHoleyElementsKind(elements_kind);
434 return NewJSArray(elements_kind, 0, capacity,
440 ElementsKind elements_kind, int length,
445 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND,
447 return NewJSArrayWithElements(elements, elements_kind, elements->length(),
466 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind,
476 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind,
[all …]
Delements.h27 static ElementsAccessor* ForKind(ElementsKind elements_kind) { in ForKind() argument
28 DCHECK(static_cast<int>(elements_kind) < kElementsKindCount); in ForKind()
29 return elements_accessors_[elements_kind]; in ForKind()
Dfactory.cc1021 ElementsKind elements_kind) { in NewMap() argument
1024 isolate()->heap()->AllocateMap(type, instance_size, elements_kind), in NewMap()
1297 ElementsKind elements_kind = in NewFunction() local
1299 Handle<Map> initial_map = NewMap(type, instance_size, elements_kind); in NewFunction()
1610 Handle<JSArray> Factory::NewJSArray(ElementsKind elements_kind, in NewJSArray() argument
1612 Map* map = isolate()->get_initial_js_array_map(elements_kind); in NewJSArray()
1621 Handle<JSArray> Factory::NewJSArray(ElementsKind elements_kind, int length, in NewJSArray() argument
1625 Handle<JSArray> array = NewJSArray(elements_kind, pretenure); in NewJSArray()
1631 ElementsKind elements_kind, in NewJSArrayWithElements() argument
1635 Handle<JSArray> array = NewJSArray(elements_kind, pretenure); in NewJSArrayWithElements()
[all …]
/external/v8/test/cctest/
Dtest-elements-kind.cc81 CHECK_EQ(previous_map->elements_kind(), FAST_HOLEY_ELEMENTS); in TEST()
91 CHECK_EQ(object->map()->elements_kind(), FAST_HOLEY_ELEMENTS); in TEST()
112 CHECK_EQ(previous_map->elements_kind(), FAST_HOLEY_ELEMENTS); in TEST()
124 CHECK_EQ(object->map()->elements_kind(), FAST_HOLEY_ELEMENTS); in TEST()
135 CHECK_EQ(object->map()->elements_kind(), FAST_HOLEY_ELEMENTS); in TEST()
155 CHECK_EQ(previous_map->elements_kind(), FAST_HOLEY_ELEMENTS); in TEST()
165 CHECK_EQ(object->map()->elements_kind(), FAST_HOLEY_ELEMENTS); in TEST()
178 CHECK_EQ(object->map()->elements_kind(), FAST_HOLEY_ELEMENTS); in TEST()
189 CHECK_EQ(object->map()->elements_kind(), DICTIONARY_ELEMENTS); in TEST()
207 CHECK_EQ(previous_map->elements_kind(), FAST_SMI_ELEMENTS); in TEST()
[all …]
/external/v8/src/compiler/
Daccess-info.cc25 ElementsKind const elements_kind = map->elements_kind(); in CanInlineElementAccess() local
26 if (IsFastElementsKind(elements_kind)) return true; in CanInlineElementAccess()
88 ElementsKind elements_kind, in ElementAccessInfo() argument
90 : elements_kind_(elements_kind), in ElementAccessInfo()
143 ElementsKind const elements_kind = map->elements_kind(); in ComputeElementAccessInfo() local
165 ElementAccessInfo(Type::Class(map, zone()), elements_kind, holder); in ComputeElementAccessInfo()
178 IsFastElementsKind(map->elements_kind()) && in ComputeElementAccessInfos()
179 GetInitialFastElementsKind() != map->elements_kind()) { in ComputeElementAccessInfos()
389 if (IsFastDoubleElementsKind(map->elements_kind())) { in LookupSpecialFieldAccessor()
391 } else if (IsFastElementsKind(map->elements_kind())) { in LookupSpecialFieldAccessor()
Djs-native-context-specialization.cc622 if (IsSimpleMapChangeTransition(transition_source->elements_kind(), in ReduceElementAccess()
623 transition_target->elements_kind())) { in ReduceElementAccess()
632 transition_source->elements_kind(), in ReduceElementAccess()
633 transition_target->elements_kind()); in ReduceElementAccess()
681 ElementsKind elements_kind = access_info.elements_kind(); in ReduceElementAccess() local
690 IsFastSmiOrObjectElementsKind(elements_kind)) { in ReduceElementAccess()
707 AccessBuilder::ForJSArrayLength(elements_kind)), in ReduceElementAccess()
721 if (IsFastDoubleElementsKind(elements_kind)) { in ReduceElementAccess()
724 } else if (IsFastSmiElementsKind(elements_kind)) { in ReduceElementAccess()
737 if (elements_kind == FAST_HOLEY_ELEMENTS || in ReduceElementAccess()
[all …]
Daccess-info.h39 ElementAccessInfo(Type* receiver_type, ElementsKind elements_kind,
43 ElementsKind elements_kind() const { return elements_kind_; } in elements_kind() function
Djs-create-lowering.cc474 ElementsKind elements_kind = site->GetElementsKind(); in ReduceNewArray() local
475 DCHECK(IsFastElementsKind(elements_kind)); in ReduceNewArray()
477 elements_kind = GetHoleyElementsKind(elements_kind); in ReduceNewArray()
487 javascript()->LoadContext(0, Context::ArrayMapIndex(elements_kind), true), in ReduceNewArray()
496 AllocateElements(effect, control, elements_kind, capacity, pretenure); in ReduceNewArray()
506 a.Store(AccessBuilder::ForJSArrayLength(elements_kind), length); in ReduceNewArray()
872 ElementsKind elements_kind, in AllocateElements() argument
878 Handle<Map> elements_map = IsFastDoubleElementsKind(elements_kind) in AllocateElements()
881 ElementAccess access = IsFastDoubleElementsKind(elements_kind) in AllocateElements()
885 IsFastDoubleElementsKind(elements_kind) in AllocateElements()
/external/v8/src/crankshaft/
Dhydrogen-uint32-analysis.cc12 switch (instr->elements_kind()) { in IsUnsignedLoad()
54 DCHECK(store->elements_kind() != UINT8_CLAMPED_ELEMENTS); in IsSafeUint32Use()
55 DCHECK(store->elements_kind() != FLOAT32_ELEMENTS); in IsSafeUint32Use()
56 DCHECK(store->elements_kind() != FLOAT64_ELEMENTS); in IsSafeUint32Use()
Dhydrogen.cc2081 ElementsKind elements_kind = FAST_ELEMENTS; in BuildRegExpConstructResult() local
2082 HValue* size = BuildCalculateElementsSize(elements_kind, length); in BuildRegExpConstructResult()
2118 HAllocate* elements = BuildAllocateElements(elements_kind, size); in BuildRegExpConstructResult()
2119 BuildInitializeElementsHeader(elements, elements_kind, length); in BuildRegExpConstructResult()
2127 elements, elements_kind, graph()->GetConstant0(), length, in BuildRegExpConstructResult()
2769 ElementsKind elements_kind, in BuildUncheckedMonomorphicElementAccess() argument
2775 DCHECK(!IsFixedTypedArrayElementsKind(elements_kind) || !is_js_array); in BuildUncheckedMonomorphicElementAccess()
2782 if ((elements_kind == FAST_HOLEY_ELEMENTS) || in BuildUncheckedMonomorphicElementAccess()
2783 (elements_kind == FAST_ELEMENTS && access_type == STORE)) { in BuildUncheckedMonomorphicElementAccess()
2787 bool fast_smi_only_elements = IsFastSmiElementsKind(elements_kind); in BuildUncheckedMonomorphicElementAccess()
[all …]
Dhydrogen-instructions.h2361 ElementsKind elements_kind() const { return elements_kind_; } in elements_kind() function
2368 ElementsKind elements_kind, Handle<AllocationSite> site) in DECLARE_CONCRETE_INSTRUCTION()
2370 elements_kind_(elements_kind), in DECLARE_CONCRETE_INSTRUCTION()
5357 static HObjectAccess ForArrayLength(ElementsKind elements_kind) { in ForArrayLength() argument
5361 IsFastElementsKind(elements_kind) in ForArrayLength()
5949 virtual ElementsKind elements_kind() const = 0;
5983 return IsFixedTypedArrayElementsKind(elements_kind()); in is_fixed_typed_array()
6007 ElementsKind elements_kind() const override { in elements_kind() function
6055 return elements_kind() == other_load->elements_kind(); in DECLARE_CONCRETE_INSTRUCTION()
6060 HValue* backing_store_owner, ElementsKind elements_kind,
[all …]
/external/v8/src/runtime/
Druntime-object.cc92 ElementsKind elements_kind = js_object->GetElementsKind(); in KeyedGetObjectProperty() local
93 if (IsFastDoubleElementsKind(elements_kind)) { in KeyedGetObjectProperty()
95 elements_kind = IsFastHoleyElementsKind(elements_kind) in KeyedGetObjectProperty()
98 JSObject::TransitionElementsKind(js_object, elements_kind); in KeyedGetObjectProperty()
101 DCHECK(IsFastSmiOrObjectElementsKind(elements_kind) || in KeyedGetObjectProperty()
102 !IsFastElementsKind(elements_kind)); in KeyedGetObjectProperty()
711 IsFastPackedElementsKind(obj->map()->elements_kind())); in RUNTIME_FUNCTION()
/external/v8/src/crankshaft/x87/
Dlithium-x87.cc318 ElementsKind kind = hydrogen()->elements_kind(); in PrintDataTo()
2096 ElementsKind elements_kind = instr->elements_kind(); in DoLoadKeyed() local
2098 instr->key()->representation(), elements_kind); in DoLoadKeyed()
2110 !(IsDoubleOrFloatElementsKind(instr->elements_kind()))) || in DoLoadKeyed()
2112 (IsDoubleOrFloatElementsKind(instr->elements_kind())))); in DoLoadKeyed()
2122 needs_environment = elements_kind == UINT32_ELEMENTS && in DoLoadKeyed()
2152 ElementsKind elements_kind = instr->elements_kind(); in GetStoreKeyedValueOperand() local
2156 elements_kind == UINT8_ELEMENTS || in GetStoreKeyedValueOperand()
2157 elements_kind == INT8_ELEMENTS || in GetStoreKeyedValueOperand()
2158 elements_kind == UINT8_CLAMPED_ELEMENTS; in GetStoreKeyedValueOperand()
[all …]
/external/v8/src/crankshaft/ia32/
Dlithium-ia32.cc307 ElementsKind kind = hydrogen()->elements_kind(); in PrintDataTo()
2100 ElementsKind elements_kind = instr->elements_kind(); in DoLoadKeyed() local
2102 instr->key()->representation(), elements_kind); in DoLoadKeyed()
2114 !(IsDoubleOrFloatElementsKind(instr->elements_kind()))) || in DoLoadKeyed()
2116 (IsDoubleOrFloatElementsKind(instr->elements_kind())))); in DoLoadKeyed()
2126 needs_environment = elements_kind == UINT32_ELEMENTS && in DoLoadKeyed()
2156 ElementsKind elements_kind = instr->elements_kind(); in GetStoreKeyedValueOperand() local
2160 elements_kind == UINT8_ELEMENTS || in GetStoreKeyedValueOperand()
2161 elements_kind == INT8_ELEMENTS || in GetStoreKeyedValueOperand()
2162 elements_kind == UINT8_CLAMPED_ELEMENTS; in GetStoreKeyedValueOperand()
[all …]

1234