/third_party/node/deps/v8/src/objects/ |
D | elements-kind.cc | 175 ElementsKind to_kind) { in IsMoreGeneralElementsKindTransition() argument 177 if (!IsFastTransitionTarget(to_kind)) return false; in IsMoreGeneralElementsKindTransition() 179 DCHECK(!IsTypedArrayElementsKind(to_kind)); in IsMoreGeneralElementsKindTransition() 182 return to_kind != PACKED_SMI_ELEMENTS; in IsMoreGeneralElementsKindTransition() 184 return to_kind != PACKED_SMI_ELEMENTS && to_kind != HOLEY_SMI_ELEMENTS; in IsMoreGeneralElementsKindTransition() 186 return to_kind != PACKED_SMI_ELEMENTS && to_kind != HOLEY_SMI_ELEMENTS && in IsMoreGeneralElementsKindTransition() 187 to_kind != PACKED_DOUBLE_ELEMENTS; in IsMoreGeneralElementsKindTransition() 189 return to_kind == PACKED_ELEMENTS || to_kind == HOLEY_ELEMENTS; in IsMoreGeneralElementsKindTransition() 191 return to_kind == HOLEY_ELEMENTS; in IsMoreGeneralElementsKindTransition()
|
D | allocation-site-inl.h | 213 ElementsKind to_kind) { in DigestTransitionFeedback() argument 222 to_kind = GetHoleyElementsKind(to_kind); in DigestTransitionFeedback() 224 if (IsMoreGeneralElementsKindTransition(kind, to_kind)) { in DigestTransitionFeedback() 238 ElementsKindToString(to_kind)); in DigestTransitionFeedback() 240 CHECK_NE(to_kind, DICTIONARY_ELEMENTS); in DigestTransitionFeedback() 241 JSObject::TransitionElementsKind(boilerplate, to_kind); in DigestTransitionFeedback() 252 to_kind = GetHoleyElementsKind(to_kind); in DigestTransitionFeedback() 254 if (IsMoreGeneralElementsKindTransition(kind, to_kind)) { in DigestTransitionFeedback() 259 ElementsKindToString(to_kind)); in DigestTransitionFeedback() 261 site->SetElementsKind(to_kind); in DigestTransitionFeedback()
|
D | map-updater.cc | 360 ElementsKind to_kind = old_map.elements_kind(); in TryUpdateNoLock() local 372 DCHECK(to_kind == DICTIONARY_ELEMENTS || in TryUpdateNoLock() 373 to_kind == SLOW_STRING_WRAPPER_ELEMENTS || in TryUpdateNoLock() 374 IsTypedArrayElementsKind(to_kind) || in TryUpdateNoLock() 375 IsAnyHoleyNonextensibleElementsKind(to_kind)); in TryUpdateNoLock() 376 to_kind = info.integrity_level_source_map.elements_kind(); in TryUpdateNoLock() 378 if (from_kind != to_kind) { in TryUpdateNoLock() 380 root_map = root_map.LookupElementsTransitionMap(isolate, to_kind, cmode); in TryUpdateNoLock() 560 ElementsKind to_kind = new_elements_kind_; in FindRootMap() local 566 result_map_ = Map::AsElementsKind(isolate_, result_map_, to_kind); in FindRootMap() [all …]
|
D | elements-kind.h | 426 ElementsKind to_kind) { in IsSimpleMapChangeTransition() argument 427 return (GetHoleyElementsKind(from_kind) == to_kind) || in IsSimpleMapChangeTransition() 428 (IsSmiElementsKind(from_kind) && IsObjectElementsKind(to_kind)); in IsSimpleMapChangeTransition() 432 ElementsKind to_kind); 435 ElementsKind to_kind) { in GetMoreGeneralElementsKind() argument 436 if (IsMoreGeneralElementsKindTransition(from_kind, to_kind)) { in GetMoreGeneralElementsKind() 437 return to_kind; in GetMoreGeneralElementsKind()
|
D | map.cc | 936 ElementsKind to_kind, in FindClosestElementsTransition() argument 945 while (kind != to_kind) { in FindClosestElementsTransition() 952 DCHECK_EQ(to_kind, current_map.elements_kind()); in FindClosestElementsTransition() 956 Map Map::LookupElementsTransitionMap(Isolate* isolate, ElementsKind to_kind, in LookupElementsTransitionMap() argument 958 Map to_map = FindClosestElementsTransition(isolate, *this, to_kind, cmode); in LookupElementsTransitionMap() 959 if (to_map.elements_kind() == to_kind) return to_map; in LookupElementsTransitionMap() 976 ElementsKind to_kind) { in TransitionElementsTo() argument 978 if (from_kind == to_kind) return map; in TransitionElementsTo() 983 DCHECK_EQ(SLOW_SLOPPY_ARGUMENTS_ELEMENTS, to_kind); in TransitionElementsTo() 988 DCHECK_EQ(FAST_SLOPPY_ARGUMENTS_ELEMENTS, to_kind); in TransitionElementsTo() [all …]
|
D | elements.cc | 197 FixedArrayBase to_base, ElementsKind to_kind, in CopyObjectToObjectElements() argument 220 DCHECK(IsSmiOrObjectElementsKind(to_kind)); in CopyObjectToObjectElements() 223 (IsObjectElementsKind(from_kind) && IsObjectElementsKind(to_kind)) in CopyObjectToObjectElements() 232 ElementsKind to_kind, uint32_t to_start, in CopyDictionaryToObjectElements() argument 248 DCHECK(IsSmiOrObjectElementsKind(to_kind)); in CopyDictionaryToObjectElements() 255 WriteBarrierMode write_barrier_mode = GetWriteBarrierMode(to, to_kind, no_gc); in CopyDictionaryToObjectElements() 850 ElementsKind to_kind = to_map->elements_kind(); in TransitionElementsKindImpl() local 852 to_kind = GetHoleyElementsKind(to_kind); in TransitionElementsKindImpl() 854 if (from_kind != to_kind) { in TransitionElementsKindImpl() 857 DCHECK(IsFastElementsKind(to_kind)); in TransitionElementsKindImpl() [all …]
|
D | js-objects.cc | 2868 ElementsKind to_kind, in PrintElementsTransition() argument 2870 if (from_kind != to_kind) { in PrintElementsTransition() 2873 << ElementsKindToString(to_kind) << "] in "; in PrintElementsTransition() 3372 ElementsKind to_kind) { in GetElementsTransitionMap() argument 3374 return Map::TransitionElementsTo(object->GetIsolate(), map, to_kind); in GetElementsTransitionMap() 3383 ElementsKind to_kind = GetMoreGeneralElementsKind(map_kind, obj_kind); in AllocateStorageForMap() local 3385 to_kind = obj_kind; in AllocateStorageForMap() 3387 if (IsDictionaryElementsKind(to_kind)) { in AllocateStorageForMap() 3390 TransitionElementsKind(object, to_kind); in AllocateStorageForMap() 3392 map = MapUpdater{isolate, map}.ReconfigureElementsKind(to_kind); in AllocateStorageForMap() [all …]
|
D | allocation-site.h | 135 ElementsKind to_kind);
|
D | js-objects.h | 587 ElementsKind to_kind); 630 ElementsKind to_kind); 632 ElementsKind to_kind); 772 ElementsKind to_kind,
|
D | map.h | 705 ElementsKind to_kind);
|
/third_party/node/deps/v8/src/runtime/ |
D | runtime-array.cc | 30 ElementsKind to_kind = to_map->elements_kind(); in RUNTIME_FUNCTION() local 31 if (ElementsAccessor::ForKind(to_kind) in RUNTIME_FUNCTION() 47 ElementsKind to_kind = static_cast<ElementsKind>(args.smi_value_at(1)); in RUNTIME_FUNCTION() local 48 JSObject::TransitionElementsKind(object, to_kind); in RUNTIME_FUNCTION() 104 ElementsKind to_kind = can_use_type_feedback ? site->GetElementsKind() in RUNTIME_FUNCTION() local 106 if (holey && !IsHoleyElementsKind(to_kind)) { in RUNTIME_FUNCTION() 107 to_kind = GetHoleyElementsKind(to_kind); in RUNTIME_FUNCTION() 109 if (!site.is_null()) site->SetElementsKind(to_kind); in RUNTIME_FUNCTION() 115 initial_map = Map::AsElementsKind(isolate, initial_map, to_kind); in RUNTIME_FUNCTION() 120 if (AllocationSite::ShouldTrack(to_kind)) { in RUNTIME_FUNCTION()
|
/third_party/node/deps/v8/src/builtins/ |
D | builtins-handler-gen.cc | 38 TNode<Int32T> from_kind, TNode<Int32T> to_kind, 93 TNode<Int32T> from_kind, TNode<Int32T> to_kind, in DispatchForElementsKindTransition() argument 118 Word32Or(Word32Shl(from_kind, Int32Constant(kBitsPerByte)), to_kind); in DispatchForElementsKindTransition() 162 [=, &miss](ElementsKind from_kind, ElementsKind to_kind) { in Generate_ElementsTransitionAndStore() argument 163 TransitionElementsKind(receiver, map, from_kind, to_kind, &miss); in Generate_ElementsTransitionAndStore() 164 EmitElementStore(receiver, key, value, to_kind, store_mode, &miss, in Generate_ElementsTransitionAndStore()
|
D | builtins-string-gen.cc | 1548 ElementsKind to_kind = to_one_byte ? UINT8_ELEMENTS : UINT16_ELEMENTS; in CopyStringCharacters() local 1554 ElementOffsetFromIndex(to_index, to_kind, header_size); in CopyStringCharacters() 1565 int to_increment = 1 << ElementsKindToShiftSize(to_kind); in CopyStringCharacters()
|
/third_party/node/deps/v8/src/ic/ |
D | keyed-store-generic.cc | 121 ElementsKind from_kind, ElementsKind to_kind, 266 ElementsKind from_kind, ElementsKind to_kind, Label* bailout) { in TryRewriteElements() argument 269 ElementsKind holey_to_kind = GetHoleyElementsKind(to_kind); in TryRewriteElements() 270 if (AllocationSite::ShouldTrack(from_kind, to_kind)) { in TryRewriteElements() 280 LoadContextElement(native_context, Context::ArrayMapIndex(to_kind))); in TryRewriteElements() 298 if (IsDoubleElementsKind(from_kind) != IsDoubleElementsKind(to_kind)) { in TryRewriteElements() 300 GrowElementsCapacity(receiver, elements, from_kind, to_kind, capacity, in TryRewriteElements()
|
/third_party/node/deps/v8/src/codegen/ |
D | code-stub-assembler.cc | 4416 const ElementsKind to_kind = PACKED_ELEMENTS; in ExtractToFixedArray() local 4418 to_kind, capacity, allocation_flags, var_target_map.value()); in ExtractToFixedArray() 4441 FillFixedArrayWithValue(to_kind, to_elements, count, capacity, in ExtractToFixedArray() 4443 CopyElements(to_kind, to_elements, IntPtrConstant(0), source, in ExtractToFixedArray() 4447 CopyFixedArrayElements(from_kind, source, to_kind, to_elements, first, in ExtractToFixedArray() 4998 ElementsKind to_kind, TNode<FixedArrayBase> to_array, in CopyFixedArrayElements() argument 5005 CSA_SLOW_DCHECK(this, IsFixedArrayWithKindOrEmpty(to_array, to_kind)); in CopyFixedArrayElements() 5016 DCHECK(!IsTypedArrayElementsKind(to_kind)); in CopyFixedArrayElements() 5020 bool to_double_elements = IsDoubleElementsKind(to_kind); in CopyFixedArrayElements() 5022 IsDoubleElementsKind(from_kind) && IsObjectElementsKind(to_kind); in CopyFixedArrayElements() [all …]
|
D | code-stub-assembler.h | 2149 ElementsKind to_kind, TNode<FixedArrayBase> to_array, 2152 CopyFixedArrayElements(from_kind, from_array, to_kind, to_array, 2168 ElementsKind to_kind, TNode<FixedArrayBase> to_array, 2349 ElementsKind to_kind, 2377 ElementsKind from_kind, ElementsKind to_kind, TNode<TIndex> capacity, 3472 ElementsKind from_kind, ElementsKind to_kind,
|
/third_party/python/Objects/ |
D | unicodeobject.c | 1571 unsigned int from_kind, to_kind; in _copy_characters() local 1591 to_kind = PyUnicode_KIND(to); in _copy_characters() 1608 if (from_kind == to_kind) { in _copy_characters() 1620 memcpy((char*)to_data + to_kind * to_start, in _copy_characters() 1622 to_kind * how_many); in _copy_characters() 1625 && to_kind == PyUnicode_2BYTE_KIND) in _copy_characters() 1635 && to_kind == PyUnicode_4BYTE_KIND) in _copy_characters() 1645 && to_kind == PyUnicode_4BYTE_KIND) in _copy_characters() 1659 && to_kind == PyUnicode_1BYTE_KIND) in _copy_characters() 1669 && to_kind == PyUnicode_1BYTE_KIND) in _copy_characters() [all …]
|