Home
last modified time | relevance | path

Searched refs:source (Results 1 - 25 of 392) sorted by relevance

12345678910>>...16

/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A Dconversion.cpp25 void Identity(TypeRelation *const relation, Type *const source, Type *const target) in Identity() argument
27 relation->IsIdenticalTo(source, target); in Identity()
30 void WideningPrimitive(TypeRelation *const relation, Type *const source, Type *const target) in WideningPrimitive() argument
32 ASSERT(source->HasTypeFlag(TypeFlag::ETS_PRIMITIVE) && target->HasTypeFlag(TypeFlag::ETS_PRIMITIVE)); in WideningPrimitive()
34 WideningConverter(relation->GetChecker()->AsETSChecker(), relation, target, source); in WideningPrimitive()
37 void NarrowingPrimitive(TypeRelation *const relation, Type *const source, Type *const target) in NarrowingPrimitive() argument
39 ASSERT(source->HasTypeFlag(TypeFlag::ETS_PRIMITIVE) && target->HasTypeFlag(TypeFlag::ETS_PRIMITIVE)); in NarrowingPrimitive()
41 NarrowingConverter(relation->GetChecker()->AsETSChecker(), relation, target, source); in NarrowingPrimitive()
44 void WideningNarrowingPrimitive(TypeRelation *const relation, ByteType *const source, CharType *const target) in WideningNarrowingPrimitive() argument
47 WideningPrimitive(relation, source, tempIn in WideningNarrowingPrimitive()
54 WideningReference(TypeRelation *const relation, ETSObjectType *const source, ETSObjectType *const target) WideningReference() argument
59 WideningReference(TypeRelation *const relation, ETSArrayType *const source, ETSObjectType *const target) WideningReference() argument
64 WideningReference(TypeRelation *const relation, ETSArrayType *const source, ETSArrayType *const target) WideningReference() argument
71 IsAllowedNarrowingReferenceConversionObjectObject(TypeRelation *const relation, ETSObjectType *const source, ETSObjectType *const target) IsAllowedNarrowingReferenceConversionObjectObject() argument
117 IsAllowedNarrowingReferenceConversion(TypeRelation *const relation, Type *const source, Type *const target) IsAllowedNarrowingReferenceConversion() argument
187 IsUncheckedNarrowingReferenceConversion([[maybe_unused]] TypeRelation *const relation, [[maybe_unused]] Type *const source, [[maybe_unused]] Type *const target) IsUncheckedNarrowingReferenceConversion() argument
208 NarrowingReferenceImpl(TypeRelation *const relation, Type *const source, Type *const target) NarrowingReferenceImpl() argument
225 NarrowingReference(TypeRelation *const relation, ETSObjectType *const source, ETSObjectType *const target) NarrowingReference() argument
230 NarrowingReference(TypeRelation *const relation, ETSArrayType *const source, ETSArrayType *const target) NarrowingReference() argument
240 NarrowingReference(TypeRelation *const relation, ETSObjectType *const source, ETSArrayType *const target) NarrowingReference() argument
257 Boxing(TypeRelation *const relation, Type *const source) Boxing() argument
269 Unboxing(TypeRelation *const relation, ETSObjectType *const source) Unboxing() argument
281 UnboxingWideningPrimitive(TypeRelation *const relation, ETSObjectType *const source, Type *const target) UnboxingWideningPrimitive() argument
292 UnboxingNarrowingPrimitive(TypeRelation *const relation, ETSObjectType *const source, Type *const target) UnboxingNarrowingPrimitive() argument
302 UnboxingWideningNarrowingPrimitive(TypeRelation *const relation, ETSObjectType *const source, Type *const target) UnboxingWideningNarrowingPrimitive() argument
312 NarrowingReferenceUnboxing(TypeRelation *const relation, ETSObjectType *const source, Type *const target) NarrowingReferenceUnboxing() argument
326 BoxingWideningReference(TypeRelation *const relation, Type *const source, ETSObjectType *const target) BoxingWideningReference() argument
337 String(TypeRelation *const relation, Type *const source) String() argument
[all...]
H A Dconversion.h23 void Identity(TypeRelation *relation, Type *source, Type *target);
25 void WideningPrimitive(TypeRelation *relation, Type *source, Type *target);
26 void NarrowingPrimitive(TypeRelation *relation, Type *source, Type *target);
27 void WideningNarrowingPrimitive(TypeRelation *relation, ByteType *source, CharType *target);
29 void WideningReference(TypeRelation *relation, ETSObjectType *source, ETSObjectType *target);
30 void WideningReference(TypeRelation *relation, ETSArrayType *source, ETSObjectType *target);
31 void WideningReference(TypeRelation *relation, ETSArrayType *source, ETSArrayType *target);
33 void NarrowingReference(TypeRelation *relation, ETSObjectType *source, ETSObjectType *target);
34 void NarrowingReference(TypeRelation *relation, ETSObjectType *source, ETSArrayType *target);
35 void NarrowingReference(TypeRelation *relation, ETSArrayType *source, ETSArrayTyp
[all...]
H A DboxingConverter.h25 BoxingConverter(ETSChecker *checker, TypeRelation *relation, Type *source) in BoxingConverter() argument
26 : TypeConverter(checker, relation, nullptr, source) in BoxingConverter()
28 if (!source->HasTypeFlag(TypeFlag::ETS_PRIMITIVE)) { in BoxingConverter()
33 SetResult(ETSTypeFromSource(checker, source)); in BoxingConverter()
37 BoxingConverter(ETSChecker *checker, TypeRelation *relation, Type *source, Type *target) in BoxingConverter() argument
38 : TypeConverter(checker, relation, target, source) in BoxingConverter()
44 if (!source->HasTypeFlag(TypeFlag::ETS_PRIMITIVE)) { in BoxingConverter()
49 SetResult(ETSTypeFromSource(checker, source)); in BoxingConverter()
54 static checker::ETSObjectType *ETSTypeFromSource(ETSChecker const *checker, Type const *source);
H A DunboxingConverter.h26 UnboxingConverter(ETSChecker *checker, TypeRelation *relation, Type *source) in UnboxingConverter() argument
27 : TypeConverter(checker, relation, nullptr, source) in UnboxingConverter()
29 if (!source->IsETSObjectType()) { in UnboxingConverter()
34 SetResult(GlobalTypeFromSource(checker, source->AsETSObjectType())); in UnboxingConverter()
35 relation->Result(source != Result()); in UnboxingConverter()
38 UnboxingConverter(ETSChecker *checker, TypeRelation *relation, Type *source, Type *target) in UnboxingConverter() argument
39 : TypeConverter(checker, relation, target, source) in UnboxingConverter()
47 SetResult(GlobalTypeFromSource(checker, source->AsETSObjectType())); in UnboxingConverter()
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dregexp_test.cpp105 PandaString source("0{2,1}"); in TEST_F()
106 parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F()
115 PandaString source("^[z-a]$"); in TEST_F()
116 parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F()
125 PandaString source("\\"); in TEST_F()
126 parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F()
135 PandaString source(" in TEST_F()
[all...]
/arkcompiler/ets_frontend/es2panda/typescript/core/
H A DtypeRelation.cpp22 bool Checker::IsAllTypesAssignableTo(Type *source, Type *target) in IsAllTypesAssignableTo() argument
24 if (source->TypeFlags() == TypeFlag::UNION) { in IsAllTypesAssignableTo()
25 auto &types = source->AsUnionType()->ConstituentTypes(); in IsAllTypesAssignableTo()
31 return relation_->IsAssignableTo(source, target); in IsAllTypesAssignableTo()
34 bool Checker::IsTypeIdenticalTo(Type *source, Type *target) in IsTypeIdenticalTo() argument
36 return relation_->IsIdenticalTo(source, target); in IsTypeIdenticalTo()
39 bool Checker::IsTypeIdenticalTo(Type *source, Type *target, const std::string &errMsg, in IsTypeIdenticalTo() argument
42 if (!IsTypeIdenticalTo(source, target)) { in IsTypeIdenticalTo()
49 bool Checker::IsTypeIdenticalTo(Type *source, Type *target, std::initializer_list<TypeErrorMessageElement> list, in IsTypeIdenticalTo() argument
52 if (!IsTypeIdenticalTo(source, targe in IsTypeIdenticalTo()
59 IsTypeAssignableTo(Type *source, Type *target) IsTypeAssignableTo() argument
64 IsTypeAssignableTo(Type *source, Type *target, const std::string &errMsg, const lexer::SourcePosition &errPos) IsTypeAssignableTo() argument
74 IsTypeAssignableTo(Type *source, Type *target, std::initializer_list<TypeErrorMessageElement> list, const lexer::SourcePosition &errPos) IsTypeAssignableTo() argument
84 IsTypeComparableTo(Type *source, Type *target) IsTypeComparableTo() argument
89 IsTypeComparableTo(Type *source, Type *target, const std::string &errMsg, const lexer::SourcePosition &errPos) IsTypeComparableTo() argument
99 IsTypeComparableTo(Type *source, Type *target, std::initializer_list<TypeErrorMessageElement> list, const lexer::SourcePosition &errPos) IsTypeComparableTo() argument
109 AreTypesComparable(Type *source, Type *target) AreTypesComparable() argument
114 IsTypeEqualityComparableTo(Type *source, Type *target) IsTypeEqualityComparableTo() argument
[all...]
/arkcompiler/ets_frontend/ets2panda/checker/types/
H A DtypeRelation.cpp28 RelationResult TypeRelation::CacheLookup(const Type *source, const Type *target, const RelationHolder &holder, in CacheLookup() argument
35 RelationKey relationKey {source->Id(), target->Id()}; in CacheLookup()
52 bool TypeRelation::IsIdenticalTo(Type *source, Type *target) in IsIdenticalTo() argument
54 if (source == nullptr || target == nullptr) { in IsIdenticalTo()
58 if (source == target) { in IsIdenticalTo()
62 result_ = CacheLookup(source, target, checker_->IdenticalResults(), RelationType::IDENTICAL); in IsIdenticalTo()
64 checker_->ResolveStructuredTypeMembers(source); in IsIdenticalTo()
67 target->Identical(this, source); in IsIdenticalTo()
68 checker_->IdenticalResults().cached.insert({{source->Id(), target->Id()}, {result_, RelationType::IDENTICAL}}); in IsIdenticalTo()
74 bool TypeRelation::IsCompatibleTo(Signature *source, Signatur argument
86 IsIdenticalTo(IndexInfo *source, IndexInfo *target) IsIdenticalTo() argument
100 IsAssignableTo(Type *source, Type *target) IsAssignableTo() argument
123 IsComparableTo(Type *source, Type *target) IsComparableTo() argument
148 IsCastableTo(Type *const source, Type *const target) IsCastableTo() argument
[all...]
/arkcompiler/ets_frontend/es2panda/typescript/types/
H A DtypeRelation.cpp51 RelationResult TypeRelation::CacheLookup(const Type *source, const Type *target, const RelationHolder &holder, in CacheLookup() argument
58 CHECK_NOT_NULL(source); in CacheLookup()
60 RelationKey relationKey {source->Id(), target->Id()}; in CacheLookup()
77 bool TypeRelation::IsIdenticalTo(Type *source, Type *target) in IsIdenticalTo() argument
79 if (source == target) { in IsIdenticalTo()
85 result_ = CacheLookup(source, target, checker_->IdenticalResults(), RelationType::IDENTICAL); in IsIdenticalTo()
87 checker_->ResolveStructuredTypeMembers(source); in IsIdenticalTo()
90 target->Identical(this, source); in IsIdenticalTo()
91 checker_->IdenticalResults().cached.insert({{source->Id(), target->Id()}, {result_, RelationType::IDENTICAL}}); in IsIdenticalTo()
97 bool TypeRelation::IsIdenticalTo(Signature *source, Signatur argument
110 IsIdenticalTo(IndexInfo *source, IndexInfo *target) IsIdenticalTo() argument
123 IsAssignableTo(Type *source, Type *target) IsAssignableTo() argument
144 IsComparableTo(Type *source, Type *target) IsComparableTo() argument
[all...]
H A DobjectType.cpp31 return std::all_of(sourceSignatures.begin(), sourceSignatures.end(), [relation, &targetCopy](Signature *source) { in EachSignatureRelatedToSomeSignature()
32 return SignatureRelatedToSomeSignature(relation, source, &targetCopy); in EachSignatureRelatedToSomeSignature()
125 void ObjectType::AssignProperties(TypeRelation *relation, ObjectType *source) in AssignProperties() argument
132 binder::LocalVariable *found = source->GetProperty(it->Name(), true); in AssignProperties()
166 void ObjectType::AssignSignatures(TypeRelation *relation, ObjectType *source, bool assignCallSignatures) in AssignSignatures() argument
170 assignCallSignatures ? source->CallSignatures() : source->ConstructSignatures(); in AssignSignatures()
190 void ObjectType::AssignIndexInfo([[maybe_unused]] TypeRelation *relation, ObjectType *source, bool assignNumberInfo) in AssignIndexInfo() argument
193 IndexInfo *sourceInfo = assignNumberInfo ? source->NumberIndexInfo() : source in AssignIndexInfo()
213 checkExcessProperties(TypeRelation *relation, ObjectType *source) checkExcessProperties() argument
227 AssignmentTarget(TypeRelation *relation, Type *source) AssignmentTarget() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/regexp/tests/
H A Dregexp_test.cpp122 CString source("0{2,1}"); in HWTEST_F_L0()
123 parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in HWTEST_F_L0()
132 CString source("^[z-a]$"); in HWTEST_F_L0()
133 parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in HWTEST_F_L0()
142 CString source("\\"); in HWTEST_F_L0()
143 parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in HWTEST_F_L0()
152 CString source(" in HWTEST_F_L0()
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/
H A Dets_field_test.cpp71 static void TestFieldMethods(const char *source, const char *className, const char *fieldName, in TestFieldMethods() argument
74 EtsClass *klass = GetTestClass(source, className); in TestFieldMethods()
99 const char *source = R"( in TEST_F() local
109 TestFieldMethods(source, "LBall;", "BALL_RADIUS", "F", true); in TEST_F()
110 TestFieldMethods(source, "LBall;", "BALL_SPEED", "I", true); in TEST_F()
111 TestFieldMethods(source, "LBall;", "vx", "F", false); in TEST_F()
112 TestFieldMethods(source, "LBall;", "vy", "I", false); in TEST_F()
114 source = R"( in TEST_F()
125 TestFieldMethods(source, "LDrawer;", "frameWidth", "I", false); in TEST_F()
126 TestFieldMethods(source, "LDrawe in TEST_F()
[all...]
H A Dets_class_file_test.cpp33 const char *source = R"( in InSamePackagePrologue() local
38 EtsClass *klass = GetTestClass(source, "LTest;"); in InSamePackagePrologue()
117 const char *source = R"( in TEST_F() local
124 EtsClass *klassA = GetTestClass(source, "LA;"); in TEST_F()
125 EtsClass *klassB = GetTestClass(source, "LB;"); in TEST_F()
126 EtsClass *klassC = GetTestClass(source, "LC;"); in TEST_F()
136 const char *source = R"( in TEST_F() local
141 EtsClass *klassItest = GetTestClass(source, "LITest;"); in TEST_F()
152 const char *source = R"( in TEST_F() local
161 EtsClass *klass = GetTestClass(source, "L in TEST_F()
167 const char *source = R"( TEST_F() local
182 const char *source = R"( TEST_F() local
199 const char *source = R"( TEST_F() local
215 const char *source = R"( TEST_F() local
239 const char *source = R"( TEST_F() local
269 const char *source = R"( TEST_F() local
299 const char *source = R"( TEST_F() local
329 const char *source = R"( TEST_F() local
357 const char *source = R"( TEST_F() local
383 const char *source = R"( TEST_F() local
420 const char *source = R"( TEST_F() local
457 const char *source = R"( TEST_F() local
491 const char *source = R"( TEST_F() local
526 const char *source = R"( TEST_F() local
574 const char *source = R"( TEST_F() local
648 const char *source = R"( TEST_F() local
682 const char *source = R"( TEST_F() local
716 const char *source = R"( TEST_F() local
741 const char *source = R"( TEST_F() local
777 const char *source = R"( TEST_F() local
795 const char *source = R"( TEST_F() local
814 const char *source = R"( TEST_F() local
847 const char *source = R"( TEST_F() local
882 const char *source = R"( TEST_F() local
[all...]
H A Dets_method_test.cpp84 const char *source = R"( in TEST_F() local
105 EtsClass *klass = GetTestClass(source, "LTest;"); in TEST_F()
125 const char *source = R"( in TEST_F() local
143 EtsClass *klass = GetTestClass(source, "LTest;"); in TEST_F()
167 const char *source = R"( in TEST_F() local
177 EtsClass *klass = GetTestClass(source, "LTest;"); in TEST_F()
195 const char *source = R"( in TEST_F() local
212 EtsClass *klass = GetTestClass(source, "LTest;"); in TEST_F()
234 const char *source = R"( in TEST_F() local
252 EtsClass *klass = GetTestClass(source, "LTes in TEST_F()
269 const char *source = R"( # line 1 TEST_F() local
308 const char *source = R"( TEST_F() local
343 const char *source = R"( TEST_F() local
378 const char *source = R"( TEST_F() local
415 const char *source = R"( TEST_F() local
[all...]
/arkcompiler/ets_frontend/ets2panda/checker/types/ets/
H A DetsStringType.cpp22 bool AreStringTypesAssignable(Type *source, Type *target) in AreStringTypesAssignable() argument
25 return source->IsConstantType() && in AreStringTypesAssignable()
26 source->AsETSStringType()->GetValue() == target->AsETSStringType()->GetValue(); in AreStringTypesAssignable()
54 void ETSStringType::AssignmentTarget([[maybe_unused]] TypeRelation *relation, Type *source) in AssignmentTarget() argument
56 relation->Result(source->IsETSStringType() && AreStringTypesAssignable(source, this)); in AssignmentTarget()
65 void ETSStringType::IsSupertypeOf(TypeRelation *relation, Type *source) in IsSupertypeOf() argument
68 Identical(relation, source); in IsSupertypeOf()
72 relation->IsSupertypeOf(checker->GlobalBuiltinETSStringType(), source); in IsSupertypeOf()
75 void ETSStringType::IsSubtypeOf(TypeRelation *relation, Type *source) in IsSubtypeOf() argument
[all...]
/arkcompiler/runtime_core/compiler/tests/
H A Dir_builder_test.cpp48 std::string source = ".function " + curr_type + " main("; in CheckSimple() local
49 source += curr_type + " a0){\n"; in CheckSimple()
51 source += "mov" + inst_type + " v0, a0\n"; in CheckSimple()
52 source += "lda" + inst_type + " v0\n"; in CheckSimple()
54 source += "lda" + inst_type + " a0\n"; in CheckSimple()
56 source += "lda" + inst_type + " a0\n"; in CheckSimple()
57 source += "sta" + inst_type + " v0\n"; in CheckSimple()
58 source += "lda" + inst_type + " v0\n"; in CheckSimple()
62 source += "return" + inst_type + "\n"; in CheckSimple()
63 source in CheckSimple()
87 std::string source = ".function " + curr_type + " main(){\\n"; CheckSimpleWithImm() local
132 std::string source = ".function i32 main("; CheckCmp() local
164 std::string source = ".function i32 main("; CheckFloatCmp() local
227 std::string source = ".function void main("; CheckCondJump() local
294 std::string source = ".function void main("; CheckCondJumpWithZero() local
331 auto source = R"( TEST_F() local
368 auto source = R"( TEST_F() local
405 auto source = R"( TEST_F() local
433 auto source = R"( TEST_F() local
463 auto source = R"( TEST_F() local
493 auto source = R"( TEST_F() local
523 auto source = R"( TEST_F() local
549 auto source = R"( TEST_F() local
575 auto source = R"( TEST_F() local
601 auto source = R"( TEST_F() local
627 auto source = R"( TEST_F() local
653 auto source = R"( TEST_F() local
679 auto source = R"( TEST_F() local
705 auto source = R"( TEST_F() local
731 auto source = R"( TEST_F() local
756 auto source = R"( TEST_F() local
783 auto source = R"( TEST_F() local
878 auto source = R"( TEST_F() local
975 auto source = R"( TEST_F() local
1031 auto source = R"( TEST_F() local
1056 auto source = R"( TEST_F() local
1121 auto source = R"( TEST_F() local
1297 auto source = R"( TEST_F() local
1323 auto source = R"( TEST_F() local
1349 auto source = R"( TEST_F() local
1375 auto source = R"( TEST_F() local
1401 auto source = R"( TEST_F() local
1427 auto source = R"( TEST_F() local
1453 auto source = R"( TEST_F() local
1479 auto source = R"( TEST_F() local
1505 auto source = R"( TEST_F() local
1531 auto source = R"( TEST_F() local
1557 auto source = R"( TEST_F() local
1583 auto source = R"( TEST_F() local
1609 auto source = R"( TEST_F() local
1635 auto source = R"( TEST_F() local
1661 auto source = R"( TEST_F() local
1687 auto source = R"( TEST_F() local
1713 auto source = R"( TEST_F() local
1739 auto source = R"( TEST_F() local
1765 auto source = R"( TEST_F() local
1791 auto source = R"( TEST_F() local
1817 auto source = R"( TEST_F() local
1843 auto source = R"( TEST_F() local
1869 auto source = R"( TEST_F() local
1895 auto source = R"( TEST_F() local
1921 auto source = R"( TEST_F() local
1947 auto source = R"( TEST_F() local
1973 auto source = R"( TEST_F() local
1999 auto source = R"( TEST_F() local
2025 auto source = R"( TEST_F() local
2053 auto source = R"( TEST_F() local
2081 auto source = R"( TEST_F() local
2109 auto source = R"( TEST_F() local
2137 auto source = R"( TEST_F() local
2165 auto source = R"( TEST_F() local
2193 auto source = R"( TEST_F() local
2221 auto source = R"( TEST_F() local
2249 auto source = R"( TEST_F() local
2274 auto source = R"( TEST_F() local
2299 auto source = R"( TEST_F() local
2324 auto source = R"( TEST_F() local
2349 auto source = R"( TEST_F() local
2374 auto source = R"( TEST_F() local
2399 auto source = R"( TEST_F() local
2424 auto source = R"( TEST_F() local
2449 auto source = R"( TEST_F() local
2474 auto source = R"( TEST_F() local
2501 auto source = R"( TEST_F() local
2528 auto source = R"( TEST_F() local
2554 auto source = R"( TEST_F() local
2580 auto source = R"( TEST_F() local
2606 auto source = R"( TEST_F() local
2632 auto source = R"( TEST_F() local
2658 auto source = R"( TEST_F() local
2684 auto source = R"( TEST_F() local
2710 auto source = R"( TEST_F() local
2736 auto source = R"( TEST_F() local
2762 auto source = R"( TEST_F() local
2790 auto source = R"( TEST_F() local
2818 auto source = R"( TEST_F() local
2843 auto source = R"( TEST_F() local
2868 auto source = R"( TEST_F() local
2893 auto source = R"( TEST_F() local
2918 auto source = R"( TEST_F() local
2943 auto source = R"( TEST_F() local
2968 auto source = R"( TEST_F() local
2995 auto source = R"( TEST_F() local
3021 auto source = R"( TEST_F() local
3047 auto source = R"( TEST_F() local
3073 auto source = R"( TEST_F() local
3099 auto source = R"( TEST_F() local
3125 auto source = R"( TEST_F() local
3151 auto source = R"( TEST_F() local
3177 auto source = R"( TEST_F() local
3203 auto source = R"( TEST_F() local
3229 auto source = R"( TEST_F() local
3255 auto source = R"( TEST_F() local
3281 auto source = R"( TEST_F() local
3307 auto source = R"( TEST_F() local
3333 auto source = R"( TEST_F() local
3359 auto source = R"( TEST_F() local
3385 auto source = R"( TEST_F() local
3411 auto source = R"( TEST_F() local
3437 auto source = R"( TEST_F() local
3463 auto source = R"( TEST_F() local
3488 auto source = R"( TEST_F() local
3513 auto source = R"( TEST_F() local
3538 auto source = R"( TEST_F() local
3568 auto source = R"( TEST_F() local
3598 auto source = R"( TEST_F() local
3628 auto source = R"( TEST_F() local
3658 auto source = R"( TEST_F() local
3688 auto source = R"( TEST_F() local
3718 auto source = R"( TEST_F() local
3748 auto source = R"( TEST_F() local
3778 auto source = R"( TEST_F() local
3809 auto source = R"( TEST_F() local
3840 auto source = R"( TEST_F() local
3871 auto source = R"( TEST_F() local
3902 auto source = R"( TEST_F() local
3933 auto source = R"( TEST_F() local
3964 auto source = R"( TEST_F() local
3995 auto source = R"( TEST_F() local
4028 auto source = R"( TEST_F() local
4054 auto source = R"( TEST_F() local
4082 auto source = R"( TEST_F() local
4146 auto source = R"( TEST_F() local
4258 auto source = R"( TEST_F() local
4283 auto source = R"( TEST_F() local
4316 auto source = R"( TEST_F() local
4348 auto source = R"( TEST_F() local
4379 auto source = R"( TEST_F() local
4411 auto source = R"( TEST_F() local
4442 auto source = R"( TEST_F() local
4475 auto source = R"( TEST_F() local
4508 auto source = R"( TEST_F() local
4541 auto source = R"( TEST_F() local
4570 auto source = R"( TEST_F() local
4599 auto source = R"( TEST_F() local
4628 auto source = R"( TEST_F() local
4660 auto source = R"( TEST_F() local
4692 auto source = R"( TEST_F() local
4724 auto source = R"( TEST_F() local
4747 auto source = R"( TEST_F() local
4770 auto source = R"( TEST_F() local
4794 auto source = R"( TEST_F() local
4814 auto source = R"( TEST_F() local
4838 auto source = R"( TEST_F() local
4876 auto source = R"( TEST_F() local
4914 auto source = R"( TEST_F() local
4945 auto source = R"( TEST_F() local
4977 auto source = R"( TEST_F() local
5009 auto source = R"( TEST_F() local
5078 auto source = R"( TEST_F() local
5143 auto source = R"( TEST_F() local
5218 auto source = R"( TEST_F() local
5301 auto source = R"( TEST_F() local
5358 auto source = R"( TEST_F() local
5408 auto source = R"( TEST_F() local
5483 auto source = R"( TEST_F() local
5559 auto source = R"( TEST_F() local
5649 auto source = R"( TEST_F() local
5724 auto source = R"( TEST_F() local
5769 auto source = R"( TEST_F() local
5815 auto source = R"( TEST_F() local
5845 auto source = R"( TEST_F() local
5904 auto source = R"( TEST_F() local
5944 auto source = R"( TEST_F() local
6025 auto source = R"( TEST_F() local
6098 auto source = R"( TEST_F() local
6144 auto source = R"( TEST_F() local
6202 auto source = R"( TEST_F() local
6248 auto source = R"( TEST_F() local
[all...]
/arkcompiler/ets_frontend/ets2panda/checker/
H A Dchecker.cpp120 bool Checker::IsAllTypesAssignableTo(Type *source, Type *target) in IsAllTypesAssignableTo() argument
122 if (source->TypeFlags() == TypeFlag::UNION) { in IsAllTypesAssignableTo()
123 auto &types = source->AsUnionType()->ConstituentTypes(); in IsAllTypesAssignableTo()
129 return relation_->IsAssignableTo(source, target); in IsAllTypesAssignableTo()
132 bool Checker::IsTypeIdenticalTo(Type *source, Type *target) in IsTypeIdenticalTo() argument
134 return relation_->IsIdenticalTo(source, target); in IsTypeIdenticalTo()
137 bool Checker::IsTypeIdenticalTo(Type *source, Type *target, const std::string &errMsg, in IsTypeIdenticalTo() argument
140 if (!IsTypeIdenticalTo(source, target)) { in IsTypeIdenticalTo()
147 bool Checker::IsTypeIdenticalTo(Type *source, Type *target, std::initializer_list<TypeErrorMessageElement> list, in IsTypeIdenticalTo() argument
150 if (!IsTypeIdenticalTo(source, targe in IsTypeIdenticalTo()
157 IsTypeAssignableTo(Type *source, Type *target) IsTypeAssignableTo() argument
162 IsTypeAssignableTo(Type *source, Type *target, const std::string &errMsg, const lexer::SourcePosition &errPos) IsTypeAssignableTo() argument
172 IsTypeAssignableTo(Type *source, Type *target, std::initializer_list<TypeErrorMessageElement> list, const lexer::SourcePosition &errPos) IsTypeAssignableTo() argument
182 IsTypeComparableTo(Type *source, Type *target) IsTypeComparableTo() argument
187 IsTypeComparableTo(Type *source, Type *target, const std::string &errMsg, const lexer::SourcePosition &errPos) IsTypeComparableTo() argument
197 IsTypeComparableTo(Type *source, Type *target, std::initializer_list<TypeErrorMessageElement> list, const lexer::SourcePosition &errPos) IsTypeComparableTo() argument
207 AreTypesComparable(Type *source, Type *target) AreTypesComparable() argument
212 IsTypeEqualityComparableTo(Type *source, Type *target) IsTypeEqualityComparableTo() argument
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/
H A Dstd_core_Runtime.cpp35 uint8_t StdCoreRuntimeIsSameReference([[maybe_unused]] ObjectHeader *header, EtsObject *source, EtsObject *target) in StdCoreRuntimeIsSameReference() argument
37 return (source == target) ? UINT8_C(1) : UINT8_C(0); in StdCoreRuntimeIsSameReference()
40 EtsInt StdCoreRuntimeGetHashCode([[maybe_unused]] ObjectHeader *header, EtsObject *source) in StdCoreRuntimeGetHashCode() argument
42 ASSERT(source != nullptr); in StdCoreRuntimeGetHashCode()
43 if (source->IsHashed()) { in StdCoreRuntimeGetHashCode()
44 return source->GetInteropHash(); in StdCoreRuntimeGetHashCode()
47 source->SetInteropHash(hash); in StdCoreRuntimeGetHashCode()
62 ObjectHeader *StdCoreRuntimeFailedTypeCastException(EtsObject *source, EtsString *target) in StdCoreRuntimeFailedTypeCastException() argument
66 auto message = PandaString(ReferenceTypeString(coro, source)) + " cannot be cast to " + target->GetMutf8(); in StdCoreRuntimeFailedTypeCastException()
/arkcompiler/runtime_core/static_core/compiler/tests/
H A Dinlining_test.cpp96 auto source = R"( in TEST_F() local
118 ASSERT_TRUE(ParseToGraph(source, "main")); in TEST_F()
125 auto source = R"( in TEST_F() local
159 ASSERT_TRUE(ParseToGraph(source, "main")); in TEST_F()
166 auto source = R"( in TEST_F() local
183 ASSERT_TRUE(ParseToGraph(source, "main")); in TEST_F()
190 auto source = R"( in TEST_F() local
216 ASSERT_TRUE(ParseToGraph(source, "main")); in TEST_F()
229 auto source = R"( in TEST_F() local
251 ASSERT_TRUE(ParseToGraph(source, "mai in TEST_F()
265 auto source = R"( TEST_F() local
292 auto source = R"(.function u1 main() { TEST_F() local
329 auto source = R"(.function u1 main() { TEST_F() local
593 auto source = R"( TEST_F() local
656 auto source = R"( CreateSourcePolymorphicInlineWithThrow() local
717 auto source = CreateSourcePolymorphicInlineWithThrow(); TEST_F() local
[all...]
H A Dir_builder_test.cpp59 std::string source = ".function " + currType + " main("; in CheckSimple() local
60 source += currType + " a0) {\n"; in CheckSimple()
62 source += "mov" + instType + " v0, a0\n"; in CheckSimple()
63 source += "lda" + instType + " v0\n"; in CheckSimple()
65 source += "lda" + instType + " a0\n"; in CheckSimple()
67 source += "lda" + instType + " a0\n"; in CheckSimple()
68 source += "sta" + instType + " v0\n"; in CheckSimple()
69 source += "lda" + instType + " v0\n"; in CheckSimple()
73 source += "return" + instType + "\n"; in CheckSimple()
74 source in CheckSimple()
98 std::string source = ".function " + currType + " main() {\\n"; CheckSimpleWithImm() local
143 std::string source = ".function i32 main("; CheckCmp() local
175 std::string source = ".function i32 main("; CheckFloatCmp() local
262 std::string source = ".function void main("; CheckCondJump() local
315 std::string source = ".function void main("; CheckCondJumpWithZero() local
357 auto source = R"( TEST_F() local
394 auto source = R"( TEST_F() local
427 auto source = R"( TEST_F() local
455 auto source = R"( TEST_F() local
485 auto source = R"( TEST_F() local
515 auto source = R"( TEST_F() local
545 auto source = R"( TEST_F() local
571 auto source = R"( TEST_F() local
597 auto source = R"( TEST_F() local
623 auto source = R"( TEST_F() local
649 auto source = R"( TEST_F() local
675 auto source = R"( TEST_F() local
701 auto source = R"( TEST_F() local
727 auto source = R"( TEST_F() local
753 auto source = R"( TEST_F() local
778 auto source = R"( TEST_F() local
805 auto source = R"( TEST_F() local
900 auto source = R"( TEST_F() local
997 auto source = R"( TEST_F() local
1053 auto source = R"( TEST_F() local
1078 auto source = R"( TEST_F() local
1143 auto source = R"( TEST_F() local
1319 auto source = R"( TEST_F() local
1345 auto source = R"( TEST_F() local
1371 auto source = R"( TEST_F() local
1397 auto source = R"( TEST_F() local
1423 auto source = R"( TEST_F() local
1449 auto source = R"( TEST_F() local
1475 auto source = R"( TEST_F() local
1501 auto source = R"( TEST_F() local
1527 auto source = R"( TEST_F() local
1553 auto source = R"( TEST_F() local
1579 auto source = R"( TEST_F() local
1605 auto source = R"( TEST_F() local
1631 auto source = R"( TEST_F() local
1657 auto source = R"( TEST_F() local
1683 auto source = R"( TEST_F() local
1709 auto source = R"( TEST_F() local
1735 auto source = R"( TEST_F() local
1761 auto source = R"( TEST_F() local
1787 auto source = R"( TEST_F() local
1813 auto source = R"( TEST_F() local
1839 auto source = R"( TEST_F() local
1865 auto source = R"( TEST_F() local
1891 auto source = R"( TEST_F() local
1917 auto source = R"( TEST_F() local
1943 auto source = R"( TEST_F() local
1969 auto source = R"( TEST_F() local
1995 auto source = R"( TEST_F() local
2021 auto source = R"( TEST_F() local
2047 auto source = R"( TEST_F() local
2075 auto source = R"( TEST_F() local
2103 auto source = R"( TEST_F() local
2131 auto source = R"( TEST_F() local
2159 auto source = R"( TEST_F() local
2187 auto source = R"( TEST_F() local
2215 auto source = R"( TEST_F() local
2243 auto source = R"( TEST_F() local
2271 auto source = R"( TEST_F() local
2296 auto source = R"( TEST_F() local
2321 auto source = R"( TEST_F() local
2346 auto source = R"( TEST_F() local
2371 auto source = R"( TEST_F() local
2396 auto source = R"( TEST_F() local
2421 auto source = R"( TEST_F() local
2446 auto source = R"( TEST_F() local
2471 auto source = R"( TEST_F() local
2496 auto source = R"( TEST_F() local
2523 auto source = R"( TEST_F() local
2550 auto source = R"( TEST_F() local
2576 auto source = R"( TEST_F() local
2602 auto source = R"( TEST_F() local
2628 auto source = R"( TEST_F() local
2654 auto source = R"( TEST_F() local
2680 auto source = R"( TEST_F() local
2706 auto source = R"( TEST_F() local
2732 auto source = R"( TEST_F() local
2758 auto source = R"( TEST_F() local
2784 auto source = R"( TEST_F() local
2812 auto source = R"( TEST_F() local
2840 auto source = R"( TEST_F() local
2865 auto source = R"( TEST_F() local
2890 auto source = R"( TEST_F() local
2915 auto source = R"( TEST_F() local
2940 auto source = R"( TEST_F() local
2965 auto source = R"( TEST_F() local
2990 auto source = R"( TEST_F() local
3017 auto source = R"( TEST_F() local
3043 auto source = R"( TEST_F() local
3069 auto source = R"( TEST_F() local
3095 auto source = R"( TEST_F() local
3121 auto source = R"( TEST_F() local
3147 auto source = R"( TEST_F() local
3173 auto source = R"( TEST_F() local
3199 auto source = R"( TEST_F() local
3225 auto source = R"( TEST_F() local
3251 auto source = R"( TEST_F() local
3277 auto source = R"( TEST_F() local
3303 auto source = R"( TEST_F() local
3329 auto source = R"( TEST_F() local
3355 auto source = R"( TEST_F() local
3381 auto source = R"( TEST_F() local
3407 auto source = R"( TEST_F() local
3433 auto source = R"( TEST_F() local
3459 auto source = R"( TEST_F() local
3485 auto source = R"( TEST_F() local
3510 auto source = R"( TEST_F() local
3535 auto source = R"( TEST_F() local
3560 auto source = R"( TEST_F() local
3590 auto source = R"( TEST_F() local
3620 auto source = R"( TEST_F() local
3650 auto source = R"( TEST_F() local
3680 auto source = R"( TEST_F() local
3710 auto source = R"( TEST_F() local
3740 auto source = R"( TEST_F() local
3770 auto source = R"( TEST_F() local
3800 auto source = R"( TEST_F() local
3831 auto source = R"( TEST_F() local
3862 auto source = R"( TEST_F() local
3893 auto source = R"( TEST_F() local
3924 auto source = R"( TEST_F() local
3955 auto source = R"( TEST_F() local
3986 auto source = R"( TEST_F() local
4017 auto source = R"( TEST_F() local
4050 auto source = R"( TEST_F() local
4076 auto source = R"( TEST_F() local
4104 auto source = R"( TEST_F() local
4169 auto source = R"( TEST_F() local
4288 auto source = R"( TEST_F() local
4313 auto source = R"( TEST_F() local
4346 auto source = R"( TEST_F() local
4380 auto source = R"( TEST_F() local
4411 auto source = R"( TEST_F() local
4443 auto source = R"( TEST_F() local
4474 auto source = R"( TEST_F() local
4507 auto source = R"( TEST_F() local
4540 auto source = R"( TEST_F() local
4573 auto source = R"( TEST_F() local
4602 auto source = R"( TEST_F() local
4631 auto source = R"( TEST_F() local
4660 auto source = R"( TEST_F() local
4692 auto source = R"( TEST_F() local
4724 auto source = R"( TEST_F() local
4756 auto source = R"( TEST_F() local
4779 auto source = R"( TEST_F() local
4802 auto source = R"( TEST_F() local
4826 auto source = R"( TEST_F() local
4846 auto source = R"( TEST_F() local
4870 auto source = R"( TEST_F() local
4908 auto source = R"( TEST_F() local
4946 auto source = R"( TEST_F() local
4977 auto source = R"( TEST_F() local
5009 auto source = R"( TEST_F() local
5076 auto source = R"( TEST_F() local
5146 auto source = R"( TEST_F() local
5231 auto source = R"( TEST_F() local
5317 auto source = R"( TEST_F() local
5359 auto source = R"( TEST_F() local
5417 auto source = R"( TEST_F() local
5511 auto source = R"( TEST_F() local
5592 auto source = R"( TEST_F() local
5688 auto source = R"( TEST_F() local
5771 auto source = R"( TEST_F() local
5811 auto source = R"( TEST_F() local
5856 auto source = R"( TEST_F() local
5904 auto source = R"( TEST_F() local
5973 auto source = R"( TEST_F() local
6001 auto source = R"( TEST_F() local
6088 auto source = R"( TEST_F() local
6171 auto source = R"( TEST_F() local
6206 auto source = R"( TEST_F() local
6288 auto source = R"( TEST_F() local
6320 auto source = R"( TEST_F() local
6368 auto source = R"( TEST_F() local
6509 auto source = R"( TEST_F() local
6546 auto source = R"( TEST_F() local
6583 auto source = R"( TEST_F() local
[all...]
H A Dpanda_runner.h48 void Parse(std::string_view source) in Parse() argument
52 auto res = parser.Parse(source.data()); in Parse()
68 void Run(std::string_view source) in Run() argument
70 return Run(source, std::vector<std::string> {}); in Run()
73 void Run(std::string_view source, Callback hook) in Run() argument
76 return Run(source, ssize_t(0)); in Run()
79 void Run(std::string_view source, ssize_t expectedResult) in Run() argument
82 return Run(source, std::vector<std::string> {}); in Run()
85 void Run(std::string_view source, const std::vector<std::string> &args) in Run() argument
95 Run(CreateRuntime(), source, arg in Run() local
98 Run(Runtime *runtime, std::string_view source, const std::vector<std::string> &args) Run() argument
[all...]
H A Dcall_input_types_test.cpp37 auto source = R"( in TEST_F() local
49 ASSERT_TRUE(ParseToGraph(source, "main")); in TEST_F()
59 auto source = R"( in TEST_F() local
71 ASSERT_TRUE(ParseToGraph(source, "main")); in TEST_F()
78 auto source = R"( in TEST_F() local
95 ASSERT_TRUE(ParseToGraph(source, "main")); in TEST_F()
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
H A Djs_pandafile_test.cpp58 std::shared_ptr<JSPandaFile> CreateJSPandaFile(const char *source, const CString filename) in CreateJSPandaFile() argument
62 auto res = parser.Parse(source, fn); in CreateJSPandaFile()
74 const char *source = R"( in HWTEST_F_L0() local
78 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName); in HWTEST_F_L0()
84 const char *source = R"( in HWTEST_F_L0() local
88 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName); in HWTEST_F_L0()
95 const char *source = R"( in HWTEST_F_L0() local
99 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileName); in HWTEST_F_L0()
106 const char *source = R"( in HWTEST_F_L0() local
112 std::shared_ptr<JSPandaFile> pf = CreateJSPandaFile(source, fileNam in HWTEST_F_L0()
122 const char *source = R"( HWTEST_F_L0() local
156 const char *source = R"( HWTEST_F_L0() local
207 const char *source = R"( HWTEST_F_L0() local
241 const char *source = R"( HWTEST_F_L0() local
275 const char *source = R"( HWTEST_F_L0() local
290 const char *source = R"( HWTEST_F_L0() local
302 const char *source = R"( HWTEST_F_L0() local
315 const char *source = R"( HWTEST_F_L0() local
[all...]
/arkcompiler/runtime_core/bytecode_optimizer/tests/
H A Dcommon.h184 bool ParseToGraph(const std::string &source, const std::string &func_name, const char *file_name = "test.pb") in ParseToGraph() argument
187 auto res = parser.Parse(source, file_name); in ParseToGraph()
434 std::string source = ".function " + curr_type + " main(";
435 source += curr_type + " a0){\n";
437 source += "mov" + inst_type + " v0, a0\n";
438 source += "lda" + inst_type + " v0\n";
440 source += "lda" + inst_type + " a0\n";
442 source += "lda" + inst_type + " a0\n";
443 source += "sta" + inst_type + " v0\n";
444 source
[all...]
/arkcompiler/runtime_core/static_core/bytecode_optimizer/tests/
H A Dcommon.h193 bool ParseToGraph(const std::string &source, const std::string &funcName, const char *fileName = "test.pb") in ParseToGraph() argument
196 auto res = parser.Parse(source, fileName); in ParseToGraph()
478 std::string source = ".function " + currType + " main("; in CheckSimple() local
479 source += currType + " a0){\n"; in CheckSimple()
481 source += "mov" + instType + " v0, a0\n"; in CheckSimple()
482 source += "lda" + instType + " v0\n"; in CheckSimple()
484 source += "lda" + instType + " a0\n"; in CheckSimple()
486 source += "lda" + instType + " a0\n"; in CheckSimple()
487 source += "sta" + instType + " v0\n"; in CheckSimple()
488 source in CheckSimple()
517 std::string source = ".function " + currType + " main(){\\n"; CheckSimpleWithImm() local
561 std::string source = ".function i32 main("; CheckCmp() local
594 std::string source = ".function i32 main("; CheckFloatCmp() local
634 std::string source = ".function void main("; CheckCondJumpWithZero() local
681 std::string source = ".function void main("; CheckCondJump() local
[all...]
/arkcompiler/ets_frontend/ets2panda/checker/types/ts/
H A DobjectType.cpp30 return std::all_of(sourceSignatures.begin(), sourceSignatures.end(), [relation, &targetCopy](Signature *source) { in EachSignatureRelatedToSomeSignature()
31 return SignatureRelatedToSomeSignature(relation, source, &targetCopy); in EachSignatureRelatedToSomeSignature()
121 void ObjectType::AssignProperties(TypeRelation *relation, ObjectType *source) in AssignProperties() argument
128 varbinder::LocalVariable *found = source->GetProperty(it->Name(), true); in AssignProperties()
163 void ObjectType::AssignSignatures(TypeRelation *relation, ObjectType *source, bool assignCallSignatures) in AssignSignatures() argument
167 assignCallSignatures ? source->CallSignatures() : source->ConstructSignatures(); in AssignSignatures()
187 void ObjectType::AssignIndexInfo([[maybe_unused]] TypeRelation *relation, ObjectType *source, bool assignNumberInfo) in AssignIndexInfo() argument
190 IndexInfo *sourceInfo = assignNumberInfo ? source->NumberIndexInfo() : source in AssignIndexInfo()
210 CheckExcessProperties(TypeRelation *relation, ObjectType *source) CheckExcessProperties() argument
225 AssignmentTarget(TypeRelation *relation, Type *source) AssignmentTarget() argument
[all...]

Completed in 223 milliseconds

12345678910>>...16