Home
last modified time | relevance | path

Searched refs:from_kind (Results 1 – 13 of 13) sorted by relevance

/third_party/node/deps/v8/src/objects/
Delements-kind.h420 inline ElementsKind FastSmiToObjectElementsKind(ElementsKind from_kind) { in FastSmiToObjectElementsKind() argument
421 DCHECK(IsSmiElementsKind(from_kind)); in FastSmiToObjectElementsKind()
422 return (from_kind == PACKED_SMI_ELEMENTS) ? PACKED_ELEMENTS : HOLEY_ELEMENTS; in FastSmiToObjectElementsKind()
425 inline bool IsSimpleMapChangeTransition(ElementsKind from_kind, in IsSimpleMapChangeTransition() argument
427 return (GetHoleyElementsKind(from_kind) == to_kind) || in IsSimpleMapChangeTransition()
428 (IsSmiElementsKind(from_kind) && IsObjectElementsKind(to_kind)); in IsSimpleMapChangeTransition()
431 bool IsMoreGeneralElementsKindTransition(ElementsKind from_kind,
434 inline ElementsKind GetMoreGeneralElementsKind(ElementsKind from_kind, in GetMoreGeneralElementsKind() argument
436 if (IsMoreGeneralElementsKindTransition(from_kind, to_kind)) { in GetMoreGeneralElementsKind()
439 return from_kind; in GetMoreGeneralElementsKind()
[all …]
Delements-kind.cc174 bool IsMoreGeneralElementsKindTransition(ElementsKind from_kind, in IsMoreGeneralElementsKindTransition() argument
176 if (!IsFastElementsKind(from_kind)) return false; in IsMoreGeneralElementsKindTransition()
178 DCHECK(!IsTypedArrayElementsKind(from_kind)); in IsMoreGeneralElementsKindTransition()
180 switch (from_kind) { in IsMoreGeneralElementsKindTransition()
Delements.cc196 ElementsKind from_kind, uint32_t from_start, in CopyObjectToObjectElements() argument
219 DCHECK(IsSmiOrObjectElementsKind(from_kind)); in CopyObjectToObjectElements()
223 (IsObjectElementsKind(from_kind) && IsObjectElementsKind(to_kind)) in CopyObjectToObjectElements()
804 ElementsKind from_kind, uint32_t capacity) { in ConvertElementsWithCapacity() argument
805 return ConvertElementsWithCapacity(object, old_elements, from_kind, in ConvertElementsWithCapacity()
811 ElementsKind from_kind, uint32_t capacity, uint32_t src_index, in ConvertElementsWithCapacity() argument
834 if (IsFastPackedElementsKind(from_kind) && object->IsJSArray()) { in ConvertElementsWithCapacity()
839 from_kind, dst_index, packed_size, in ConvertElementsWithCapacity()
849 ElementsKind from_kind = from_map->elements_kind(); in TransitionElementsKindImpl() local
851 if (IsHoleyElementsKind(from_kind)) { in TransitionElementsKindImpl()
[all …]
Dmap.cc977 ElementsKind from_kind = map->elements_kind(); in TransitionElementsTo() local
978 if (from_kind == to_kind) return map; in TransitionElementsTo()
981 if (from_kind == FAST_SLOPPY_ARGUMENTS_ELEMENTS) { in TransitionElementsTo()
986 } else if (from_kind == SLOW_SLOPPY_ARGUMENTS_ELEMENTS) { in TransitionElementsTo()
991 } else if (IsFastElementsKind(from_kind) && IsFastElementsKind(to_kind)) { in TransitionElementsTo()
994 if (native_context.GetInitialJSArrayMap(from_kind) == *map) { in TransitionElementsTo()
1005 if (IsHoleyElementsKind(from_kind) && in TransitionElementsTo()
1006 to_kind == GetPackedElementsKind(from_kind) && in TransitionElementsTo()
1012 bool allow_store_transition = IsTransitionElementsKind(from_kind); in TransitionElementsTo()
1016 allow_store_transition && IsTransitionableFastElementsKind(from_kind) && in TransitionElementsTo()
[all …]
Dmap-updater.cc359 ElementsKind from_kind = root_map.elements_kind(); in TryUpdateNoLock() local
378 if (from_kind != to_kind) { in TryUpdateNoLock()
559 ElementsKind from_kind = root_map_->elements_kind(); in FindRootMap() local
593 if (from_kind != to_kind && to_kind != DICTIONARY_ELEMENTS && in FindRootMap()
596 !(IsTransitionableFastElementsKind(from_kind) && in FindRootMap()
597 IsMoreGeneralElementsKindTransition(from_kind, to_kind))) { in FindRootMap()
Djs-objects.cc2866 ElementsKind from_kind, in PrintElementsTransition() argument
2870 if (from_kind != to_kind) { in PrintElementsTransition()
2872 os << "elements transition [" << ElementsKindToString(from_kind) << " -> " in PrintElementsTransition()
5247 ElementsKind from_kind = object->GetElementsKind(); in TransitionElementsKind() local
5249 if (IsHoleyElementsKind(from_kind)) { in TransitionElementsKind()
5253 if (from_kind == to_kind) return; in TransitionElementsKind()
5256 DCHECK(IsFastElementsKind(from_kind) || in TransitionElementsKind()
5257 IsNonextensibleElementsKind(from_kind)); in TransitionElementsKind()
5259 DCHECK_NE(TERMINAL_FAST_ELEMENTS_KIND, from_kind); in TransitionElementsKind()
5264 IsDoubleElementsKind(from_kind) == IsDoubleElementsKind(to_kind)) { in TransitionElementsKind()
[all …]
Djs-objects.h770 ElementsKind from_kind,
/third_party/node/deps/v8/src/builtins/
Dbuiltins-handler-gen.cc38 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()
Dbuiltins-string-gen.cc1547 ElementsKind from_kind = from_one_byte ? UINT8_ELEMENTS : UINT16_ELEMENTS; in CopyStringCharacters() local
1552 ElementOffsetFromIndex(from_index, from_kind, header_size); in CopyStringCharacters()
1556 ElementOffsetFromIndex(character_count, from_kind); in CopyStringCharacters()
1564 int from_increment = 1 << ElementsKindToShiftSize(from_kind); in CopyStringCharacters()
/third_party/node/deps/v8/src/ic/
Dkeyed-store-generic.cc121 ElementsKind from_kind, ElementsKind to_kind,
266 ElementsKind from_kind, ElementsKind to_kind, Label* bailout) { in TryRewriteElements() argument
267 DCHECK(IsFastPackedElementsKind(from_kind)); in TryRewriteElements()
268 ElementsKind holey_from_kind = GetHoleyElementsKind(from_kind); in TryRewriteElements()
270 if (AllocationSite::ShouldTrack(from_kind, to_kind)) { in TryRewriteElements()
277 TNode<Map> packed_map = LoadJSArrayElementsMap(from_kind, native_context); 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/
Dcode-stub-assembler.cc4361 TNode<TIndex> capacity, TNode<Map> source_map, ElementsKind from_kind, in ExtractToFixedArray() argument
4383 if (IsDoubleElementsKind(from_kind)) { in ExtractToFixedArray()
4437 !IsDoubleElementsKind(from_kind)) { in ExtractToFixedArray()
4447 CopyFixedArrayElements(from_kind, source, to_kind, to_elements, first, in ExtractToFixedArray()
4997 ElementsKind from_kind, TNode<FixedArrayBase> from_array, in CopyFixedArrayElements() argument
5004 CSA_SLOW_DCHECK(this, IsFixedArrayWithKindOrEmpty(from_array, from_kind)); in CopyFixedArrayElements()
5015 DCHECK(!IsTypedArrayElementsKind(from_kind)); in CopyFixedArrayElements()
5019 bool from_double_elements = IsDoubleElementsKind(from_kind); in CopyFixedArrayElements()
5022 IsDoubleElementsKind(from_kind) && IsObjectElementsKind(to_kind); in CopyFixedArrayElements()
5029 IsDoubleElementsKind(from_kind) == IsDoubleElementsKind(to_kind)); in CopyFixedArrayElements()
[all …]
Dcode-stub-assembler.h2148 ElementsKind from_kind, TNode<FixedArrayBase> from_array,
2152 CopyFixedArrayElements(from_kind, from_array, to_kind, to_array,
2167 ElementsKind from_kind, TNode<FixedArrayBase> from_array,
2296 TNode<TIndex> capacity, TNode<Map> source_map, ElementsKind from_kind,
2348 ElementsKind from_kind,
2377 ElementsKind from_kind, ElementsKind to_kind, TNode<TIndex> capacity,
3472 ElementsKind from_kind, ElementsKind to_kind,
/third_party/python/Objects/
Dunicodeobject.c1571 unsigned int from_kind, to_kind; in _copy_characters() local
1589 from_kind = PyUnicode_KIND(from); in _copy_characters()
1602 ch = PyUnicode_READ(from_kind, from_data, from_start + i); in _copy_characters()
1608 if (from_kind == to_kind) { in _copy_characters()
1621 (const char*)from_data + from_kind * from_start, in _copy_characters()
1624 else if (from_kind == PyUnicode_1BYTE_KIND in _copy_characters()
1634 else if (from_kind == PyUnicode_1BYTE_KIND in _copy_characters()
1644 else if (from_kind == PyUnicode_2BYTE_KIND in _copy_characters()
1658 if (from_kind == PyUnicode_2BYTE_KIND in _copy_characters()
1668 else if (from_kind == PyUnicode_4BYTE_KIND in _copy_characters()
[all …]