Home
last modified time | relevance | path

Searched refs:layoutInfo (Results 1 – 20 of 20) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Djs_hclass-inl.h47 LayoutInfo *layoutInfo = LayoutInfo::Cast(cachedHClass->GetLayout().GetTaggedObject()); in AddTransitions() local
48 …auto attr = JSHandle<JSTaggedValue>(thread, JSTaggedValue(layoutInfo->GetAttr(last).GetPropertyMet… in AddTransitions()
49 auto lastKey = JSHandle<JSTaggedValue>(thread, layoutInfo->GetKey(last)); in AddTransitions()
80 LayoutInfo *layoutInfo = LayoutInfo::Cast(cachedHClass->GetLayout().GetTaggedObject()); in AddProtoTransitions() local
81 …auto attr = JSHandle<JSTaggedValue>(thread, JSTaggedValue(layoutInfo->GetAttr(last).GetPropertyMet… in AddProtoTransitions()
82 auto lastKey = JSHandle<JSTaggedValue>(thread, layoutInfo->GetKey(last)); in AddProtoTransitions()
104 LayoutInfo *layoutInfo = LayoutInfo::Cast(cachedHClass->GetLayout().GetTaggedObject()); in FindTransitions() local
105 auto attr = layoutInfo->GetAttr(last).GetPropertyMetaData(); in FindTransitions()
106 auto cachedKey = layoutInfo->GetKey(last); in FindTransitions()
156 LayoutInfo *layoutInfo = LayoutInfo::Cast(GetLayout().GetTaggedObject()); in UpdatePropertyMetaData() local
[all …]
Dvtable.cpp26 LayoutInfo *layoutInfo = LayoutInfo::Cast(phcPoint->GetLayout().GetTaggedObject()); in CreateTuple() local
27 JSHandle<JSTaggedValue> name(thread, layoutInfo->GetKey(propIndex)); in CreateTuple()
31 PropertyAttributes attr = layoutInfo->GetAttr(propIndex); in CreateTuple()
41 …int entry = layoutInfo->FindElementWithCache(thread, phcPoint, name.GetTaggedValue(), propsNumber); in CreateTuple()
Dobject_fast_operator-inl.h141 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in GetPropertyByName() local
142 PropertyAttributes attr(layoutInfo->GetAttr(entry)); in GetPropertyByName()
213 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in SetPropertyByName() local
214 PropertyAttributes attr(layoutInfo->GetAttr(entry)); in SetPropertyByName()
Djs_hclass.cpp1144 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in DumpForChildHClass() local
1145 layoutInfo->DumpFieldIndex(last, desc); in DumpForChildHClass()
1157 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in UpdateChildLayoutDesc() local
1158 return layoutInfo->UpdateFieldIndex(last, childDesc); in UpdateChildLayoutDesc()
Djs_object.cpp330 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in IsArrayLengthWritable() local
331 PropertyAttributes attr(layoutInfo->GetAttr(JSArray::LENGTH_INLINE_PROPERTY_INDEX)); in IsArrayLengthWritable()
2124 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in ToPropertyDescriptorFast() local
2127 auto attr = layoutInfo->GetAttr(i); in ToPropertyDescriptorFast()
2131 auto key = layoutInfo->GetKey(i); in ToPropertyDescriptorFast()
2598 LayoutInfo *layoutInfo = LayoutInfo::Cast(oldHC->GetLayout().GetTaggedObject()); in CreateObjectFromProperties() local
2601 auto attr = layoutInfo->GetAttr(i); in CreateObjectFromProperties()
2603 layoutInfo->SetNormalAttr(thread, i, attr); in CreateObjectFromProperties()
Dobject_operator.cpp549 LayoutInfo *layoutInfo = LayoutInfo::Cast(attrs.GetTaggedObject()); in LookupPropertyInlinedProps() local
550 PropertyAttributes attr(layoutInfo->GetAttr(entry)); in LookupPropertyInlinedProps()
Ddump.cpp1547 LayoutInfo *layoutInfo = LayoutInfo::Cast(attrs.GetTaggedObject()); in Dump() local
1551 JSTaggedValue key = layoutInfo->GetKey(i); in Dump()
1552 PropertyAttributes attr = layoutInfo->GetAttr(i); in Dump()
3791 LayoutInfo *layoutInfo = LayoutInfo::Cast(attrs.GetTaggedObject()); in Dump() local
3795 JSTaggedValue key = layoutInfo->GetKey(i); in Dump()
3796 PropertyAttributes attr = layoutInfo->GetAttr(i); in Dump()
4694 LayoutInfo *layoutInfo = LayoutInfo::Cast(attrs.GetTaggedObject()); in DumpForSnapshot() local
4698 JSTaggedValue key = layoutInfo->GetKey(i); in DumpForSnapshot()
4699 PropertyAttributes attr = layoutInfo->GetAttr(i); in DumpForSnapshot()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dbuiltins_object_stub_builder.h42 GateRef GetNumKeysFromLayoutInfo(GateRef object, GateRef end, GateRef layoutInfo);
43 GateRef IsUninitializedProperty(GateRef object, GateRef index, GateRef layoutInfo);
48 …InfoGetAllEnumKeys(GateRef end, GateRef offset, GateRef array, GateRef object, GateRef layoutInfo);
Dbuiltins_object_stub_builder.cpp818 …uiltinsObjectStubBuilder::GetNumKeysFromLayoutInfo(GateRef object, GateRef end, GateRef layoutInfo) in GetNumKeysFromLayoutInfo() argument
839 GateRef key = GetKey(layoutInfo, *i); in GetNumKeysFromLayoutInfo()
842 Branch(IsUninitializedProperty(object, *i, layoutInfo), &loopEnd, &initializedProp); in GetNumKeysFromLayoutInfo()
844 Branch(IsEnumerable(GetAttr(layoutInfo, *i)), &isEnumerable, &loopEnd); in GetNumKeysFromLayoutInfo()
859 …iltinsObjectStubBuilder::IsUninitializedProperty(GateRef object, GateRef index, GateRef layoutInfo) in IsUninitializedProperty() argument
869 GateRef attr = GetAttr(layoutInfo, index); in IsUninitializedProperty()
954 … GateRef array, GateRef object, GateRef layoutInfo) in LayoutInfoGetAllEnumKeys() argument
974 GateRef key = GetKey(layoutInfo, *i); in LayoutInfoGetAllEnumKeys()
975 …Branch(BoolAnd(TaggedIsString(key), IsEnumerable(GetAttr(layoutInfo, *i))), &isEnumerable, &loopEn… in LayoutInfoGetAllEnumKeys()
977 Branch(IsUninitializedProperty(object, *i, layoutInfo), &loopEnd, &initializedProp); in LayoutInfoGetAllEnumKeys()
/arkcompiler/ets_runtime/ecmascript/base/
Dfast_json_stringifier.cpp505 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in TryCacheSerializeKeys() local
507 PropertyAttributes attr(layoutInfo->GetAttr(index)); in TryCacheSerializeKeys()
531 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in TryCacheSerializeKeys() local
532 JSTaggedValue key = layoutInfo->GetKey(i); in TryCacheSerializeKeys()
533 if (key.IsString() && layoutInfo->GetAttr(i).IsEnumerable()) { in TryCacheSerializeKeys()
537 PropertyAttributes attr(layoutInfo->GetAttr(index)); in TryCacheSerializeKeys()
633 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in SerializeKeysWithCache() local
634 PropertyAttributes attr(layoutInfo->GetAttr(index)); in SerializeKeysWithCache()
790 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in DefaultSerializeKeys() local
792 PropertyAttributes attr(layoutInfo->GetAttr(index)); in DefaultSerializeKeys()
[all …]
Djson_stringifier.cpp658 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in SerializeKeys() local
660 PropertyAttributes attr(layoutInfo->GetAttr(index)); in SerializeKeys()
684 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in SerializeKeys() local
685 JSTaggedValue key = layoutInfo->GetKey(i); in SerializeKeys()
687 if (key.IsString() && layoutInfo->GetAttr(i).IsEnumerable()) { in SerializeKeys()
691 PropertyAttributes attr(layoutInfo->GetAttr(index)); in SerializeKeys()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_lazy_callback.cpp229 LayoutInfo *layoutInfo = LayoutInfo::Cast(hclass->GetLayout().GetTaggedObject()); in ITERATE_INTL() local
231 … int entry = layoutInfo->FindElementWithCache(thread, hclass, key.GetTaggedValue(), propsNumber); in ITERATE_INTL()
233 PropertyAttributes attr(layoutInfo->GetAttr(entry)); in ITERATE_INTL()
235 layoutInfo->SetNormalAttr(thread, entry, attr); in ITERATE_INTL()
/arkcompiler/ets_runtime/ecmascript/ts_types/
Dts_type_table_generator.cpp131 JSHandle<TSObjLayoutInfo> layoutInfo(thread_, iteratorResultType->GetObjLayoutInfo()); in InitRuntimeTypeTable() local
132 FillLayoutTypes(layoutInfo, prop, propType); in InitRuntimeTypeTable()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_hclass_test.cpp420 LayoutInfo *layoutInfo = LayoutInfo::Cast(objClass->GetLayout().GetTaggedObject()); in HWTEST_F_L0() local
421 …EXPECT_EQ(layoutInfo->GetAttr(oldAttr.GetOffset()).GetPropertyMetaData(), newAttr.GetPropertyMetaD… in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_manager.cpp225 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in GetValueFromExportObject() local
226 PropertyAttributes attr = layoutInfo->GetAttr(index); in GetValueFromExportObject()
Djs_module_source_text.cpp199 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in ResolveExportObject() local
200 if (layoutInfo->NumberOfElements() != 0) { in ResolveExportObject()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dstub_builder.h510 GateRef FindElementWithCache(GateRef glue, GateRef layoutInfo, GateRef hClass,
799 inline GateRef GetAttr(GateRef layoutInfo, GateRef index);
800 inline GateRef GetKey(GateRef layoutInfo, GateRef index);
Dstub_builder-inl.h3083 inline GateRef StubBuilder::GetAttr(GateRef layoutInfo, GateRef index) in GetAttr() argument
3086 return GetInt32OfTInt(GetValueFromTaggedArray(layoutInfo, fixedIdx)); in GetAttr()
3089 inline GateRef StubBuilder::GetKey(GateRef layoutInfo, GateRef index) in GetKey() argument
3092 return GetValueFromTaggedArray(layoutInfo, fixedIdx); in GetKey()
Dstub_builder.cpp179 GateRef StubBuilder::FindElementWithCache(GateRef glue, GateRef layoutInfo, GateRef hclass, in FindElementWithCache() argument
206 GateRef elementAddr = GetPropertiesAddrFromLayoutInfo(layoutInfo); in FindElementWithCache()
3230 GateRef layoutInfo = GetLayoutFromHClass(hclass); in IsArrayLengthWritable() local
3231 …GateRef propAttr = GetPropAttrFromLayoutInfo(layoutInfo, Int32(JSArray::LENGTH_INLINE_PROPERTY_IND… in IsArrayLengthWritable()
3264 GateRef layoutInfo = GetLayoutFromHClass(transitionHClass); in FindTransitions() local
3265 GateRef cachedKey = GetKeyFromLayoutInfo(layoutInfo, last); in FindTransitions()
3266 GateRef cachedAttr = GetInt32OfTInt(GetPropAttrFromLayoutInfo(layoutInfo, last)); in FindTransitions()
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs.cpp2757 auto layoutInfo = LayoutInfo::Cast(cls->GetLayout().GetTaggedObject()); in FindElementWithCache() local
2761 index = layoutInfo->BinarySearch(propKey, num); in FindElementWithCache()