/external/v8/test/mjsunit/ |
D | elements-kind.js | 30 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 …]
|
D | allocation-site-info.js | 31 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 …]
|
D | osr-elements-kind.js | 35 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 …]
|
D | opt-elements-kind.js | 35 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 …]
|
D | array-feedback.js | 30 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 …]
|
D | array-constructor-feedback.js | 32 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 …]
|
D | array-literal-feedback.js | 31 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/ |
D | elements-kind.cc | 16 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()
|
D | elements-kind.h | 65 int ElementsKindToShiftSize(ElementsKind elements_kind); 66 int GetDefaultHeaderSizeForElementsKind(ElementsKind elements_kind); 72 int GetSequenceIndexFromFastElementsKind(ElementsKind elements_kind); 74 ElementsKind GetNextTransitionElementsKind(ElementsKind elements_kind);
|
D | factory.h | 306 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 …]
|
D | elements.h | 27 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()
|
D | factory.cc | 1003 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 …]
|
D | elements.cc | 2263 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/ |
D | test-elements-kind.cc | 81 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/ |
D | ic-compiler.cc | 40 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 …]
|
D | handler-compiler.cc | 583 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/ |
D | access-info.cc | 25 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()
|
D | js-native-context-specialization.cc | 584 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 …]
|
D | access-info.h | 39 ElementAccessInfo(Type* receiver_type, ElementsKind elements_kind, 43 ElementsKind elements_kind() const { return elements_kind_; } in elements_kind() function
|
D | access-builder.cc | 81 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/ |
D | hydrogen-uint32-analysis.cc | 12 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()
|
D | hydrogen.cc | 1855 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/ |
D | runtime-literals.cc | 422 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()
|
D | runtime-object.cc | 91 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/ |
D | lithium-x87.cc | 339 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 …]
|