Home
last modified time | relevance | path

Searched refs:ClassType (Results 1 – 25 of 38) sorted by relevance

12

/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/
Dets_array_test.cpp73 template <class ClassType, EtsClassRoot ETS_CLASS_ROOT>
74 static void TestEtsPrimitiveArray(uint32_t arrayLength, ClassType element) in TestEtsPrimitiveArray()
76 auto *array = EtsPrimitiveArray<ClassType, ETS_CLASS_ROOT>::Create(arrayLength); in TestEtsPrimitiveArray()
80 ASSERT_EQ(array->GetElementSize(), sizeof(ClassType)); in TestEtsPrimitiveArray()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/
DTypeClassTypeTest.ets88 function findMethodByName(ct: ClassType, name: string): Method | null {
98 function testFields(ct: ClassType): int {
108 function testAllFieldsAreOwn(ct: ClassType): int {
118 function testClassExtendsObject(ct: ClassType): int {
129 let pt = Type.of(new Point()) as ClassType
152 let pt = Type.of(new Point3D(1.0, 2.0, 3.0)) as ClassType
177 let wt = Type.of(new HTMLWriter(1)) as ClassType
199 let pt = Type.of(new Point()) as ClassType
200 let wt = Type.of(new HTMLWriter(0)) as ClassType
201 let p3t = Type.of(new Point3D(10)) as ClassType
DTypeCreateClassTest.ets24 function fooType(): ClassType {
25 return Type.of(new Foo()) as ClassType // Type.resolve("LETSGLOBAL/Foo;") as ClassType
DTypeCreatePrimitiveNameTest.ets21 assert (Type.of(self) as ClassType).getName() == "i32"
30 const CType = Type.of(new C()) as ClassType
DTypeMethodTest.ets74 function findMethodByName(ct: ClassType, name: string): Method | null {
85 let pt = Type.of(new Point()) as ClassType
86 let hwt = Type.of(new HTMLWriter(10)) as ClassType
115 let pt = Type.of(new Point()) as ClassType
116 let hwt = Type.of(new HTMLWriter(10)) as ClassType
DTypeLambdaTypeTest.ets33 let baseType = Type.of(new Base()) as ClassType
34 let derivedType = Type.of(new Derived()) as ClassType
DTypeMethodResolveConstructor.ets23 const BType = Type.of(new B()) as ClassType
24 const CType = Type.of(new C()) as ClassType
DTypeInterfaceTypeTest.ets76 let ict = (Type.of(new InstanceC()) as ClassType).getInterface(0)
87 let idt = (Type.of(new InstanceD()) as ClassType).getInterface(0)
DTypeMethodInvokeVirt.ets27 const a = Type.resolve('LA;') as ClassType
DTypeMethodInvokeConstructor.ets26 const cType = Type.of(c) as ClassType
DTypeAssignableFromTest.ets52 let it = (Type.of(new AI()) as ClassType).getInterface(0)
81 let ait = Type.of(new AI()) as ClassType
82 let ai23t = Type.of(new AI23()) as ClassType
DTypeResolve.ets30 const iType = Type.resolve('LAHAH;') as ClassType
DTypeMethodResolveConstructorFew.ets24 const TestType = Type.of(new Test()) as ClassType
DTypeCreateVoidTest.ets38 .addBaseType(Type.of(new C()) as ClassType)
DTypeMethodInvoke.ets53 const cType = Type.of(c) as ClassType
DTypeCreateErasedBodyTest.ets47 const c = Type.of(new C()) as ClassType
DTypeCreateInterfaceTest.ets30 const c = Type.of(new C()) as ClassType
/arkcompiler/runtime_core/static_core/runtime/
Dcompiler.cpp162 compiler::ClassType PandaRuntimeInterface::GetClassType(ClassPtr klassPtr) const in GetClassType()
165 return compiler::ClassType::UNRESOLVED_CLASS; in GetClassType()
169 return compiler::ClassType::UNRESOLVED_CLASS; in GetClassType()
172 return compiler::ClassType::OBJECT_CLASS; in GetClassType()
175 return compiler::ClassType::INTERFACE_CLASS; in GetClassType()
181 return compiler::ClassType::ARRAY_OBJECT_CLASS; in GetClassType()
184 return compiler::ClassType::FINAL_CLASS; in GetClassType()
186 return compiler::ClassType::ARRAY_CLASS; in GetClassType()
189 return compiler::ClassType::FINAL_CLASS; in GetClassType()
191 return compiler::ClassType::OTHER_CLASS; in GetClassType()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
Dets_array.h211 template <class ClassType, EtsClassRoot ETS_CLASS_ROOT>
214 using ValueType = ClassType;
222 void Set(uint32_t index, ClassType element) in Set()
226 ClassType Get(uint32_t index) in Get()
228 return GetImpl<ClassType>(index); in Get()
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
Dobject_type_propagation.cpp92 auto isExact = runtime->GetClassType(method, typeId) == ClassType::FINAL_CLASS; in VisitLoadObject()
141 auto isExact = runtime->GetClassType(klass) == ClassType::FINAL_CLASS; in VisitParameter()
157 auto isExact = runtime->GetClassType(method, typeId) == ClassType::FINAL_CLASS; in ProcessManagedCall()
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DObject.ets98 if (t instanceof ClassType) {
99 let ct = t as ClassType
169 if (t instanceof ClassType) {
231 if (t instanceof ClassType) {
296 if (t instanceof ClassType) {
/arkcompiler/ets_frontend/ts2panda/src/
DtypeChecker.ts22 ClassType,
141 let classType = new ClassType(classDeclNode, BuiltinType[className]);
384 let classType = new ClassType(classDeclNode, BuiltinType[className]);
/arkcompiler/runtime_core/compiler/optimizer/ir/
Druntime_interface.h32 enum class ClassType { enum
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Druntime_interface.h39 enum class ClassType { enum
739 …virtual ClassType GetClassType([[maybe_unused]] MethodPtr method, [[maybe_unused]] IdType id) const in GetClassType()
741 return ClassType::UNRESOLVED_CLASS; in GetClassType()
744 virtual ClassType GetClassType([[maybe_unused]] ClassPtr klassPtr) const in GetClassType()
746 return ClassType::UNRESOLVED_CLASS; in GetClassType()
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DReflect.ets47 if (t instanceof ClassType) {
130 if (vt instanceof ClassType) {

12