Lines Matching refs:to_kind
2060 ElementsKind to_kind, Handle<FixedArrayBase> to_elements) { in PrintElementsTransition() argument
2061 if (from_kind != to_kind) { in PrintElementsTransition()
2064 << ElementsKindToString(to_kind) << "] in "; in PrintElementsTransition()
3435 ElementsKind to_kind = old_map->elements_kind(); in ReconfigureProperty() local
3437 if (from_kind != to_kind && to_kind != DICTIONARY_ELEMENTS && in ReconfigureProperty()
3438 to_kind != SLOW_SLOPPY_ARGUMENTS_ELEMENTS && in ReconfigureProperty()
3440 IsMoreGeneralElementsKindTransition(from_kind, to_kind))) { in ReconfigureProperty()
3465 if (from_kind != to_kind) { in ReconfigureProperty()
3466 root_map = Map::AsElementsKind(root_map, to_kind); in ReconfigureProperty()
3913 ElementsKind to_kind = old_map->elements_kind(); in TryUpdate() local
3914 if (from_kind != to_kind) { in TryUpdate()
3916 root_map = root_map->LookupElementsTransitionMap(to_kind); in TryUpdate()
4685 static Map* FindClosestElementsTransition(Map* map, ElementsKind to_kind) { in FindClosestElementsTransition() argument
4689 while (kind != to_kind) { in FindClosestElementsTransition()
4696 DCHECK_EQ(to_kind, current_map->elements_kind()); in FindClosestElementsTransition()
4701 Map* Map::LookupElementsTransitionMap(ElementsKind to_kind) { in LookupElementsTransitionMap() argument
4702 Map* to_map = FindClosestElementsTransition(this, to_kind); in LookupElementsTransitionMap()
4703 if (to_map->elements_kind() == to_kind) return to_map; in LookupElementsTransitionMap()
4734 ElementsKind to_kind) { in AddMissingElementsTransitions() argument
4746 while (kind != to_kind && !IsTerminalElementsKind(kind)) { in AddMissingElementsTransitions()
4755 if (kind != to_kind) { in AddMissingElementsTransitions()
4756 current_map = Map::CopyAsElementsKind(current_map, to_kind, flag); in AddMissingElementsTransitions()
4759 DCHECK(current_map->elements_kind() == to_kind); in AddMissingElementsTransitions()
4765 ElementsKind to_kind) { in TransitionElementsTo() argument
4767 if (from_kind == to_kind) return map; in TransitionElementsTo()
4773 DCHECK_EQ(SLOW_SLOPPY_ARGUMENTS_ELEMENTS, to_kind); in TransitionElementsTo()
4778 DCHECK_EQ(FAST_SLOPPY_ARGUMENTS_ELEMENTS, to_kind); in TransitionElementsTo()
4781 } else if (IsFastElementsKind(from_kind) && IsFastElementsKind(to_kind)) { in TransitionElementsTo()
4788 native_context->get(Context::ArrayMapIndex(to_kind, strength)); in TransitionElementsTo()
4798 to_kind == GetPackedElementsKind(from_kind) && in TransitionElementsTo()
4800 Map::cast(map->GetBackPointer())->elements_kind() == to_kind) { in TransitionElementsTo()
4806 if (IsFastElementsKind(to_kind)) { in TransitionElementsTo()
4809 IsMoreGeneralElementsKindTransition(from_kind, to_kind); in TransitionElementsTo()
4813 return Map::CopyAsElementsKind(map, to_kind, OMIT_TRANSITION); in TransitionElementsTo()
4816 return Map::AsElementsKind(map, to_kind); in TransitionElementsTo()
4833 ElementsKind to_kind) { in GetElementsTransitionMap() argument
4835 return Map::TransitionElementsTo(map, to_kind); in GetElementsTransitionMap()
5133 ElementsKind to_kind = GetMoreGeneralElementsKind(map_kind, obj_kind); in AllocateStorageForMap() local
5135 to_kind = obj_kind; in AllocateStorageForMap()
5137 if (IsDictionaryElementsKind(to_kind)) { in AllocateStorageForMap()
5140 TransitionElementsKind(object, to_kind); in AllocateStorageForMap()
5142 map = Map::AsElementsKind(map, to_kind); in AllocateStorageForMap()
15964 ElementsKind to_kind) { in DigestTransitionFeedback() argument
15973 to_kind = GetHoleyElementsKind(to_kind); in DigestTransitionFeedback()
15975 if (IsMoreGeneralElementsKindTransition(kind, to_kind)) { in DigestTransitionFeedback()
15988 ElementsKindToString(to_kind)); in DigestTransitionFeedback()
15990 JSObject::TransitionElementsKind(transition_info, to_kind); in DigestTransitionFeedback()
15999 to_kind = GetHoleyElementsKind(to_kind); in DigestTransitionFeedback()
16001 if (IsMoreGeneralElementsKindTransition(kind, to_kind)) { in DigestTransitionFeedback()
16006 ElementsKindToString(to_kind)); in DigestTransitionFeedback()
16008 site->SetElementsKind(to_kind); in DigestTransitionFeedback()
16030 ElementsKind to_kind) { in UpdateAllocationSite() argument
16046 AllocationSite::DigestTransitionFeedback(site, to_kind); in UpdateAllocationSite()
16051 ElementsKind to_kind) { in TransitionElementsKind() argument
16055 to_kind = GetHoleyElementsKind(to_kind); in TransitionElementsKind()
16058 if (from_kind == to_kind) return; in TransitionElementsKind()
16062 DCHECK(IsFastElementsKind(to_kind)); in TransitionElementsKind()
16065 UpdateAllocationSite(object, to_kind); in TransitionElementsKind()
16068 IsFastDoubleElementsKind(to_kind)) { in TransitionElementsKind()
16071 Handle<Map> new_map = GetElementsTransitionMap(object, to_kind); in TransitionElementsKind()
16075 PrintElementsTransition(stdout, object, from_kind, elms, to_kind, elms); in TransitionElementsKind()
16079 IsFastDoubleElementsKind(to_kind)) || in TransitionElementsKind()
16081 IsFastObjectElementsKind(to_kind))); in TransitionElementsKind()
16083 ElementsAccessor::ForKind(to_kind)->GrowCapacityAndConvert(object, c); in TransitionElementsKind()
16090 ElementsKind to_kind) { in IsValidElementsTransition() argument
16092 if (!IsMoreGeneralElementsKindTransition(from_kind, to_kind)) { in IsValidElementsTransition()
16098 IsFastHoleyElementsKind(to_kind); in IsValidElementsTransition()