/arkcompiler/ets_frontend/ets2panda/ir/ets/ |
H A D | etsTypeReferencePart.cpp | 119 auto *const baseType = checker->HandleUtilityTypeParameterNode(typeParams_, ident->Name().Utf8()); in HandleInternalTypes() local 120 if (baseType->IsETSObjectType() && !baseType->AsETSObjectType()->TypeArguments().empty()) { in HandleInternalTypes() 121 checker::InstantiationContext ctx(checker, baseType->AsETSObjectType(), typeParams_, Start()); in HandleInternalTypes() 125 return baseType; in HandleInternalTypes() 139 checker::Type *baseType = checker->GetReferencedTypeBase(name_); in GetType() local 141 ASSERT(baseType != nullptr); in GetType() 142 if (baseType->IsETSObjectType()) { in GetType() 143 checker::InstantiationContext ctx(checker, baseType->AsETSObjectType(), typeParams_, Start()); in GetType() 146 SetTsType(baseType); in GetType() 150 checker::Type *baseType = prev_->GetType(checker); GetType() local [all...] |
/arkcompiler/ets_frontend/ets2panda/ir/expressions/ |
H A D | memberExpression.cpp | 233 checker::Type *MemberExpression::CheckUnionMember(checker::ETSChecker *checker, checker::Type *baseType) in CheckUnionMember() argument 235 auto *const unionType = baseType->AsETSUnionType(); in CheckUnionMember() 355 checker::Type *MemberExpression::CheckTupleAccessMethod(checker::ETSChecker *checker, checker::Type *baseType) in CheckTupleAccessMethod() argument 357 ASSERT(baseType->IsETSTupleType()); in CheckTupleAccessMethod() 363 auto *const tupleTypeAtIdx = baseType->AsETSTupleType()->GetTypeAtIndex(*idxIfAny); in CheckTupleAccessMethod() 371 checker::CastingContext::ConstructorData {this, baseType->AsETSArrayType()->ElementType(), tupleTypeAtIdx, in CheckTupleAccessMethod() 378 checker::Type *MemberExpression::CheckComputed(checker::ETSChecker *checker, checker::Type *baseType) in CheckComputed() argument 380 if (baseType->IsETSDynamicType()) { in CheckComputed() 382 return checker->GlobalBuiltinDynamicType(baseType->AsETSDynamicType()->Language()); in CheckComputed() 385 if (baseType in CheckComputed() [all...] |
H A D | memberExpression.h | 222 checker::Type *CheckComputed(checker::ETSChecker *checker, checker::Type *baseType); 223 checker::Type *CheckUnionMember(checker::ETSChecker *checker, checker::Type *baseType); 229 checker::Type *CheckTupleAccessMethod(checker::ETSChecker *checker, checker::Type *baseType);
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
H A D | tsQualifiedName.cpp | 39 checker::Type *baseType = checker->CheckNonNullType(left_->Check(checker), left_->Start()); in Check() local 40 binder::Variable *prop = checker->GetPropertyOfType(baseType, right_->Name()); in Check() 46 if (baseType->IsObjectType()) { in Check() 47 checker::ObjectType *objType = baseType->AsObjectType(); in Check()
|
H A D | tsIndexedAccessType.cpp | 68 checker::Type *baseType = objectType_->AsTypeNode()->GetType(checker); in GetType() local 70 checker::Type *resolved = checker->GetPropertyTypeForIndexType(baseType, indexType); in GetType()
|
/arkcompiler/ets_frontend/ets2panda/test/unit/ |
H A D | union_normalization_test.cpp | 217 auto *const baseType = FindClassType(program->VarBinder()->AsETSBinder(), "Base"); in TEST_F() local 218 ASSERT_NE(baseType, nullptr); in TEST_F() 225 unionConstituents.emplace_back(baseType); in TEST_F() 236 ASSERT_EQ(unionType->ConstituentTypes().at(IDX1), baseType); in TEST_F() 248 auto *const baseType = FindClassType(program->VarBinder()->AsETSBinder(), "Base"); in TEST_F() local 249 ASSERT_NE(baseType, nullptr); in TEST_F() 255 unionConstituents.emplace_back(baseType); in TEST_F() 257 unionConstituents.emplace_back(baseType); in TEST_F() 268 ASSERT_EQ(unionType->ConstituentTypes().at(IDX0), baseType); in TEST_F() 304 auto *const baseType in TEST_F() local 342 auto *const baseType = FindClassType(program->VarBinder()->AsETSBinder(), "Base"); TEST_F() local 420 auto *const baseType = FindClassType(varbinder, "Base"); TEST_F() local [all...] |
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
H A D | memberExpression.cpp | 105 checker::Type *baseType = checker->CheckNonNullType(object_->Check(checker), object_->Start()); in Check() local 109 checker::Type *indexedAccessType = checker->GetPropertyTypeForIndexType(baseType, indexType); in Check() 151 binder::Variable *prop = checker->GetPropertyOfType(baseType, property_->AsIdentifier()->Name()); in Check() 162 if (baseType->IsObjectType()) { in Check() 163 checker::ObjectType *objType = baseType->AsObjectType(); in Check()
|
/arkcompiler/ets_runtime/ecmascript/compiler/pgo_type/ |
H A D | pgo_type_manager.h | 101 ProfileType baseType, in ProtoTransType() 106 baseType(baseType), in ProtoTransType() 112 ProfileType baseType {};
|
H A D | pgo_type_parser.cpp | 195 std::pair<ProfileType, ProfileType> baseType = type.GetBaseType(); in CreatePGOType() 198 ProtoTransType transType(ihcType, baseType.first, baseType.second, transIhcType, transPhcType); in CreatePGOType()
|
H A D | pgo_type_manager.cpp | 172 JSTaggedValue baseIhc = QueryHClass(protoTransType.baseRootType, protoTransType.baseType); in GenProtoTransitionInfo()
|
/arkcompiler/ets_frontend/ets2panda/ir/ts/ |
H A D | tsIndexedAccessType.cpp | 75 checker::Type *baseType = objectType_->GetType(checker); in GetType() local 77 checker::Type *resolved = checker->GetPropertyTypeForIndexType(baseType, indexType); in GetType()
|
/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
H A D | ETSemitter.cpp | 360 void ETSEmitter::GenClassInheritedFields(const checker::ETSObjectType *baseType, pandasm::Record &classRecord) in GenClassInheritedFields() argument 362 std::vector<const varbinder::LocalVariable *> foreignProps = baseType->ForeignProperties(); in GenClassInheritedFields() 393 auto *baseType = interfaceDecl->TsType()->AsETSObjectType(); in GenInterfaceRecord() local 412 for (auto *it : baseType->Interfaces()) { in GenInterfaceRecord() 419 GenClassInheritedFields(baseType, interfaceRecord); in GenInterfaceRecord() 488 auto *baseType = classDef->TsType()->AsETSObjectType(); in GenClassRecord() local 489 if (baseType->SuperType() != nullptr) { in GenClassRecord() 491 baseType->SuperType()->AssemblerName().Mutf8()); in GenClassRecord() 494 if (baseType->AssemblerName().Mutf8() != Signatures::BUILTIN_OBJECT) { in GenClassRecord() 499 for (auto *it : baseType in GenClassRecord() [all...] |
H A D | ETSemitter.h | 103 void GenClassInheritedFields(const checker::ETSObjectType *baseType, pandasm::Record &classRecord);
|
/arkcompiler/ets_frontend/ets2panda/checker/ts/ |
H A D | object.cpp | 458 Type *baseType = extends->Expr()->GetType(this); in GetBaseTypes() local 460 if (!baseType->HasTypeFlag(TypeFlag::OBJECT | TypeFlag::NON_PRIMITIVE | TypeFlag::ANY)) { in GetBaseTypes() 468 if (!baseType->IsObjectType()) { in GetBaseTypes() 472 ObjectType *baseObj = baseType->AsObjectType(); in GetBaseTypes() 474 if (baseType == type) { in GetBaseTypes()
|
/arkcompiler/ets_frontend/ets2panda/checker/ |
H A D | ETSAnalyzer.cpp | 1317 std::pair<checker::Type *, util::StringView> SearchReExportsType(ETSObjectType *baseType, ir::MemberExpression *expr, in SearchReExportsType() argument 1322 for (auto *const item : baseType->ReExports()) { in SearchReExportsType() 1345 static void TypeErrorOnMissingProperty(ir::MemberExpression *expr, checker::Type *baseType, in TypeErrorOnMissingProperty() argument 1349 {"Property '", expr->Property()->AsIdentifier()->Name(), "' does not exist on type '", baseType, "'"}, in TypeErrorOnMissingProperty() 1362 auto *baseType = checker->GetNonConstantType(checker->GetApparentType(expr->Object()->Check(checker))); in Check() local 1365 if (baseType->DefinitelyETSNullish() && expr->Object()->IsIdentifier()) { in Check() 1366 baseType = expr->Object()->AsIdentifier()->Variable()->TsType(); in Check() 1369 if (baseType->IsETSObjectType() && !baseType->AsETSObjectType()->ReExports().empty() && in Check() 1370 baseType in Check() 2678 checker::Type *baseType = expr->Left()->Check(checker); Check() local [all...] |
H A D | TSAnalyzer.cpp | 644 checker::Type *baseType = checker->CheckNonNullType(expr->Object()->Check(checker), expr->Object()->Start()); in Check() local 648 checker::Type *indexedAccessType = checker->GetPropertyTypeForIndexType(baseType, indexType); in Check() 656 varbinder::Variable *prop = checker->GetPropertyOfType(baseType, expr->Property()->AsIdentifier()->Name()); in Check() 667 if (baseType->IsObjectType()) { in Check() 668 checker::ObjectType *objType = baseType->AsObjectType(); in Check() 2011 checker::Type *baseType = checker->CheckNonNullType(expr->Left()->Check(checker), expr->Left()->Start()); in Check() local 2012 varbinder::Variable *prop = checker->GetPropertyOfType(baseType, expr->Right()->Name()); in Check() 2018 if (baseType->IsObjectType()) { in Check() 2019 checker::ObjectType *objType = baseType->AsObjectType(); in Check()
|
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
H A D | object.cpp | 469 Type *baseType = extends->Expr()->AsTypeNode()->GetType(this); in GetBaseTypes() local 471 if (!baseType->HasTypeFlag(TypeFlag::OBJECT | TypeFlag::NON_PRIMITIVE | TypeFlag::ANY)) { in GetBaseTypes() 479 if (!baseType->IsObjectType()) { in GetBaseTypes() 483 ObjectType *baseObj = baseType->AsObjectType(); in GetBaseTypes() 485 if (baseType == type) { in GetBaseTypes()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/litecg/ |
H A D | lmir_builder.cpp | 510 Stmt &LMIRBuilder::Iassign(Expr src, Expr addr, Type *baseType, FieldId fieldId) in Iassign() argument 512 return *mirBuilder.CreateStmtIassign(*baseType, fieldId, addr.GetNode(), src.GetNode()); in Iassign() 530 Expr LMIRBuilder::Iread(Type *type, Expr addr, Type *baseType, FieldId fieldId) in Iread() argument 532 return Expr(mirBuilder.CreateExprIread(*type, *baseType, fieldId, addr.GetNode()), type); in Iread()
|
/arkcompiler/ets_frontend/ets2panda/checker/types/ets/ |
H A D | etsObjectType.h | 210 void SetBaseType(ETSObjectType *baseType) in SetBaseType() argument 212 baseType_ = baseType; in SetBaseType()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/litecg/ |
H A D | lmir_builder.h | 382 Stmt &Iassign(Expr src, Expr addr, Type *baseType, FieldId fieldId = 0); 393 Expr Iread(Type *type, Expr addr, Type *baseType, FieldId fieldId = 0);
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
H A D | class_info_extractor.cpp | 1041 JSType baseType = baseIHClass->GetObjectType(); in DefineSendableInstanceHClass() local 1042 const auto [baseSize, baseMaxInlineSize] = GetSizeAndMaxInlineByType(baseType); in DefineSendableInstanceHClass() 1048 iHClass = factory->NewSEcmaHClass(baseSize, baseType, 0); in DefineSendableInstanceHClass() 1050 iHClass = factory->NewSEcmaHClass(baseSize, baseType, newLength); in DefineSendableInstanceHClass() 1054 iHClass = factory->NewSEcmaHClass(baseSize, baseType, 0); in DefineSendableInstanceHClass() 1077 iHClass = factory->NewSEcmaHClass(baseSize, baseType, 0); in DefineSendableInstanceHClass()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
H A D | lowering.cpp | 64 auto baseType = AnyBaseTypeToDataType(anyType); in VisitCastValueToAnyType() local 66 if (baseType == DataType::REFERENCE) { in VisitCastValueToAnyType() 76 if (input->IsConst() && baseType == DataType::VOID) { in VisitCastValueToAnyType() 895 auto baseType = AnyBaseTypeToDataType(anyType); in LowerCastValueToAnyTypeWithConst() local 896 if (!IsTypeNumeric(baseType) || baseType == DataType::POINTER) { in LowerCastValueToAnyTypeWithConst()
|
/arkcompiler/ets_frontend/ets2panda/checker/ets/ |
H A D | object.cpp | 521 const auto *baseType = type->GetOriginalBaseType(); in ResolveDeclaredMembersOfObject() local 522 auto *baseDeclNode = baseType->GetDeclNode(); in ResolveDeclaredMembersOfObject() 528 auto savedContext = checker::SavedCheckerContext(this, baseStatus, baseType); in ResolveDeclaredMembersOfObject() 530 ResolveDeclaredMembersOfObject(baseType); in ResolveDeclaredMembersOfObject()
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
H A D | pgo_profiler.cpp | 1298 auto baseType = GetProfileType(baseIhcObj); in TryDumpProtoTransitionType() local 1299 ASSERT(!baseType.IsNone()); in TryDumpProtoTransitionType() 1301 protoTransitionType.SetBaseType(baseRootType, baseType); in TryDumpProtoTransitionType()
|
/arkcompiler/runtime_core/static_core/assembler/ |
H A D | assembly-emitter.cpp | 927 Type baseType(baseName, 0); in HandleBaseRecord() 929 record->SetSuperClass(items->GetOrCreateForeignClassItem(baseType.GetDescriptor(rec.conflict))); in HandleBaseRecord() 931 record->SetSuperClass(items->GetOrCreateClassItem(baseType.GetDescriptor(rec.conflict))); in HandleBaseRecord()
|