Home
last modified time | relevance | path

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

123

/external/v8/test/mjsunit/
Delements-kind.js30 var elements_kind = { variable
56 if (%HasFastSmiElements(obj)) return elements_kind.fast_smi_only;
57 if (%HasFastObjectElements(obj)) return elements_kind.fast;
58 if (%HasFastDoubleElements(obj)) return elements_kind.fast_double;
59 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
63 return elements_kind.external_int8;
66 return elements_kind.external_uint8;
69 return elements_kind.external_int16;
72 return elements_kind.external_uint16;
75 return elements_kind.external_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;
59 return elements_kind.external_byte;
62 return elements_kind.external_unsigned_byte;
65 return elements_kind.external_short;
68 return elements_kind.external_unsigned_short;
71 return elements_kind.external_int;
[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;
59 return elements_kind.external_byte;
62 return elements_kind.external_unsigned_byte;
65 return elements_kind.external_short;
68 return elements_kind.external_unsigned_short;
71 return elements_kind.external_int;
[all …]
Darray-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;
75 assertKind(elements_kind.fast_smi_only, a);
78 assertKind(elements_kind.fast_double, b);
88 assertKind(elements_kind.fast_smi_only, a);
92 assertKind(elements_kind.fast, b);
95 assertKind(elements_kind.fast_smi_only, a);
[all …]
Darray-constructor-feedback.js33 var elements_kind = { variable
50 if (%HasFastSmiElements(obj)) return elements_kind.fast_smi_only;
51 if (%HasFastObjectElements(obj)) return elements_kind.fast;
52 if (%HasFastDoubleElements(obj)) return elements_kind.fast_double;
53 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
76 assertKind(elements_kind.fast_double, b);
94 assertKind(elements_kind.fast_double, b);
97 assertKind(elements_kind.fast_double, b);
110 assertKind(elements_kind.fast_smi_only, b);
114 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()
55 int GetDefaultHeaderSizeForElementsKind(ElementsKind elements_kind) { in GetDefaultHeaderSizeForElementsKind() argument
57 return IsExternalArrayElementsKind(elements_kind) in GetDefaultHeaderSizeForElementsKind()
105 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind) { in GetSequenceIndexFromFastElementsKind() argument
107 if (fast_elements_kind_sequence.Get()[i] == elements_kind) { in GetSequenceIndexFromFastElementsKind()
131 ElementsKind GetNextMoreGeneralFastElementsKind(ElementsKind elements_kind, in GetNextMoreGeneralFastElementsKind() argument
133 DCHECK(IsFastElementsKind(elements_kind)); in GetNextMoreGeneralFastElementsKind()
134 DCHECK(elements_kind != TERMINAL_FAST_ELEMENTS_KIND); in GetNextMoreGeneralFastElementsKind()
136 elements_kind = GetNextTransitionElementsKind(elements_kind); in GetNextMoreGeneralFastElementsKind()
[all …]
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);
242 ElementsKind GetNextMoreGeneralFastElementsKind(ElementsKind elements_kind,
247 ElementsKind elements_kind, in CanTransitionToMoreGeneralFastElementsKind() argument
249 return IsFastElementsKind(elements_kind) && in CanTransitionToMoreGeneralFastElementsKind()
250 (elements_kind != TERMINAL_FAST_ELEMENTS_KIND && in CanTransitionToMoreGeneralFastElementsKind()
251 (!allow_only_packed || elements_kind != FAST_ELEMENTS)); in CanTransitionToMoreGeneralFastElementsKind()
Dhydrogen-uint32-analysis.cc12 switch (instr->elements_kind()) { in IsUnsignedLoad()
58 DCHECK(store->elements_kind() != EXTERNAL_UINT8_CLAMPED_ELEMENTS); in IsSafeUint32Use()
59 DCHECK(store->elements_kind() != EXTERNAL_FLOAT32_ELEMENTS); in IsSafeUint32Use()
60 DCHECK(store->elements_kind() != EXTERNAL_FLOAT64_ELEMENTS); in IsSafeUint32Use()
Dtype-feedback-vector-inl.h34 Isolate* isolate, ElementsKind elements_kind) { in MonomorphicArraySentinel() argument
35 return Handle<Object>(Smi::FromInt(static_cast<int>(elements_kind)), isolate); in MonomorphicArraySentinel()
Dfactory.h305 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND);
389 ElementsKind elements_kind,
395 ElementsKind elements_kind, int length, int capacity,
401 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND,
404 elements_kind = GetHoleyElementsKind(elements_kind);
406 return NewJSArray(elements_kind, 0, capacity,
413 ElementsKind elements_kind,
419 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND,
422 elements, elements_kind, elements->length(), pretenure);
Delements.h183 static ElementsAccessor* ForKind(ElementsKind elements_kind) { in ForKind() argument
184 DCHECK(elements_kind < kElementsKindCount); in ForKind()
185 return elements_accessors_[elements_kind]; in ForKind()
Dbuiltins.cc240 ElementsKind origin_kind = array->map()->elements_kind(); in EnsureJSArrayWithWritableFastElements()
768 ElementsKind elements_kind = array->GetElementsKind(); in BUILTIN() local
774 if (new_length > len && IsFastDoubleElementsKind(elements_kind)) { in BUILTIN()
780 elms_obj, elements_kind, actual_delete_count); in BUILTIN()
787 isolate->factory()->NewJSArray(elements_kind, in BUILTIN()
795 elms_obj, actual_start, elements_kind, in BUILTIN()
891 if (IsFastDoubleElementsKind(elements_kind)) { in BUILTIN()
925 ElementsKind elements_kind = GetInitialFastElementsKind(); in BUILTIN() local
963 ElementsKind arg_kind = JSArray::cast(arg)->map()->elements_kind(); in BUILTIN()
966 if (IsMoreGeneralElementsKindTransition(elements_kind, arg_kind)) { in BUILTIN()
[all …]
Dtype-feedback-vector.h43 Isolate* isolate, ElementsKind elements_kind);
Dhydrogen.cc1816 ElementsKind elements_kind = FAST_ELEMENTS; in BuildRegExpConstructResult() local
1817 HValue* size = BuildCalculateElementsSize(elements_kind, length); in BuildRegExpConstructResult()
1856 HAllocate* elements = BuildAllocateElements(elements_kind, size); in BuildRegExpConstructResult()
1857 BuildInitializeElementsHeader(elements, elements_kind, length); in BuildRegExpConstructResult()
1861 elements_kind, max_length->Integer32Value()); in BuildRegExpConstructResult()
1871 elements, elements_kind, graph()->GetConstant0(), length, in BuildRegExpConstructResult()
2403 ElementsKind elements_kind, in BuildUncheckedMonomorphicElementAccess() argument
2407 DCHECK((!IsExternalArrayElementsKind(elements_kind) && in BuildUncheckedMonomorphicElementAccess()
2408 !IsFixedTypedArrayElementsKind(elements_kind)) || in BuildUncheckedMonomorphicElementAccess()
2416 if ((elements_kind == FAST_HOLEY_ELEMENTS) || in BuildUncheckedMonomorphicElementAccess()
[all …]
Dhydrogen-instructions.h2506 ElementsKind elements_kind() const { return elements_kind_; } in elements_kind() function
2512 ElementsKind elements_kind) in DECLARE_CONCRETE_INSTRUCTION()
2514 elements_kind_(elements_kind) {} in DECLARE_CONCRETE_INSTRUCTION()
6049 static HObjectAccess ForArrayLength(ElementsKind elements_kind) { in ForArrayLength() argument
6053 IsFastElementsKind(elements_kind) in ForArrayLength()
6542 virtual ElementsKind elements_kind() const = 0;
6575 return IsExternalArrayElementsKind(elements_kind()); in is_external()
6578 return IsFixedTypedArrayElementsKind(elements_kind()); in is_fixed_typed_array()
6598 virtual ElementsKind elements_kind() const OVERRIDE { in elements_kind() function
6642 return elements_kind() == other_load->elements_kind(); in DECLARE_CONCRETE_INSTRUCTION()
[all …]
Dhydrogen-dehoist.cc36 1 << ElementsKindToShiftSize(array_operation->elements_kind()); in DehoistArrayIndex()
Dcode-stubs.h1933 ElementsKind elements_kind) in LoadFastElementStub() argument
1935 set_sub_minor_key(ElementsKindBits::encode(elements_kind) | in LoadFastElementStub()
1941 ElementsKind elements_kind() const { in elements_kind() function
1957 ElementsKind elements_kind, KeyedAccessStoreMode mode) in StoreFastElementStub() argument
1959 set_sub_minor_key(ElementsKindBits::encode(elements_kind) | in StoreFastElementStub()
1966 ElementsKind elements_kind() const { in elements_kind() function
2028 ElementsKind elements_kind() const { in elements_kind() function
2129 ElementsKind elements_kind() const { in elements_kind() function
2180 StoreElementStub(Isolate* isolate, ElementsKind elements_kind) in StoreElementStub() argument
2182 minor_key_ = ElementsKindBits::encode(elements_kind); in StoreElementStub()
[all …]
/external/v8/src/ic/
Dic-compiler.cc95 ElementsKind elements_kind = receiver_map->elements_kind(); in ComputeKeyedLoadMonomorphic() local
106 elements_kind).GetCode(); in ComputeKeyedLoadMonomorphic()
389 ElementsKind elements_kind = receiver_map->elements_kind(); in CompileKeyedStorePolymorphic() local
392 ElementsTransitionAndStoreStub(isolate(), elements_kind, in CompileKeyedStorePolymorphic()
393 transitioned_map->elements_kind(), in CompileKeyedStorePolymorphic()
402 elements_kind, store_mode).GetCode(); in CompileKeyedStorePolymorphic()
404 cached_stub = StoreElementStub(isolate(), elements_kind).GetCode(); in CompileKeyedStorePolymorphic()
425 ElementsKind elements_kind = receiver_map->elements_kind(); in CompileKeyedStoreMonomorphic() local
431 stub = StoreFastElementStub(isolate(), is_jsarray, elements_kind, in CompileKeyedStoreMonomorphic()
434 stub = StoreElementStub(isolate(), elements_kind).GetCode(); in CompileKeyedStoreMonomorphic()
Dhandler-compiler.cc390 ElementsKind elements_kind = receiver_map->elements_kind(); in CompileElementHandlers() local
393 } else if (IsSloppyArgumentsElements(elements_kind)) { in CompileElementHandlers()
395 } else if (IsFastElementsKind(elements_kind) || in CompileElementHandlers()
396 IsExternalArrayElementsKind(elements_kind) || in CompileElementHandlers()
397 IsFixedTypedArrayElementsKind(elements_kind)) { in CompileElementHandlers()
398 cached_stub = LoadFastElementStub(isolate(), is_js_array, elements_kind) in CompileElementHandlers()
401 DCHECK(elements_kind == DICTIONARY_ELEMENTS); in CompileElementHandlers()
/external/v8/src/compiler/
Djs-typed-lowering.cc541 ElementsKind elements_kind = array->map()->elements_kind(); in ReduceJSLoadProperty() local
549 if (IsExternalArrayElementsKind(elements_kind)) { in ReduceJSLoadProperty()
555 DCHECK(IsFixedTypedArrayElementsKind(elements_kind)); in ReduceJSLoadProperty()
581 ElementsKind elements_kind = array->map()->elements_kind(); in ReduceJSStoreProperty() local
589 if (IsExternalArrayElementsKind(elements_kind)) { in ReduceJSStoreProperty()
595 DCHECK(IsFixedTypedArrayElementsKind(elements_kind)); in ReduceJSStoreProperty()
/external/v8/src/x87/
Dlithium-x87.cc339 ElementsKind kind = hydrogen()->elements_kind(); in PrintDataTo()
2203 ElementsKind elements_kind = instr->elements_kind(); in DoLoadKeyed() local
2205 instr->key()->representation(), elements_kind); in DoLoadKeyed()
2217 !(IsDoubleOrFloatElementsKind(instr->elements_kind()))) || in DoLoadKeyed()
2219 (IsDoubleOrFloatElementsKind(instr->elements_kind())))); in DoLoadKeyed()
2226 ((instr->elements_kind() == EXTERNAL_UINT32_ELEMENTS || in DoLoadKeyed()
2227 instr->elements_kind() == UINT32_ELEMENTS) && in DoLoadKeyed()
2254 ElementsKind elements_kind = instr->elements_kind(); in GetStoreKeyedValueOperand() local
2258 elements_kind == EXTERNAL_INT8_ELEMENTS || in GetStoreKeyedValueOperand()
2259 elements_kind == EXTERNAL_UINT8_ELEMENTS || in GetStoreKeyedValueOperand()
[all …]
/external/v8/src/ia32/
Dlithium-ia32.cc328 ElementsKind kind = hydrogen()->elements_kind(); in PrintDataTo()
2205 ElementsKind elements_kind = instr->elements_kind(); in DoLoadKeyed() local
2207 instr->key()->representation(), elements_kind); in DoLoadKeyed()
2219 !(IsDoubleOrFloatElementsKind(instr->elements_kind()))) || in DoLoadKeyed()
2221 (IsDoubleOrFloatElementsKind(instr->elements_kind())))); in DoLoadKeyed()
2228 ((instr->elements_kind() == EXTERNAL_UINT32_ELEMENTS || in DoLoadKeyed()
2229 instr->elements_kind() == UINT32_ELEMENTS) && in DoLoadKeyed()
2256 ElementsKind elements_kind = instr->elements_kind(); in GetStoreKeyedValueOperand() local
2260 elements_kind == EXTERNAL_INT8_ELEMENTS || in GetStoreKeyedValueOperand()
2261 elements_kind == EXTERNAL_UINT8_ELEMENTS || in GetStoreKeyedValueOperand()
[all …]
/external/v8/src/x64/
Dlithium-x64.cc316 ElementsKind kind = hydrogen()->elements_kind(); in PrintDataTo()
2187 ElementsKind elements_kind = instr->elements_kind(); in DoLoadKeyed() local
2195 instr->key()->representation(), elements_kind); in DoLoadKeyed()
2211 !(IsDoubleOrFloatElementsKind(elements_kind))) || in DoLoadKeyed()
2213 (IsDoubleOrFloatElementsKind(elements_kind)))); in DoLoadKeyed()
2220 ((elements_kind == EXTERNAL_UINT32_ELEMENTS || in DoLoadKeyed()
2221 elements_kind == UINT32_ELEMENTS) && in DoLoadKeyed()
2249 ElementsKind elements_kind = instr->elements_kind(); in DoStoreKeyed() local
2286 !IsDoubleOrFloatElementsKind(elements_kind)) || in DoStoreKeyed()
2288 IsDoubleOrFloatElementsKind(elements_kind))); in DoStoreKeyed()
[all …]

123