Home
last modified time | relevance | path

Searched refs:layoutInfo (Results 1 - 22 of 22) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
H A Djs_hclass-inl.h61 LayoutInfo* layoutInfo = LayoutInfo::Cast(cachedHClass->GetLayout().GetTaggedObject()); in AddTransitions() local
63 JSTaggedValue(layoutInfo->GetAttr(last).GetPropertyMetaData())); in AddTransitions()
64 auto lastKey = JSHandle<JSTaggedValue>(thread, layoutInfo->GetKey(last)); in AddTransitions()
99 LayoutInfo* layoutInfo = LayoutInfo::Cast(cachedHClass->GetLayout().GetTaggedObject()); in AddProtoTransitions() local
101 JSTaggedValue(layoutInfo->GetAttr(last).GetPropertyMetaData())); in AddProtoTransitions()
102 auto lastKey = JSHandle<JSTaggedValue>(thread, layoutInfo->GetKey(last)); in AddProtoTransitions()
129 LayoutInfo *layoutInfo = LayoutInfo::Cast(cachedHClass->GetLayout().GetTaggedObject()); in FindTransitions() local
130 auto lastMetaData = layoutInfo->GetAttr(last).GetPropertyMetaData(); in FindTransitions()
131 auto lastKey = layoutInfo->GetKey(last); in FindTransitions()
191 LayoutInfo *layoutInfo in CheckHClassForRep() local
211 LayoutInfo *layoutInfo = LayoutInfo::Cast(GetLayout().GetTaggedObject()); UpdatePropertyMetaData() local
[all...]
H A Dvtable.cpp25 LayoutInfo *layoutInfo = LayoutInfo::Cast(phcPoint->GetLayout().GetTaggedObject()); in CreateTuple() local
26 JSHandle<JSTaggedValue> name(thread, layoutInfo->GetKey(propIndex)); in CreateTuple()
30 PropertyAttributes attr = layoutInfo->GetAttr(propIndex); in CreateTuple()
40 int entry = layoutInfo->FindElementWithCache(thread, phcPoint, name.GetTaggedValue(), propsNumber); in CreateTuple()
H A Dobject_fast_operator-inl.h232 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in TryGetPropertyByNameThroughCacheAtLocal() local
233 PropertyAttributes attr(layoutInfo->GetAttr(entry)); in TryGetPropertyByNameThroughCacheAtLocal()
294 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in GetPropertyByName() local
295 PropertyAttributes attr(layoutInfo->GetAttr(entry)); in GetPropertyByName()
355 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in TrySetPropertyByNameThroughCacheAtLocal() local
356 PropertyAttributes attr(layoutInfo->GetAttr(entry)); in TrySetPropertyByNameThroughCacheAtLocal()
438 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in SetPropertyByName() local
439 PropertyAttributes attr(layoutInfo->GetAttr(entry)); in SetPropertyByName()
1247 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in FastGetPropertyByPorpsIndex() local
1248 PropertyAttributes attr = layoutInfo in FastGetPropertyByPorpsIndex()
[all...]
H A Djs_object.cpp367 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in IsArrayLengthWritable() local
368 PropertyAttributes attr(layoutInfo->GetAttr(JSArray::LENGTH_INLINE_PROPERTY_INDEX)); in IsArrayLengthWritable()
1889 JSHandle<LayoutInfo> layoutInfo(thread, hclass->GetLayout()); in FreezeSharedObject()
1892 JSTaggedValue key = layoutInfo->GetKey(i); in FreezeSharedObject()
1893 PropertyAttributes attr = layoutInfo->GetAttr(i); in FreezeSharedObject()
2276 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in ToPropertyDescriptorFast() local
2279 auto attr = layoutInfo->GetAttr(i); in ToPropertyDescriptorFast()
2283 auto key = layoutInfo->GetKey(i); in ToPropertyDescriptorFast()
2770 LayoutInfo *layoutInfo = LayoutInfo::Cast(oldHC->GetLayout().GetTaggedObject()); in CreateObjectFromProperties() local
2773 auto attr = layoutInfo in CreateObjectFromProperties()
[all...]
H A Djs_hclass.cpp1394 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in DumpChildHClassByPGO() local
1395 layoutInfo->DumpFieldIndexByPGO(last, desc); in DumpChildHClassByPGO()
1409 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in UpdateChildLayoutDescByPGO() local
1410 return layoutInfo->UpdateFieldIndexByPGO(last, childDesc); in UpdateChildLayoutDescByPGO()
H A Dobject_operator.cpp566 LayoutInfo *layoutInfo = LayoutInfo::Cast(attrs.GetTaggedObject()); in LookupPropertyInlinedProps() local
567 PropertyAttributes attr(layoutInfo->GetAttr(entry)); in LookupPropertyInlinedProps()
H A Ddump.cpp1589 LayoutInfo *layoutInfo = LayoutInfo::Cast(attrs.GetTaggedObject()); in Dump() local
1593 JSTaggedValue key = layoutInfo->GetKey(i); in Dump()
1594 PropertyAttributes attr = layoutInfo->GetAttr(i); in Dump()
3821 LayoutInfo *layoutInfo = LayoutInfo::Cast(attrs.GetTaggedObject()); in Dump() local
3825 JSTaggedValue key = layoutInfo->GetKey(i); in Dump()
3826 PropertyAttributes attr = layoutInfo->GetAttr(i); in Dump()
4759 LayoutInfo *layoutInfo = LayoutInfo::Cast(attrs.GetTaggedObject()); in DumpForSnapshot() local
4763 JSTaggedValue key = layoutInfo->GetKey(i); in DumpForSnapshot()
4764 PropertyAttributes attr = layoutInfo->GetAttr(i); in DumpForSnapshot()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
H A Dbuiltins_object_stub_builder.h45 GateRef GetNumKeysFromLayoutInfo(GateRef object, GateRef end, GateRef layoutInfo);
46 GateRef IsUninitializedProperty(GateRef object, GateRef index, GateRef layoutInfo);
58 void LayoutInfoGetAllEnumKeys(GateRef end, GateRef offset, GateRef array, GateRef object, GateRef layoutInfo);
H A Dbuiltins_object_stub_builder.cpp732 // int entry = layoutInfo->FindElementWithCache(thread, hclass, key, propsNumber) in HasOwnProperty()
763 GateRef BuiltinsObjectStubBuilder::GetNumKeysFromLayoutInfo(GateRef object, GateRef end, GateRef layoutInfo) in GetNumKeysFromLayoutInfo() argument
784 GateRef key = GetKey(layoutInfo, *i); in GetNumKeysFromLayoutInfo()
787 BRANCH(IsUninitializedProperty(object, *i, layoutInfo), &loopEnd, &initializedProp); in GetNumKeysFromLayoutInfo()
789 BRANCH(IsEnumerable(GetAttr(layoutInfo, *i)), &isEnumerable, &loopEnd); in GetNumKeysFromLayoutInfo()
804 GateRef BuiltinsObjectStubBuilder::IsUninitializedProperty(GateRef object, GateRef index, GateRef layoutInfo) in IsUninitializedProperty() argument
814 GateRef attr = GetAttr(layoutInfo, index); in IsUninitializedProperty()
899 GateRef array, GateRef object, GateRef layoutInfo) in LayoutInfoGetAllEnumKeys()
919 GateRef key = GetKey(layoutInfo, *i); in LayoutInfoGetAllEnumKeys()
921 BRANCH(LogicAndBuilder(env).And(TaggedIsString(key)).And(IsEnumerable(GetAttr(layoutInfo, iVa in LayoutInfoGetAllEnumKeys()
898 LayoutInfoGetAllEnumKeys(GateRef end, GateRef offset, GateRef array, GateRef object, GateRef layoutInfo) LayoutInfoGetAllEnumKeys() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/tests/
H A Djs_shared_array_test.cpp203 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in HWTEST_F_L0() local
204 PropertyAttributes attr(layoutInfo->GetAttr(JSArray::LENGTH_INLINE_PROPERTY_INDEX)); in HWTEST_F_L0()
206 layoutInfo->SetNormalAttr(thread, 0, attr); in HWTEST_F_L0()
228 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in HWTEST_F_L0() local
229 PropertyAttributes attr(layoutInfo->GetAttr(JSArray::LENGTH_INLINE_PROPERTY_INDEX)); in HWTEST_F_L0()
231 layoutInfo->SetNormalAttr(thread, 0, attr); in HWTEST_F_L0()
H A Djs_hclass_test.cpp197 // empty layoutInfo in HWTEST_F_L0()
234 // not empty layoutInfo in HWTEST_F_L0()
261 // empty layoutInfo in HWTEST_F_L0()
418 LayoutInfo *layoutInfo = LayoutInfo::Cast(objClass->GetLayout().GetTaggedObject()); in HWTEST_F_L0() local
419 EXPECT_EQ(layoutInfo->GetAttr(oldAttr.GetOffset()).GetPropertyMetaData(), newAttr.GetPropertyMetaData()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/base/
H A Dfast_json_stringifier.cpp511 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in TryCacheSerializeKeysFromPropertiesArray() local
512 JSTaggedValue key = layoutInfo->GetKey(i); in TryCacheSerializeKeysFromPropertiesArray()
513 if (key.IsString() && layoutInfo->GetAttr(i).IsEnumerable()) { in TryCacheSerializeKeysFromPropertiesArray()
517 PropertyAttributes attr(layoutInfo->GetAttr(index)); in TryCacheSerializeKeysFromPropertiesArray()
552 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in TryCacheSerializeKeysFromEnumCache() local
554 PropertyAttributes attr(layoutInfo->GetAttr(index)); in TryCacheSerializeKeysFromEnumCache()
658 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in SerializeKeysWithCache() local
659 PropertyAttributes attr(layoutInfo->GetAttr(index)); in SerializeKeysWithCache()
841 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in SerializeKeysFromLayout() local
842 JSTaggedValue key = layoutInfo in SerializeKeysFromLayout()
931 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); SerializeKeyValue() local
[all...]
H A Djson_stringifier.cpp684 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in SerializeKeys() local
686 PropertyAttributes attr(layoutInfo->GetAttr(index)); in SerializeKeys()
739 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in SerializeKeys() local
740 JSTaggedValue key = layoutInfo->GetKey(i); in SerializeKeys()
742 if (key.IsString() && layoutInfo->GetAttr(i).IsEnumerable()) { in SerializeKeys()
746 PropertyAttributes attr(layoutInfo->GetAttr(index)); in SerializeKeys()
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_lazy_callback.cpp227 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in ResetLazyInternalAttr() local
229 int entry = layoutInfo->FindElementWithCache(thread, hclass, key.GetTaggedValue(), propsNumber); in ResetLazyInternalAttr()
231 PropertyAttributes attr(layoutInfo->GetAttr(entry)); in ResetLazyInternalAttr()
233 layoutInfo->SetNormalAttr(thread, entry, attr); in ResetLazyInternalAttr()
/arkcompiler/ets_runtime/ecmascript/compiler/pgo_type/
H A Dpgo_type_manager.cpp74 LayoutInfo* layoutInfo = LayoutInfo::GetLayoutInfoFromHClass(hclass); in GetSymbolCountFromHClassData() local
77 JSTaggedValue key = layoutInfo->GetKey(i); in GetSymbolCountFromHClassData()
104 LayoutInfo* layoutInfo = LayoutInfo::GetLayoutInfoFromHClass(hclass); in GenSymbolInfo() local
107 JSTaggedValue symbol = layoutInfo->GetKey(i); in GenSymbolInfo()
/arkcompiler/ets_runtime/ecmascript/base/tests/
H A Djson_parser_test.cpp76 auto *layoutInfo = LayoutInfo::Cast(layoutValue.GetTaggedObject()); in CheckSendableProps() local
81 auto attr = layoutInfo->GetAttr(idx); in CheckSendableProps()
H A Dason_test.cpp68 auto *layoutInfo = LayoutInfo::Cast(layoutValue.GetTaggedObject()); in CheckSendableProps() local
73 auto attr = layoutInfo->GetAttr(idx); in CheckSendableProps()
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dstub_builder.h616 GateRef FindElementWithCache(GateRef glue, GateRef layoutInfo, GateRef hClass,
988 inline GateRef GetAttr(GateRef layoutInfo, GateRef index);
989 inline GateRef GetKey(GateRef layoutInfo, GateRef index);
1015 inline GateRef GetSortedKey(GateRef layoutInfo, GateRef index);
1016 inline GateRef GetSortedIndex(GateRef layoutInfo, GateRef index);
1021 GateRef BinarySearch(GateRef glue, GateRef layoutInfo, GateRef key, GateRef propsNum,
H A Dstub_builder-inl.h3780 inline GateRef StubBuilder::GetAttr(GateRef layoutInfo, GateRef index) in GetAttr() argument
3783 return GetInt64OfTInt(GetValueFromTaggedArray(layoutInfo, fixedIdx)); in GetAttr()
3786 inline GateRef StubBuilder::GetKey(GateRef layoutInfo, GateRef index) in GetKey() argument
3789 return GetValueFromTaggedArray(layoutInfo, fixedIdx); in GetKey()
3857 inline GateRef StubBuilder::GetSortedKey(GateRef layoutInfo, GateRef index) in GetSortedKey() argument
3859 GateRef fixedIdx = GetSortedIndex(layoutInfo, index); in GetSortedKey()
3860 return GetKey(layoutInfo, fixedIdx); in GetSortedKey()
3863 inline GateRef StubBuilder::GetSortedIndex(GateRef layoutInfo, GateRef index) in GetSortedIndex() argument
3865 return GetSortedIndex(GetAttr(layoutInfo, index)); in GetSortedIndex()
H A Dstub_builder.cpp302 GateRef StubBuilder::FindElementWithCache(GateRef glue, GateRef layoutInfo, GateRef hclass, in FindElementWithCache() argument
320 GateRef elementAddr = GetPropertiesAddrFromLayoutInfo(layoutInfo); in FindElementWithCache()
357 result = BinarySearch(glue, layoutInfo, key, propsNum, hir); in FindElementWithCache()
403 GateRef StubBuilder::BinarySearch(GateRef glue, GateRef layoutInfo, GateRef key, GateRef propsNum, GateRef hir) in BinarySearch() argument
410 GateRef elements = GetExtractLengthOfTaggedArray(layoutInfo); in BinarySearch()
430 GateRef midKey = GetSortedKey(layoutInfo, *mid); in BinarySearch()
450 DEFVARIABLE(sortIndex, VariableType::INT32(), GetSortedIndex(layoutInfo, *mid)); in BinarySearch()
480 sortIndex = GetSortedIndex(layoutInfo, *midLeft); in BinarySearch()
481 currentKey = GetKey(layoutInfo, *sortIndex); in BinarySearch()
518 sortIndex = GetSortedIndex(layoutInfo, *midRigh in BinarySearch()
4076 GateRef layoutInfo = GetLayoutFromHClass(hclass); IsArrayLengthWritable() local
4100 GateRef layoutInfo = GetLayoutFromHClass(hclass); CheckHClassForRep() local
4166 GateRef layoutInfo = GetLayoutFromHClass(transitionHClass); FindTransitions() local
[all...]
/arkcompiler/ets_runtime/ecmascript/module/
H A Djs_module_source_text.cpp183 // Get layoutInfo and compare the input and output names of files in ResolveExportObject()
184 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in ResolveExportObject() local
185 if (layoutInfo->NumberOfElements() != 0) { in ResolveExportObject()
/arkcompiler/ets_runtime/ecmascript/stubs/
H A Druntime_stubs.cpp3126 auto layoutInfo = LayoutInfo::Cast(cls->GetLayout().GetTaggedObject()); in FindElementWithCache() local
3130 index = layoutInfo->BinarySearch(propKey, num); in FindElementWithCache()

Completed in 70 milliseconds