Home
last modified time | relevance | path

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

/external/v8/src/
Delements-kind.h243 inline ElementsKind FastSmiToObjectElementsKind(ElementsKind from_kind) { in FastSmiToObjectElementsKind() argument
244 DCHECK(IsSmiElementsKind(from_kind)); in FastSmiToObjectElementsKind()
245 return (from_kind == PACKED_SMI_ELEMENTS) ? PACKED_ELEMENTS : HOLEY_ELEMENTS; in FastSmiToObjectElementsKind()
249 inline bool IsSimpleMapChangeTransition(ElementsKind from_kind, in IsSimpleMapChangeTransition() argument
251 return (GetHoleyElementsKind(from_kind) == to_kind) || in IsSimpleMapChangeTransition()
252 (IsSmiElementsKind(from_kind) && IsObjectElementsKind(to_kind)); in IsSimpleMapChangeTransition()
256 bool IsMoreGeneralElementsKindTransition(ElementsKind from_kind,
260 inline ElementsKind GetMoreGeneralElementsKind(ElementsKind from_kind, in GetMoreGeneralElementsKind() argument
262 if (IsMoreGeneralElementsKindTransition(from_kind, to_kind)) { in GetMoreGeneralElementsKind()
265 return from_kind; in GetMoreGeneralElementsKind()
[all …]
Delements-kind.cc131 bool IsMoreGeneralElementsKindTransition(ElementsKind from_kind, in IsMoreGeneralElementsKindTransition() argument
133 if (!IsFastElementsKind(from_kind)) return false; in IsMoreGeneralElementsKindTransition()
135 DCHECK(!IsFixedTypedArrayElementsKind(from_kind)); in IsMoreGeneralElementsKindTransition()
137 switch (from_kind) { in IsMoreGeneralElementsKindTransition()
Delements.cc132 ElementsKind from_kind, uint32_t from_start, in CopyObjectToObjectElements() argument
158 DCHECK(IsSmiOrObjectElementsKind(from_kind)); in CopyObjectToObjectElements()
162 (IsObjectElementsKind(from_kind) && IsObjectElementsKind(to_kind)) in CopyObjectToObjectElements()
840 ElementsKind from_kind, uint32_t capacity) { in ConvertElementsWithCapacity() argument
842 object, old_elements, from_kind, capacity, 0, 0, in ConvertElementsWithCapacity()
848 ElementsKind from_kind, uint32_t capacity, int copy_size) { in ConvertElementsWithCapacity() argument
849 return ConvertElementsWithCapacity(object, old_elements, from_kind, in ConvertElementsWithCapacity()
855 ElementsKind from_kind, uint32_t capacity, uint32_t src_index, in ConvertElementsWithCapacity() argument
866 if (IsFastPackedElementsKind(from_kind) && object->IsJSArray()) { in ConvertElementsWithCapacity()
871 from_kind, dst_index, packed_size, copy_size); in ConvertElementsWithCapacity()
[all …]
Dmap-updater.cc242 ElementsKind from_kind = root_map_->elements_kind(); in FindRootMap() local
258 if (from_kind != to_kind && to_kind != DICTIONARY_ELEMENTS && in FindRootMap()
261 !(IsTransitionableFastElementsKind(from_kind) && in FindRootMap()
262 IsMoreGeneralElementsKindTransition(from_kind, to_kind))) { in FindRootMap()
Dcode-stubs.h609 ElementsTransitionAndStoreStub(Isolate* isolate, ElementsKind from_kind, in ElementsTransitionAndStoreStub() argument
614 FromBits::encode(from_kind) | ToBits::encode(to_kind) | in ElementsTransitionAndStoreStub()
618 ElementsKind from_kind() const { return FromBits::decode(minor_key_); } in from_kind() function
Dcode-stubs.cc283 ElementsKindToString(stub->from_kind()), in TF_STUB()
293 TransitionElementsKind(receiver, map, stub->from_kind(), stub->to_kind(), in TF_STUB()
Dcode-stub-assembler.h1481 ElementsKind from_kind, Node* from_array, ElementsKind to_kind,
1485 CopyFixedArrayElements(from_kind, from_array, to_kind, to_array,
1494 ElementsKind from_kind, Node* from_array, ElementsKind to_kind,
1500 ElementsKind from_kind, TNode<FixedArrayBase> from_array,
1504 CopyFixedArrayElements(from_kind, from_array, to_kind, to_array,
1606 ElementsKind from_kind,
1626 ElementsKind from_kind, ElementsKind to_kind,
2556 void TransitionElementsKind(Node* object, Node* map, ElementsKind from_kind,
Dcode-stub-assembler.cc4280 ElementsKind from_kind, Node* from_array, ElementsKind to_kind, in CopyFixedArrayElements() argument
4285 CSA_SLOW_ASSERT(this, IsFixedArrayWithKindOrEmpty(from_array, from_kind)); in CopyFixedArrayElements()
4292 DCHECK(!IsFixedTypedArrayElementsKind(from_kind)); in CopyFixedArrayElements()
4296 bool from_double_elements = IsDoubleElementsKind(from_kind); in CopyFixedArrayElements()
4299 IsDoubleElementsKind(from_kind) && IsObjectElementsKind(to_kind); in CopyFixedArrayElements()
4304 !needs_write_barrier && (Is64() || IsDoubleElementsKind(from_kind) == in CopyFixedArrayElements()
4322 ElementOffsetFromIndex(first_element, from_kind, mode, 0); in CopyFixedArrayElements()
4328 from_kind, mode, first_element_offset)); in CopyFixedArrayElements()
4380 from_array, var_from_offset.value(), from_kind, to_kind, if_hole); in CopyFixedArrayElements()
4484 ElementsKind from_kind = from_one_byte ? UINT8_ELEMENTS : UINT16_ELEMENTS; in CopyStringCharacters() local
[all …]
Dobjects.cc2967 ElementsKind from_kind, Handle<FixedArrayBase> from_elements, in PrintElementsTransition() argument
2969 if (from_kind != to_kind) { in PrintElementsTransition()
2971 os << "elements transition [" << ElementsKindToString(from_kind) << " -> " in PrintElementsTransition()
4884 ElementsKind from_kind = root_map->elements_kind(); in TryUpdate() local
4886 if (from_kind != to_kind) { in TryUpdate()
5658 ElementsKind from_kind = map->elements_kind(); in TransitionElementsTo() local
5659 if (from_kind == to_kind) return map; in TransitionElementsTo()
5662 if (from_kind == FAST_SLOPPY_ARGUMENTS_ELEMENTS) { in TransitionElementsTo()
5667 } else if (from_kind == SLOW_SLOPPY_ARGUMENTS_ELEMENTS) { in TransitionElementsTo()
5672 } else if (IsFastElementsKind(from_kind) && IsFastElementsKind(to_kind)) { in TransitionElementsTo()
[all …]
Dobjects.h2633 ElementsKind from_kind, Handle<FixedArrayBase> from_elements,
/external/v8/src/ic/
Dkeyed-store-generic.cc86 Node* native_context, ElementsKind from_kind,
170 ElementsKind from_kind, ElementsKind to_kind, Label* bailout) { in TryRewriteElements() argument
171 DCHECK(IsFastPackedElementsKind(from_kind)); in TryRewriteElements()
172 ElementsKind holey_from_kind = GetHoleyElementsKind(from_kind); in TryRewriteElements()
174 if (AllocationSite::ShouldTrack(from_kind, to_kind)) { in TryRewriteElements()
181 Node* packed_map = LoadJSArrayElementsMap(from_kind, native_context); in TryRewriteElements()
202 if (IsDoubleElementsKind(from_kind) != IsDoubleElementsKind(to_kind)) { in TryRewriteElements()
204 GrowElementsCapacity(receiver, elements, from_kind, to_kind, capacity, in TryRewriteElements()
/external/v8/src/ast/
Dast.cc642 ElementsKind from_kind = TERMINAL_FAST_ELEMENTS_KIND; in BuildBoilerplateDescription() local
643 accessor->CopyElements(isolate, fixed_array, from_kind, elements, in BuildBoilerplateDescription()
/external/v8/src/runtime/
Druntime-array.cc408 ElementsKind from_kind = from->GetElementsKind(); in RUNTIME_FUNCTION() local
409 Handle<Map> new_map = JSObject::GetElementsTransitionMap(to, from_kind); in RUNTIME_FUNCTION()
/external/v8/src/compiler/
Djs-heap-broker.cc347 ElementsKind from_kind = self.elements_kind(); in SerializeElementsKindGeneralizations() local
350 if (IsMoreGeneralElementsKindTransition(from_kind, to_kind)) { in SerializeElementsKindGeneralizations()
/external/v8/src/objects/
Dmap.h406 static bool IsValidElementsTransition(ElementsKind from_kind,
/external/python/cpython3/Objects/
Dunicodeobject.c1431 unsigned int from_kind, to_kind; in _copy_characters() local
1448 from_kind = PyUnicode_KIND(from); in _copy_characters()
1461 ch = PyUnicode_READ(from_kind, from_data, from_start + i); in _copy_characters()
1467 if (from_kind == to_kind) { in _copy_characters()
1480 (char*)from_data + from_kind * from_start, in _copy_characters()
1483 else if (from_kind == PyUnicode_1BYTE_KIND in _copy_characters()
1493 else if (from_kind == PyUnicode_1BYTE_KIND in _copy_characters()
1503 else if (from_kind == PyUnicode_2BYTE_KIND in _copy_characters()
1517 if (from_kind == PyUnicode_2BYTE_KIND in _copy_characters()
1527 else if (from_kind == PyUnicode_4BYTE_KIND in _copy_characters()
[all …]