Home
last modified time | relevance | path

Searched refs:elements_kind (Results 1 – 25 of 77) 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/
Delements-kind.cc16 int ElementsKindToShiftSize(ElementsKind elements_kind) { in ElementsKindToShiftSize() argument
17 switch (elements_kind) { in ElementsKindToShiftSize()
47 int GetDefaultHeaderSizeForElementsKind(ElementsKind elements_kind) { in GetDefaultHeaderSizeForElementsKind() argument
50 if (IsFixedTypedArrayElementsKind(elements_kind)) { in GetDefaultHeaderSizeForElementsKind()
101 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind) { in GetSequenceIndexFromFastElementsKind() argument
103 if (fast_elements_kind_sequence.Get()[i] == elements_kind) { in GetSequenceIndexFromFastElementsKind()
118 static inline bool IsFastTransitionTarget(ElementsKind elements_kind) { in IsFastTransitionTarget() argument
119 return IsFastElementsKind(elements_kind) || in IsFastTransitionTarget()
120 elements_kind == DICTIONARY_ELEMENTS; in IsFastTransitionTarget()
Delements-kind.h65 int ElementsKindToShiftSize(ElementsKind elements_kind);
66 int GetDefaultHeaderSizeForElementsKind(ElementsKind elements_kind);
72 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind);
74 ElementsKind GetNextTransitionElementsKind(ElementsKind elements_kind);
Dfactory.h306 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND);
399 Handle<JSArray> NewJSArray(ElementsKind elements_kind,
406 ElementsKind elements_kind, int length, int capacity,
412 int capacity, ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND,
416 elements_kind = GetHoleyElementsKind(elements_kind);
418 return NewJSArray(elements_kind, 0, capacity, strength,
424 ElementsKind elements_kind, int length,
430 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND,
433 return NewJSArrayWithElements(elements, elements_kind, elements->length(),
452 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.cc1003 ElementsKind elements_kind) { in NewMap() argument
1006 isolate()->heap()->AllocateMap(type, instance_size, elements_kind), in NewMap()
1281 ElementsKind elements_kind = in NewFunction() local
1283 Handle<Map> initial_map = NewMap(type, instance_size, elements_kind); in NewFunction()
1599 Handle<JSArray> Factory::NewJSArray(ElementsKind elements_kind, in NewJSArray() argument
1602 Map* map = isolate()->get_initial_js_array_map(elements_kind, strength); in NewJSArray()
1613 Handle<JSArray> Factory::NewJSArray(ElementsKind elements_kind, int length, in NewJSArray() argument
1617 Handle<JSArray> array = NewJSArray(elements_kind, strength, pretenure); in NewJSArray()
1624 ElementsKind elements_kind, in NewJSArrayWithElements() argument
1628 Handle<JSArray> array = NewJSArray(elements_kind, strength, pretenure); in NewJSArrayWithElements()
[all …]
Delements.cc2263 ElementsKind elements_kind = array->GetElementsKind(); in ArrayConstructInitializeElements() local
2266 if (!IsFastHoleyElementsKind(elements_kind)) { in ArrayConstructInitializeElements()
2267 elements_kind = GetHoleyElementsKind(elements_kind); in ArrayConstructInitializeElements()
2268 JSObject::TransitionElementsKind(array, elements_kind); in ArrayConstructInitializeElements()
2288 ElementsKind elements_kind = array->GetElementsKind(); in ArrayConstructInitializeElements() local
2290 if (IsFastDoubleElementsKind(elements_kind)) { in ArrayConstructInitializeElements()
2364 ElementsKind elements_kind = GetInitialFastElementsKind(); in Concat() local
2383 ElementsKind arg_kind = JSArray::cast(arg)->map()->elements_kind(); in Concat()
2386 elements_kind = GetMoreGeneralElementsKind(elements_kind, arg_kind); in Concat()
2389 elements_kind = GetHoleyElementsKind(elements_kind); in Concat()
[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/ic/
Dic-compiler.cc40 ElementsKind elements_kind = receiver_map->elements_kind(); in ComputeKeyedLoadMonomorphicHandler() local
45 is_js_array && elements_kind == FAST_HOLEY_ELEMENTS && in ComputeKeyedLoadMonomorphicHandler()
46 *receiver_map == isolate->get_initial_js_array_map(elements_kind) && in ComputeKeyedLoadMonomorphicHandler()
58 stub = LoadFastElementStub(isolate, is_js_array, elements_kind, in ComputeKeyedLoadMonomorphicHandler()
248 ElementsKind elements_kind = receiver_map->elements_kind(); in CompileKeyedStorePolymorphicHandlers() local
251 ElementsTransitionAndStoreStub(isolate(), elements_kind, in CompileKeyedStorePolymorphicHandlers()
252 transitioned_map->elements_kind(), in CompileKeyedStorePolymorphicHandlers()
259 if (IsSloppyArgumentsElements(elements_kind)) { in CompileKeyedStorePolymorphicHandlers()
265 elements_kind, store_mode).GetCode(); in CompileKeyedStorePolymorphicHandlers()
268 StoreElementStub(isolate(), elements_kind, store_mode).GetCode(); in CompileKeyedStorePolymorphicHandlers()
[all …]
Dhandler-compiler.cc583 ElementsKind elements_kind = receiver_map->elements_kind(); in CompileElementHandlers() local
588 (is_js_array && elements_kind == FAST_HOLEY_ELEMENTS && in CompileElementHandlers()
590 isolate()->get_initial_js_array_map(elements_kind)) && in CompileElementHandlers()
595 } else if (IsSloppyArgumentsElements(elements_kind)) { in CompileElementHandlers()
597 } else if (IsFastElementsKind(elements_kind) || in CompileElementHandlers()
598 IsFixedTypedArrayElementsKind(elements_kind)) { in CompileElementHandlers()
599 cached_stub = LoadFastElementStub(isolate(), is_js_array, elements_kind, in CompileElementHandlers()
602 DCHECK(elements_kind == DICTIONARY_ELEMENTS); in CompileElementHandlers()
/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()
89 ElementsKind elements_kind, in ElementAccessInfo() argument
91 : elements_kind_(elements_kind), in ElementAccessInfo()
148 ElementsKind const elements_kind = map->elements_kind(); in ComputeElementAccessInfo() local
170 ElementAccessInfo(Type::Class(map, zone()), elements_kind, holder); in ComputeElementAccessInfo()
183 IsFastElementsKind(map->elements_kind()) && in ComputeElementAccessInfos()
184 GetInitialFastElementsKind() != map->elements_kind()) { in ComputeElementAccessInfos()
393 if (IsFastDoubleElementsKind(map->elements_kind())) { in LookupSpecialFieldAccessor()
395 } else if (IsFastElementsKind(map->elements_kind())) { in LookupSpecialFieldAccessor()
Djs-native-context-specialization.cc584 if (IsSimpleMapChangeTransition(transition_source->elements_kind(), in ReduceElementAccess()
585 transition_target->elements_kind())) { in ReduceElementAccess()
594 transition_source->elements_kind(), in ReduceElementAccess()
595 transition_target->elements_kind(), in ReduceElementAccess()
663 ElementsKind elements_kind = access_info.elements_kind(); in ReduceElementAccess() local
672 IsFastSmiOrObjectElementsKind(elements_kind)) { in ReduceElementAccess()
690 AccessBuilder::ForJSArrayLength(elements_kind)), in ReduceElementAccess()
707 if (IsFastDoubleElementsKind(elements_kind)) { in ReduceElementAccess()
710 } else if (IsFastSmiElementsKind(elements_kind)) { in ReduceElementAccess()
722 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
Daccess-builder.cc81 FieldAccess AccessBuilder::ForJSArrayLength(ElementsKind elements_kind) { in ForJSArrayLength() argument
86 if (IsFastDoubleElementsKind(elements_kind)) { in ForJSArrayLength()
88 } else if (IsFastElementsKind(elements_kind)) { in ForJSArrayLength()
/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.cc1855 ElementsKind elements_kind = FAST_ELEMENTS; in BuildRegExpConstructResult() local
1856 HValue* size = BuildCalculateElementsSize(elements_kind, length); in BuildRegExpConstructResult()
1892 HAllocate* elements = BuildAllocateElements(elements_kind, size); in BuildRegExpConstructResult()
1893 BuildInitializeElementsHeader(elements, elements_kind, length); in BuildRegExpConstructResult()
1897 elements_kind, max_length->Integer32Value()); in BuildRegExpConstructResult()
1907 elements, elements_kind, graph()->GetConstant0(), length, in BuildRegExpConstructResult()
2536 ElementsKind elements_kind, in BuildUncheckedMonomorphicElementAccess() argument
2542 DCHECK(!IsFixedTypedArrayElementsKind(elements_kind) || !is_js_array); in BuildUncheckedMonomorphicElementAccess()
2549 if ((elements_kind == FAST_HOLEY_ELEMENTS) || in BuildUncheckedMonomorphicElementAccess()
2550 (elements_kind == FAST_ELEMENTS && access_type == STORE)) { in BuildUncheckedMonomorphicElementAccess()
[all …]
/external/v8/src/runtime/
Druntime-literals.cc422 ElementsKind elements_kind = object->GetElementsKind(); in RUNTIME_FUNCTION() local
423 DCHECK(IsFastElementsKind(elements_kind)); in RUNTIME_FUNCTION()
428 DCHECK(IsFastSmiElementsKind(elements_kind)); in RUNTIME_FUNCTION()
429 ElementsKind transitioned_kind = IsFastHoleyElementsKind(elements_kind) in RUNTIME_FUNCTION()
442 if (!IsFastObjectElementsKind(elements_kind)) { in RUNTIME_FUNCTION()
443 ElementsKind transitioned_kind = IsFastHoleyElementsKind(elements_kind) in RUNTIME_FUNCTION()
Druntime-object.cc91 ElementsKind elements_kind = js_object->GetElementsKind(); in KeyedGetObjectProperty() local
92 if (IsFastDoubleElementsKind(elements_kind)) { in KeyedGetObjectProperty()
94 elements_kind = IsFastHoleyElementsKind(elements_kind) in KeyedGetObjectProperty()
97 JSObject::TransitionElementsKind(js_object, elements_kind); in KeyedGetObjectProperty()
100 DCHECK(IsFastSmiOrObjectElementsKind(elements_kind) || in KeyedGetObjectProperty()
101 !IsFastElementsKind(elements_kind)); in KeyedGetObjectProperty()
962 IsFastPackedElementsKind(obj->map()->elements_kind())); in RUNTIME_FUNCTION()
/external/v8/src/crankshaft/x87/
Dlithium-x87.cc339 ElementsKind kind = hydrogen()->elements_kind(); in PrintDataTo()
2171 ElementsKind elements_kind = instr->elements_kind(); in DoLoadKeyed() local
2173 instr->key()->representation(), elements_kind); in DoLoadKeyed()
2185 !(IsDoubleOrFloatElementsKind(instr->elements_kind()))) || in DoLoadKeyed()
2187 (IsDoubleOrFloatElementsKind(instr->elements_kind())))); in DoLoadKeyed()
2197 needs_environment = elements_kind == UINT32_ELEMENTS && in DoLoadKeyed()
2230 ElementsKind elements_kind = instr->elements_kind(); in GetStoreKeyedValueOperand() local
2234 elements_kind == UINT8_ELEMENTS || in GetStoreKeyedValueOperand()
2235 elements_kind == INT8_ELEMENTS || in GetStoreKeyedValueOperand()
2236 elements_kind == UINT8_CLAMPED_ELEMENTS; in GetStoreKeyedValueOperand()
[all …]

1234