| /arkcompiler/runtime_core/static_core/runtime/mem/refstorage/ |
| D | reference.h | 35 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 …]
|
| D | reference_storage.h | 48 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::…
|
| D | reference_storage.cpp | 80 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 …]
|
| D | global_object_storage.cpp | 49 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()
|
| D | global_object_storage.h | 54 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/ |
| D | objectLiteralType.h | 22 class ObjectLiteralType : public ObjectType { 24 …explicit ObjectLiteralType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::LITERA… in ObjectLiteralType() 25 ObjectLiteralType() : ObjectType(ObjectType::ObjectTypeKind::LITERAL) {} in ObjectLiteralType()
|
| D | objectType.cpp | 24 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()
|
| D | objectType.h | 45 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()
|
| D | interfaceType.h | 22 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_;
|
| D | constructorType.h | 22 class ConstructorType : public ObjectType { 24 …explicit ConstructorType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::FUNCTION… in ConstructorType()
|
| D | functionType.h | 23 class FunctionType : public ObjectType { 25 …explicit FunctionType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::FUNCTION, d… in FunctionType()
|
| D | tupleType.h | 28 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/ |
| D | objectLiteralType.h | 23 class ObjectLiteralType : public ObjectType { 25 …explicit ObjectLiteralType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::LITERA… in ObjectLiteralType() 26 ObjectLiteralType() : ObjectType(ObjectType::ObjectTypeKind::LITERAL) {} in ObjectLiteralType()
|
| D | objectType.cpp | 25 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()
|
| D | objectType.h | 50 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()
|
| D | typeMapping.h | 35 _(TypeFlag::OBJECT, ObjectType) \ 47 _(ObjectType::ObjectTypeKind::FUNCTION, FunctionType) \ 48 _(ObjectType::ObjectTypeKind::TUPLE, TupleType) \ 49 _(ObjectType::ObjectTypeKind::LITERAL, ObjectLiteralType) \ 50 _(ObjectType::ObjectTypeKind::INTERFACE, InterfaceType)
|
| D | interfaceType.h | 23 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_;
|
| D | tupleType.h | 29 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()
|
| D | constructorType.h | 23 class ConstructorType : public ObjectType { 25 …explicit ConstructorType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::FUNCTION… in ConstructorType()
|
| D | functionType.h | 24 class FunctionType : public ObjectType { 26 …explicit FunctionType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::FUNCTION, d… in FunctionType()
|
| D | unionType.h | 104 ObjectType *MergedObjectType() in MergedObjectType() 109 void SetMergedObjectType(ObjectType *type) in SetMergedObjectType() 132 ObjectType *mergedObjectType_ {nullptr};
|
| /arkcompiler/ets_frontend/ets2panda/checker/types/ |
| D | typeMapping.h | 35 _(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/ |
| D | object.cpp | 49 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/ |
| D | object.cpp | 47 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/ |
| D | string_table_test.cpp | 179 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()
|