Home
last modified time | relevance | path

Searched refs:jsHclass (Results 1 - 19 of 19) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/ic/
H A Dproperties_cache.h30 inline int Get(JSHClass *jsHclass, JSTaggedValue key) in Get() argument
32 int hash = Hash(jsHclass, key); in Get()
34 if ((prop.hclass_ == jsHclass) && (prop.key_ == key)) { in Get()
39 inline void Set(JSHClass *jsHclass, JSTaggedValue key, int index) in Set() argument
41 int hash = Hash(jsHclass, key); in Set()
43 prop.hclass_ = jsHclass; in Set()
/arkcompiler/ets_runtime/ecmascript/base/
H A Dfast_json_stringifier.cpp144 JSHClass *jsHclass = tagValue.GetTaggedObject()->GetClass(); in SerializeJSONProperty() local
145 if (UNLIKELY(jsHclass->IsJSProxy() && in SerializeJSONProperty()
252 JSHClass *jsHclass = value->GetTaggedObject()->GetClass(); in SerializeJSONObject() local
253 int32_t index = FindCache(jsHclass, numOfKeys + numOfElements); in SerializeJSONObject()
499 JSHandle<JSHClass> jsHclass(thread_, obj->GetJSHClass()); in TryCacheSerializeKeysFromPropertiesArray()
500 JSTaggedValue enumCache = jsHclass->GetEnumCache(); in TryCacheSerializeKeysFromPropertiesArray()
505 int end = static_cast<int>(jsHclass->NumberOfProps()); in TryCacheSerializeKeysFromPropertiesArray()
511 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in TryCacheSerializeKeysFromPropertiesArray()
516 int index = JSHClass::FindPropertyEntry(thread_, *jsHclass, key); in TryCacheSerializeKeysFromPropertiesArray()
521 : propertiesArr->Get(static_cast<uint32_t>(index) - jsHclass in TryCacheSerializeKeysFromPropertiesArray()
833 SerializeKeysFromLayout(const JSHandle<JSObject> &obj, const JSHandle<JSHClass> &jsHclass, const JSHandle<TaggedArray> &propertiesArr, bool hasContent) SerializeKeysFromLayout() argument
[all...]
H A Djson_stringifier.cpp330 JSHClass *jsHclass = tagValue.GetTaggedObject()->GetClass(); in SerializeJSONProperty() local
331 if (UNLIKELY(jsHclass->IsJSProxy() && in SerializeJSONProperty()
671 JSHandle<JSHClass> jsHclass(thread_, obj->GetJSHClass()); in SerializeKeys()
672 JSTaggedValue enumCache = jsHclass->GetEnumCache(); in SerializeKeys()
684 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in SerializeKeys()
685 int index = JSHClass::FindPropertyEntry(thread_, *jsHclass, key); in SerializeKeys()
690 : propertiesArr->Get(static_cast<uint32_t>(index) - jsHclass->GetInlinedProperties()); in SerializeKeys()
734 int end = static_cast<int>(jsHclass->NumberOfProps()); in SerializeKeys()
739 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in SerializeKeys()
745 int index = JSHClass::FindPropertyEntry(thread_, *jsHclass, ke in SerializeKeys()
[all...]
H A Dfast_json_stringifier.h82 bool SerializeKeysFromLayout(const JSHandle<JSObject> &obj, const JSHandle<JSHClass> &jsHclass,
/arkcompiler/ets_runtime/ecmascript/mem/
H A Dparallel_marker.cpp147 JSHClass *jsHclass = obj->SynchronizedGetClass(); in ProcessMarkStack() local
149 auto size = jsHclass->SizeFromJSHClass(obj); in ProcessMarkStack()
151 MarkObject(threadId, jsHclass); in ProcessMarkStack()
152 ObjectXRay::VisitObjectBody<VisitType::OLD_GC_VISIT>(obj, jsHclass, visitor); in ProcessMarkStack()
183 JSHClass *jsHclass = obj->GetClass(); in ProcessIncrementalMarkStack() local
185 auto size = jsHclass->SizeFromJSHClass(obj); in ProcessIncrementalMarkStack()
187 MarkObject(threadId, jsHclass); in ProcessIncrementalMarkStack()
188 ObjectXRay::VisitObjectBody<VisitType::OLD_GC_VISIT>(obj, jsHclass, visitor); in ProcessIncrementalMarkStack()
223 auto jsHclass = obj->GetClass(); in ProcessMarkStack() local
224 ObjectXRay::VisitObjectBody<VisitType::SEMI_GC_VISIT>(obj, jsHclass, visito in ProcessMarkStack()
[all...]
H A Dverification.cpp92 auto jsHclass = obj->GetClass(); in VisitAllObjects() local
94 obj, jsHclass, [this](TaggedObject *root, ObjectSlot start, ObjectSlot end, in VisitAllObjects()
562 auto jsHclass = obj->GetClass(); in VerifyMark()
590 obj, jsHclass, [f](TaggedObject *root, ObjectSlot start, ObjectSlot end, in VerifyMark()
612 auto jsHclass = obj->GetClass(); in VerifyMark()
641 obj, jsHclass, [f](TaggedObject *root, ObjectSlot start, ObjectSlot end, in VerifyMark()
674 auto jsHclass = obj->GetClass(); in VerifySweep()
702 obj, jsHclass, [f](TaggedObject *root, ObjectSlot start, ObjectSlot end, in VerifySweep()
724 auto jsHclass = obj->GetClass(); in VerifySweep()
754 obj, jsHclass, [ in VerifySweep()
[all...]
/arkcompiler/ets_runtime/ecmascript/
H A Dproperty_accessor.cpp133 JSHClass *jsHclass = receiverObj->GetJSHClass(); in InitSimplePropertiesEnumCache() local
134 jsHclass->SetEnumCache(thread_, keyArray.GetTaggedValue()); in InitSimplePropertiesEnumCache()
136 cachedHclass_.Update(JSTaggedValue(jsHclass)); in InitSimplePropertiesEnumCache()
182 JSHandle<JSHClass> jsHclass(thread_, receiverObj->GetJSHClass()); in TryInitEnumCacheWithProtoChainInfo()
183 jsHclass->SetEnumCache(thread_, fastKeysArray_.GetTaggedValue()); in TryInitEnumCacheWithProtoChainInfo()
186 cachedHclass_.Update(jsHclass); in TryInitEnumCacheWithProtoChainInfo()
187 JSHClass::EnableProtoChangeMarker(thread_, jsHclass); in TryInitEnumCacheWithProtoChainInfo()
H A Djs_object.cpp559 JSHClass *jsHclass = obj->GetJSHClass(); in GetAllEnumKeys() local
560 JSTaggedValue enumCache = jsHclass->GetEnumCache(); in GetAllEnumKeys()
569 int end = static_cast<int>(jsHclass->NumberOfProps()); in GetAllEnumKeys()
571 LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()) in GetAllEnumKeys()
574 if (!JSTaggedValue(jsHclass).IsInSharedHeap()) { in GetAllEnumKeys()
575 jsHclass->SetEnumCache(thread, keyArray.GetTaggedValue()); in GetAllEnumKeys()
595 JSHClass *jsHclass = obj->GetJSHClass(); in GetAllEnumKeys() local
596 int end = static_cast<int>(jsHclass->NumberOfProps()); in GetAllEnumKeys()
598 LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()) in GetAllEnumKeys()
1664 JSHClass *jsHclass in CollectEnumKeysAlongProtoChain() local
[all...]
H A Djs_tagged_value-inl.h674 JSHClass *jsHclass = GetTaggedObject()->GetClass(); in IsArray() local
675 if (jsHclass->IsJSArray()) { in IsArray()
679 if (jsHclass->IsJSProxy()) { in IsArray()
H A Dobject_fast_operator-inl.h1246 JSHClass *jsHclass = obj->GetJSHClass(); in FastGetPropertyByPorpsIndex() local
1247 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in FastGetPropertyByPorpsIndex()
1249 value = obj->GetProperty(jsHclass, attr); in FastGetPropertyByPorpsIndex()
H A Ddump.cpp679 auto jsHclass = obj->GetClass(); in DumpObject() local
680 JSType type = jsHclass->GetObjectType(); in DumpObject()
1255 DumpHClass(jsHclass, os, false); in DumpObject()
3953 auto jsHclass = obj->GetClass(); in DumpObject() local
3954 JSType type = jsHclass->GetObjectType(); in DumpObject()
3955 vec.emplace_back("hclass", JSTaggedValue(jsHclass)); in DumpObject()
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dhcr_circuit_builder.cpp587 GateRef jsHclass = LoadHClass(obj); in IsStabelArray() local
588 BRANCH_CIR2(IsStableArray(jsHclass), &targetIsStableArray, &exit); in IsStabelArray()
694 GateRef jsHclass = LoadHClass(obj); in SetExtensibleToBitfield() local
695 GateRef bitfield = Load(VariableType::INT32(), jsHclass, IntPtr(JSHClass::BIT_FIELD_OFFSET)); in SetExtensibleToBitfield()
701 Store(VariableType::INT32(), glue, jsHclass, IntPtr(JSHClass::BIT_FIELD_OFFSET), bitfield); in SetExtensibleToBitfield() local
H A Dstub_builder-inl.h3613 inline void StubBuilder::SetElementsKindToJSHClass(GateRef glue, GateRef jsHclass, GateRef elementsKind) in SetElementsKindToJSHClass() argument
3615 GateRef bitfield = Load(VariableType::INT32(), jsHclass, IntPtr(JSHClass::BIT_FIELD_OFFSET)); in SetElementsKindToJSHClass()
3619 Store(VariableType::INT32(), glue, jsHclass, IntPtr(JSHClass::BIT_FIELD_OFFSET), bitfield); in SetElementsKindToJSHClass() local
3624 GateRef jsHclass = LoadHClass(obj); in SetExtensibleToBitfield() local
3625 GateRef bitfield = Load(VariableType::INT32(), jsHclass, IntPtr(JSHClass::BIT_FIELD_OFFSET)); in SetExtensibleToBitfield()
3631 Store(VariableType::INT32(), glue, jsHclass, IntPtr(JSHClass::BIT_FIELD_OFFSET), bitfield); in SetExtensibleToBitfield() local
3636 GateRef jsHclass = LoadHClass(obj); in SetCallableToBitfield() local
3637 GateRef bitfield = Load(VariableType::INT32(), jsHclass, IntPtr(JSHClass::BIT_FIELD_OFFSET)); in SetCallableToBitfield()
3643 Store(VariableType::INT32(), glue, jsHclass, IntPtr(JSHClass::BIT_FIELD_OFFSET), bitfield); in SetCallableToBitfield() local
H A Dstub_builder.cpp9017 GateRef jsHclass = LoadHClass(obj); in HasStableElements() local
9018 BRANCH(IsStableElements(jsHclass), &targetIsStableElements, &exit); in HasStableElements()
9046 GateRef jsHclass = LoadHClass(obj); in IsStableJSArguments() local
9047 BRANCH(IsStableArguments(jsHclass), &targetIsStableArguments, &exit); in IsStableJSArguments()
9075 GateRef jsHclass = LoadHClass(obj); in IsStableJSArray() local
9076 BRANCH(IsStableArray(jsHclass), &targetIsStableArray, &exit); in IsStableJSArray()
H A Dstub_builder.h850 void SetElementsKindToJSHClass(GateRef glue, GateRef jsHclass, GateRef elementsKind);
/arkcompiler/ets_runtime/ecmascript/tests/
H A Dtagged_value_test.cpp855 JSHClass *jsHclass = jsFunction->GetJSHClass(); in HWTEST_F_L0() local
856 jsHclass->SetCallable(true); in HWTEST_F_L0()
858 jsHclass->SetCallable(false); in HWTEST_F_L0()
860 jsHclass->SetConstructor(true); in HWTEST_F_L0()
862 jsHclass->SetConstructor(false); in HWTEST_F_L0()
864 jsHclass->SetExtensible(true); in HWTEST_F_L0()
866 jsHclass->SetExtensible(false); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/
H A Dheap_snapshot.cpp1090 auto jsHclass = object->GetClass(); in FillEdgesForBinMod() local
1091 if (jsHclass->IsJsGlobalEnv() || jsHclass->IsString()) { in FillEdgesForBinMod()
1092 referenceResources.emplace_back("hclass", JSTaggedValue(jsHclass)); in FillEdgesForBinMod()
/arkcompiler/ets_runtime/ecmascript/module/
H A Djs_module_source_text.cpp182 JSHandle<JSHClass> jsHclass(thread, exportObject->GetJSHClass()); in ResolveExportObject()
184 LayoutInfo *layoutInfo = LayoutInfo::Cast(jsHclass->GetLayout().GetTaggedObject()); in ResolveExportObject()
186 resolution = ResolveElementOfObject(thread, jsHclass, exportName, module); in ResolveExportObject()
/arkcompiler/ets_runtime/ecmascript/module/tests/
H A Decma_module_test.cpp2380 JSHandle<JSHClass> jsHclass(thread, obj->GetJSHClass()); in HWTEST_F_L0()
2382 jsHclass->SetLayout(thread, layout); in HWTEST_F_L0()

Completed in 70 milliseconds