Home
last modified time | relevance | path

Searched refs:ObjectType (Results 1 – 25 of 98) sorted by relevance

1234

/arkcompiler/runtime_core/static_core/runtime/mem/refstorage/
Dreference.h35 enum class ObjectType : uint8_t { enum
62 return GetType() == ObjectType::STACK; in IsStack()
67 ObjectType type = GetType(); in IsLocal()
68 return type == ObjectType::STACK || type == ObjectType::LOCAL; in IsLocal()
73 return GetType() == ObjectType::GLOBAL; in IsGlobal()
78 return GetType() == ObjectType::GLOBAL_FIXED; in IsGlobalFixed()
83 return GetType() == ObjectType::WEAK; in IsWeak()
98 static Reference *Create(uintptr_t addr, ObjectType type) in Create()
104 static ObjectType GetType(const Reference *ref) in GetType()
107 return static_cast<ObjectType>(addr & MASK_TYPE); in GetType()
[all …]
Dreference_storage.h48 static Reference::ObjectType GetObjectType(const Reference *ref);
56 return Reference::Create(ToUintPtr(objectPtr), Reference::ObjectType::STACK); in NewStackRef()
59 …] PANDA_PUBLIC_API Reference *NewRef(const ObjectHeader *object, Reference::ObjectType objectType);
158 …Handle(const ReferenceHandle &rhs, T *object, Reference::ObjectType type = Reference::ObjectType::…
165 …erenceHandle(ReferenceStorage *rs, T *object, Reference::ObjectType type = Reference::ObjectType::…
178 …ce *NewRef(T *object, bool releaseOld = true, Reference::ObjectType type = Reference::ObjectType::…
Dreference_storage.cpp80 if (type == mem::Reference::ObjectType::STACK) { in IsValidRef()
82 …} else if (type == mem::Reference::ObjectType::GLOBAL || type == mem::Reference::ObjectType::WEAK)… in IsValidRef()
94 Reference::ObjectType ReferenceStorage::GetObjectType(const Reference *ref) in GetObjectType()
100 Reference *ReferenceStorage::NewRef(const ObjectHeader *object, Reference::ObjectType type) in NewRef()
102 ASSERT(type != Reference::ObjectType::STACK); in NewRef()
109 if (type == Reference::ObjectType::GLOBAL || type == Reference::ObjectType::WEAK) { in NewRef()
150 Reference::ObjectType objectType = ref->GetType(); in RemoveRef()
151 if (objectType == Reference::ObjectType::GLOBAL || objectType == Reference::ObjectType::WEAK) { in RemoveRef()
156 } else if (objectType == Reference::ObjectType::LOCAL) { in RemoveRef()
164 } else if (objectType == Reference::ObjectType::STACK) { in RemoveRef()
[all …]
Dglobal_object_storage.cpp49 Reference::ObjectType type = Reference::GetType(ref); in IsValidGlobalRef()
51 if (type == Reference::ObjectType::GLOBAL) { in IsValidGlobalRef()
55 } else if (type == Reference::ObjectType::WEAK) { in IsValidGlobalRef()
67 Reference *GlobalObjectStorage::Add(const ObjectHeader *object, Reference::ObjectType type) const in Add()
74 if (type == Reference::ObjectType::GLOBAL) { in Add()
76 } else if (type == Reference::ObjectType::WEAK) { in Add()
95 if (type == Reference::ObjectType::GLOBAL) { in Remove()
97 } else if (type == Reference::ObjectType::WEAK) { in Remove()
Dglobal_object_storage.h54 PANDA_PUBLIC_API Reference *Add(const ObjectHeader *object, Reference::ObjectType type) const;
66 if (type == Reference::ObjectType::GLOBAL) { in Get()
68 } else if (type == Reference::ObjectType::WEAK) { in Get()
83 if (type == Reference::ObjectType::GLOBAL) { in GetAddressForRef()
85 } else if (type == Reference::ObjectType::WEAK) { in GetAddressForRef()
124 static void AssertType([[maybe_unused]] Reference::ObjectType type) in AssertType()
126 … ASSERT(type == Reference::ObjectType::GLOBAL || type == Reference::ObjectType::GLOBAL_FIXED || in AssertType()
127 type == Reference::ObjectType::WEAK); in AssertType()
/arkcompiler/ets_frontend/ets2panda/checker/types/ts/
DobjectLiteralType.h22 class ObjectLiteralType : public ObjectType {
24 …explicit ObjectLiteralType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::LITERA… in ObjectLiteralType()
25 ObjectLiteralType() : ObjectType(ObjectType::ObjectTypeKind::LITERAL) {} in ObjectLiteralType()
DobjectType.cpp24 bool ObjectType::EachSignatureRelatedToSomeSignature(TypeRelation *relation, in EachSignatureRelatedToSomeSignature()
35 bool ObjectType::SignatureRelatedToSomeSignature(TypeRelation *relation, Signature *sourceSignature, in SignatureRelatedToSomeSignature()
50 void ObjectType::Identical(TypeRelation *relation, Type *other) in Identical()
56 ObjectType *otherObj = other->AsObjectType(); in Identical()
113 void ObjectType::AssignProperties(TypeRelation *relation, ObjectType *source) in AssignProperties()
155 void ObjectType::AssignSignatures(TypeRelation *relation, ObjectType *source, bool assignCallSignat… in AssignSignatures()
179 void ObjectType::AssignIndexInfo([[maybe_unused]] TypeRelation *relation, ObjectType *source, bool … in AssignIndexInfo()
202 void ObjectType::CheckExcessProperties(TypeRelation *relation, ObjectType *source) in CheckExcessProperties()
217 void ObjectType::AssignmentTarget(TypeRelation *relation, Type *source) in AssignmentTarget()
226 ObjectType *sourceObj = source->AsObjectType(); in AssignmentTarget()
DobjectType.h45 class ObjectType : public Type { in DEFINE_BITOPS()
79 explicit ObjectType(ObjectType::ObjectTypeKind kind) in DEFINE_BITOPS()
84 ObjectType(ObjectType::ObjectTypeKind kind, ObjectDescriptor *desc) in DEFINE_BITOPS()
89 ObjectType::ObjectTypeKind Kind() const in DEFINE_BITOPS()
191 void CheckExcessProperties(TypeRelation *relation, ObjectType *source); in DEFINE_BITOPS()
192 void AssignProperties(TypeRelation *relation, ObjectType *source); in DEFINE_BITOPS()
193 …void AssignSignatures(TypeRelation *relation, ObjectType *source, bool assignCallSignatures = true… in DEFINE_BITOPS()
194 void AssignIndexInfo(TypeRelation *relation, ObjectType *source, bool assignNumberInfo = true); in DEFINE_BITOPS()
DinterfaceType.h22 class InterfaceType : public ObjectType {
25 : ObjectType(ObjectType::ObjectTypeKind::INTERFACE, desc), in InterfaceType()
32 void AddBase(ObjectType *base) in AddBase()
37 ArenaVector<ObjectType *> &Bases() in Bases()
70 varbinder::LocalVariable *resultProp = ObjectType::GetProperty(name, false); in GetProperty()
143 ArenaVector<ObjectType *> bases_;
DconstructorType.h22 class ConstructorType : public ObjectType {
24 …explicit ConstructorType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::FUNCTION… in ConstructorType()
DfunctionType.h23 class FunctionType : public ObjectType {
25 …explicit FunctionType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::FUNCTION, d… in FunctionType()
DtupleType.h28 class TupleType : public ObjectType {
31 …: ObjectType(ObjectTypeKind::TUPLE), elementFlags_(allocator->Adapter()), namedMembers_(allocator-… in TupleType()
37 : ObjectType(ObjectType::ObjectTypeKind::TUPLE, desc), in TupleType()
/arkcompiler/ets_frontend/es2panda/typescript/types/
DobjectLiteralType.h23 class ObjectLiteralType : public ObjectType {
25 …explicit ObjectLiteralType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::LITERA… in ObjectLiteralType()
26 ObjectLiteralType() : ObjectType(ObjectType::ObjectTypeKind::LITERAL) {} in ObjectLiteralType()
DobjectType.cpp25 bool ObjectType::EachSignatureRelatedToSomeSignature(TypeRelation *relation, in EachSignatureRelatedToSomeSignature()
36 bool ObjectType::SignatureRelatedToSomeSignature(TypeRelation *relation, Signature *sourceSignature, in SignatureRelatedToSomeSignature()
51 void ObjectType::Identical(TypeRelation *relation, Type *other) in Identical()
57 ObjectType *otherObj = other->AsObjectType(); in Identical()
114 void ObjectType::AssignProperties(TypeRelation *relation, ObjectType *source) in AssignProperties()
155 void ObjectType::AssignSignatures(TypeRelation *relation, ObjectType *source, bool assignCallSignat… in AssignSignatures()
179 void ObjectType::AssignIndexInfo([[maybe_unused]] TypeRelation *relation, ObjectType *source, bool … in AssignIndexInfo()
202 void ObjectType::checkExcessProperties(TypeRelation *relation, ObjectType *source) in checkExcessProperties()
216 void ObjectType::AssignmentTarget(TypeRelation *relation, Type *source) in AssignmentTarget()
225 ObjectType *sourceObj = source->AsObjectType(); in AssignmentTarget()
DobjectType.h50 class ObjectType : public Type { in DEFINE_BITOPS()
82 explicit ObjectType(ObjectType::ObjectTypeKind kind) in DEFINE_BITOPS()
87 ObjectType(ObjectType::ObjectTypeKind kind, ObjectDescriptor *desc) in DEFINE_BITOPS()
92 ObjectType::ObjectTypeKind Kind() const in DEFINE_BITOPS()
193 void checkExcessProperties(TypeRelation *relation, ObjectType *source); in DEFINE_BITOPS()
194 void AssignProperties(TypeRelation *relation, ObjectType *source); in DEFINE_BITOPS()
195 …void AssignSignatures(TypeRelation *relation, ObjectType *source, bool assignCallSignatures = true… in DEFINE_BITOPS()
196 void AssignIndexInfo(TypeRelation *relation, ObjectType *source, bool assignNumberInfo = true); in DEFINE_BITOPS()
DtypeMapping.h35 _(TypeFlag::OBJECT, ObjectType) \
47 _(ObjectType::ObjectTypeKind::FUNCTION, FunctionType) \
48 _(ObjectType::ObjectTypeKind::TUPLE, TupleType) \
49 _(ObjectType::ObjectTypeKind::LITERAL, ObjectLiteralType) \
50 _(ObjectType::ObjectTypeKind::INTERFACE, InterfaceType)
DinterfaceType.h23 class InterfaceType : public ObjectType {
26 : ObjectType(ObjectType::ObjectTypeKind::INTERFACE, desc), in InterfaceType()
33 void AddBase(ObjectType *base) in AddBase()
38 ArenaVector<ObjectType *> &Bases() in Bases()
70 binder::LocalVariable *resultProp = ObjectType::GetProperty(name, false); in GetProperty()
144 ArenaVector<ObjectType *> bases_;
DtupleType.h29 class TupleType : public ObjectType {
32 : ObjectType(ObjectTypeKind::TUPLE), elementFlags_(allocator->Adapter()) in TupleType()
38 : ObjectType(ObjectType::ObjectTypeKind::TUPLE, desc), in TupleType()
54 : ObjectType(ObjectType::ObjectTypeKind::TUPLE, desc), in TupleType()
DconstructorType.h23 class ConstructorType : public ObjectType {
25 …explicit ConstructorType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::FUNCTION… in ConstructorType()
DfunctionType.h24 class FunctionType : public ObjectType {
26 …explicit FunctionType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::FUNCTION, d… in FunctionType()
DunionType.h104 ObjectType *MergedObjectType() in MergedObjectType()
109 void SetMergedObjectType(ObjectType *type) in SetMergedObjectType()
132 ObjectType *mergedObjectType_ {nullptr};
/arkcompiler/ets_frontend/ets2panda/checker/types/
DtypeMapping.h35 _(TypeFlag::OBJECT, ObjectType) \
66 _(ObjectType::ObjectTypeKind::FUNCTION, FunctionType) \
67 _(ObjectType::ObjectTypeKind::TUPLE, TupleType) \
68 _(ObjectType::ObjectTypeKind::LITERAL, ObjectLiteralType) \
69 _(ObjectType::ObjectTypeKind::INTERFACE, InterfaceType)
/arkcompiler/ets_frontend/es2panda/typescript/core/
Dobject.cpp49 ObjectType *objType = type->AsObjectType(); in CheckIndexConstraints()
88 ObjectType *objType = type->AsObjectType(); in ResolveStructuredTypeMembers()
124 ObjectType *objType = it->AsObjectType(); in ResolveUnionTypeMembers()
159 ObjectType *mergedType = allocator_->New<ObjectLiteralType>(desc); in ResolveUnionTypeMembers()
176 void Checker::ResolveObjectTypeMembers(ObjectType *type) in ResolveObjectTypeMembers()
197 void Checker::ResolvePropertiesOfObjectType(ObjectType *type, const ir::Expression *member, in ResolvePropertiesOfObjectType()
233 void Checker::ResolveSignaturesOfObjectType(ObjectType *type, in ResolveSignaturesOfObjectType()
248 void Checker::ResolveIndexInfosOfObjectType(ObjectType *type, in ResolveIndexInfosOfObjectType()
318 ObjectType *objType = it->AsObjectType(); in GetPropertyOfUnionType()
443 ArenaVector<ObjectType *> Checker::GetBaseTypes(InterfaceType *type) in GetBaseTypes()
[all …]
/arkcompiler/ets_frontend/ets2panda/checker/ts/
Dobject.cpp47 ObjectType *objType = type->AsObjectType(); in CheckIndexConstraints()
86 ObjectType *objType = type->AsObjectType(); in ResolveStructuredTypeMembers()
122 ObjectType *objType = it->AsObjectType(); in ResolveUnionTypeMembers()
157 ObjectType *mergedType = Allocator()->New<ObjectLiteralType>(desc); in ResolveUnionTypeMembers()
174 void TSChecker::ResolveObjectTypeMembers(ObjectType *type) in ResolveObjectTypeMembers()
195 void TSChecker::ResolvePropertiesOfObjectType(ObjectType *type, ir::AstNode *member, in ResolvePropertiesOfObjectType()
230 void TSChecker::ResolveSignaturesOfObjectType(ObjectType *type, in ResolveSignaturesOfObjectType()
245 void TSChecker::ResolveIndexInfosOfObjectType(ObjectType *type, ArenaVector<ir::TSIndexSignature *>… in ResolveIndexInfosOfObjectType()
314 ObjectType *objType = it->AsObjectType(); in GetPropertyOfUnionType()
438 ArenaVector<ObjectType *> TSChecker::GetBaseTypes(InterfaceType *type) in GetBaseTypes()
[all …]
/arkcompiler/runtime_core/static_core/runtime/tests/
Dstring_table_test.cpp179 auto ref1 = storage->Add(s1, Reference::ObjectType::GLOBAL); in SweepObjectInTable()
181 auto ref2 = storage->Add(s2, Reference::ObjectType::GLOBAL); in SweepObjectInTable()
183 auto ref3 = storage->Add(s3, Reference::ObjectType::GLOBAL); in SweepObjectInTable()
217 auto ref1 = storage->Add(s1, Reference::ObjectType::GLOBAL); in SweepNonMovableObjectInTable()
220 auto ref2 = storage->Add(s2, Reference::ObjectType::GLOBAL); in SweepNonMovableObjectInTable()
223 auto ref3 = storage->Add(s3, Reference::ObjectType::GLOBAL); in SweepNonMovableObjectInTable()
266 auto ref1 = storage->Add(s1, Reference::ObjectType::GLOBAL); in SweepHumongousObjectInTable()
269 auto ref2 = storage->Add(s2, Reference::ObjectType::GLOBAL); in SweepHumongousObjectInTable()
272 auto ref3 = storage->Add(s3, Reference::ObjectType::GLOBAL); in SweepHumongousObjectInTable()

1234