/arkcompiler/ets_runtime/ecmascript/ic/ |
H A D | properties_cache.h | 30 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 D | fast_json_stringifier.cpp | 144 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 D | json_stringifier.cpp | 330 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 D | fast_json_stringifier.h | 82 bool SerializeKeysFromLayout(const JSHandle<JSObject> &obj, const JSHandle<JSHClass> &jsHclass,
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | parallel_marker.cpp | 147 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 D | verification.cpp | 92 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 D | property_accessor.cpp | 133 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 D | js_object.cpp | 559 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 D | js_tagged_value-inl.h | 674 JSHClass *jsHclass = GetTaggedObject()->GetClass(); in IsArray() local 675 if (jsHclass->IsJSArray()) { in IsArray() 679 if (jsHclass->IsJSProxy()) { in IsArray()
|
H A D | object_fast_operator-inl.h | 1246 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 D | dump.cpp | 679 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 D | hcr_circuit_builder.cpp | 587 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 D | stub_builder-inl.h | 3613 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 D | stub_builder.cpp | 9017 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 D | stub_builder.h | 850 void SetElementsKindToJSHClass(GateRef glue, GateRef jsHclass, GateRef elementsKind);
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | tagged_value_test.cpp | 855 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 D | heap_snapshot.cpp | 1090 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 D | js_module_source_text.cpp | 182 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 D | ecma_module_test.cpp | 2380 JSHandle<JSHClass> jsHclass(thread, obj->GetJSHClass()); in HWTEST_F_L0() 2382 jsHclass->SetLayout(thread, layout); in HWTEST_F_L0()
|