| /arkcompiler/runtime_core/static_core/cmake/third_party/icu/ |
| D | CMakeLists.txt | 4 ${ICU_ROOT}/icu4c/source/common/unistr_case.cpp 5 ${ICU_ROOT}/icu4c/source/common/loclikely.cpp 6 ${ICU_ROOT}/icu4c/source/common/loclikelysubtags.cpp 7 ${ICU_ROOT}/icu4c/source/common/ustrcase_locale.cpp 8 ${ICU_ROOT}/icu4c/source/common/usprep.cpp 9 ${ICU_ROOT}/icu4c/source/common/uhash_us.cpp 10 ${ICU_ROOT}/icu4c/source/common/ucharstriebuilder.cpp 11 ${ICU_ROOT}/icu4c/source/common/uloc.cpp 12 ${ICU_ROOT}/icu4c/source/common/rbbi.cpp 13 ${ICU_ROOT}/icu4c/source/common/locresdata.cpp [all …]
|
| /arkcompiler/runtime_core/cmake/ark-third-party/icu/ |
| D | CMakeLists.txt | 4 ${ICU_ROOT}/icu4c/source/common 5 ${ICU_ROOT}/icu4c/source/i18n 6 ${ICU_ROOT}/icu4c/source 22 ${ICU_ROOT}/icu4c/source/common/appendable.cpp 23 ${ICU_ROOT}/icu4c/source/common/bmpset.cpp 24 ${ICU_ROOT}/icu4c/source/common/brkeng.cpp 25 ${ICU_ROOT}/icu4c/source/common/brkiter.cpp 26 ${ICU_ROOT}/icu4c/source/common/bytesinkutil.cpp 27 ${ICU_ROOT}/icu4c/source/common/bytestream.cpp 28 ${ICU_ROOT}/icu4c/source/common/bytestrie.cpp [all …]
|
| /arkcompiler/runtime_core/gn/ark-third-party/icu/ |
| D | BUILD.gn | 20 "$ark_root/ark-third-party/icu/icu4c/source/common", 21 "$ark_root/ark-third-party/icu/icu4c/source/i18n", 22 "$ark_root/ark-third-party/icu/icu4c/source", 33 [ "$ark_root/ark-third-party/icu/icu4c/source/stubdata/stubdata.cpp" ] 50 source = "$ark_root/ark-third-party/icu/ohos_icu4j/data/icudt67l.dat" 57 "$ark_root/ark-third-party/icu/icu4c/source/common/ubiditransform.cpp", 58 "$ark_root/ark-third-party/icu/icu4c/source/common/locutil.cpp", 59 "$ark_root/ark-third-party/icu/icu4c/source/common/cstring.cpp", 60 "$ark_root/ark-third-party/icu/icu4c/source/common/rbbiscan.cpp", 61 "$ark_root/ark-third-party/icu/icu4c/source/common/utrie.cpp", [all …]
|
| /arkcompiler/ets_frontend/legacy_bin/ |
| D | BUILD.gn | 18 source = "./api8/bin/linux/js2abc" 19 output = "js_linux/${source}" 25 source = "./api8/bin/win/js2abc.exe" 26 output = "js_win/${source}" 32 source = "./api8/bin/mac/js2abc" 33 output = "js_mac/${source}" 39 source = "./api8/src/index.js" 40 output = "js_linux/${source}" 46 source = "./api8/src/index.js" 47 output = "js_win/${source}" [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tests/ |
| D | regexp_test.cpp | 106 PandaString source = u8"A"; // u8前缀确保UTF-8编码 in TEST_F() local 107 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 108 const auto *p = reinterpret_cast<const uint8_t *>(source.c_str()); in TEST_F() 113 PandaString source = u8"¢"; // u8前缀确保UTF-8编码 in TEST_F() local 114 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 115 const auto *p = reinterpret_cast<const uint8_t *>(source.c_str()); in TEST_F() 120 PandaString source = u8"€"; // u8前缀确保UTF-8编码 in TEST_F() local 121 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in TEST_F() 122 const auto *p = reinterpret_cast<const uint8_t *>(source.c_str()); in TEST_F() 127 PandaString source = u8""; // u8前缀确保UTF-8编码 in TEST_F() local [all …]
|
| /arkcompiler/ets_frontend/es2panda/typescript/core/ |
| D | typeRelation.cpp | 20 bool Checker::IsAllTypesAssignableTo(Type *source, Type *target) in IsAllTypesAssignableTo() argument 22 if (source->TypeFlags() == TypeFlag::UNION) { in IsAllTypesAssignableTo() 23 auto &types = source->AsUnionType()->ConstituentTypes(); in IsAllTypesAssignableTo() 29 return relation_->IsAssignableTo(source, target); in IsAllTypesAssignableTo() 32 bool Checker::IsTypeIdenticalTo(Type *source, Type *target) in IsTypeIdenticalTo() argument 34 return relation_->IsIdenticalTo(source, target); in IsTypeIdenticalTo() 37 bool Checker::IsTypeIdenticalTo(Type *source, Type *target, const std::string &errMsg, in IsTypeIdenticalTo() argument 40 if (!IsTypeIdenticalTo(source, target)) { in IsTypeIdenticalTo() 47 bool Checker::IsTypeIdenticalTo(Type *source, Type *target, std::initializer_list<TypeErrorMessageE… in IsTypeIdenticalTo() argument 50 if (!IsTypeIdenticalTo(source, target)) { in IsTypeIdenticalTo() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/checker/ets/ |
| D | conversion.h | 23 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, ETSArrayType *target); [all …]
|
| D | conversion.cpp | 26 void Identity(TypeRelation *const relation, Type *const source, Type *const target) in Identity() argument 28 relation->IsIdenticalTo(source, target); in Identity() 31 void WideningPrimitive(TypeRelation *const relation, Type *const source, Type *const target) in WideningPrimitive() argument 33 ES2PANDA_ASSERT(source->IsETSPrimitiveType() && target->IsETSPrimitiveType()); in WideningPrimitive() 35 WideningConverter(relation->GetChecker()->AsETSChecker(), relation, target, source); in WideningPrimitive() 38 void NarrowingPrimitive(TypeRelation *const relation, Type *const source, Type *const target) in NarrowingPrimitive() argument 40 ES2PANDA_ASSERT(source->IsETSPrimitiveType() && target->IsETSPrimitiveType()); in NarrowingPrimitive() 42 NarrowingConverter(relation->GetChecker()->AsETSChecker(), relation, target, source); in NarrowingPrimitive() 45 void WideningNarrowingPrimitive(TypeRelation *const relation, ByteType *const source, CharType *con… in WideningNarrowingPrimitive() argument 48 WideningPrimitive(relation, source, tempInt); in WideningNarrowingPrimitive() [all …]
|
| D | typeConverter.h | 27 TypeConverter(ETSChecker *checker, TypeRelation *relation, Type *target, Type *source); 30 Type *Source() const; 38 static TargetType *ConvertConstant(SourceType *source, ArenaAllocator *allocator) in ConvertConstant() argument 41 return source; in ConvertConstant() 43 …auto target = allocator->New<TargetType>(static_cast<typename TargetType::UType>(source->GetValue(… in ConvertConstant() 47 …ES2PANDA_ASSERT(source->GetValue() == static_cast<typename SourceType::UType>(target->GetValue())); in ConvertConstant() 51 std::isnan(source->GetValue()) || std::isinf(source->GetValue()) || in ConvertConstant() 52 … (std::abs(source->GetValue()) <= static_cast<double>(std::numeric_limits<float>::max()) && in ConvertConstant() 53 … std::abs(source->GetValue()) >= static_cast<double>(std::numeric_limits<float>::min()))); in ConvertConstant() 63 static Type *ConvertConstantType(Type *source, ArenaAllocator *allocator) in ConvertConstantType() argument [all …]
|
| D | unboxingConverter.h | 26 UnboxingConverter(ETSChecker *checker, TypeRelation *relation, Type *source) in UnboxingConverter() argument 27 : TypeConverter(checker, relation, nullptr, source) in UnboxingConverter() 29 if (!source->IsETSUnboxableObject()) { in UnboxingConverter() 34 SetResult(Convert(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() 41 SetResult(Source()); in UnboxingConverter() 43 if (!Source()->IsETSUnboxableObject() || relation->IsTrue()) { in UnboxingConverter() 47 SetResult(Convert(checker, source->AsETSObjectType())); in UnboxingConverter()
|
| D | boxingConverter.h | 25 BoxingConverter(ETSChecker *checker, TypeRelation *relation, Type *source) in BoxingConverter() argument 26 : TypeConverter(checker, relation, nullptr, source) in BoxingConverter() 28 if (!source->IsETSPrimitiveType()) { in BoxingConverter() 33 SetResult(Convert(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->IsETSPrimitiveType()) { in BoxingConverter() 49 SetResult(Convert(checker, source)); in BoxingConverter() 54 static checker::ETSObjectType *Convert(ETSChecker const *checker, Type const *source);
|
| /arkcompiler/ets_frontend/ets2panda/checker/types/ |
| D | typeRelation.cpp | 29 RelationResult TypeRelation::CacheLookup(const Type *source, const Type *target, const RelationHold… in CacheLookup() argument 36 ES2PANDA_ASSERT(source != nullptr); in CacheLookup() 39 RelationKey relationKey {source->Id(), target->Id()}; in CacheLookup() 56 bool TypeRelation::IsIdenticalTo(Type *source, Type *target) in IsIdenticalTo() argument 58 if (source == nullptr || target == nullptr) { in IsIdenticalTo() 62 if (source == target) { in IsIdenticalTo() 66 result_ = CacheLookup(source, target, checker_->IdenticalResults(), RelationType::IDENTICAL); in IsIdenticalTo() 68 checker_->ResolveStructuredTypeMembers(source); in IsIdenticalTo() 71 target->Identical(this, source); in IsIdenticalTo() 72 …checker_->IdenticalResults().cached.insert({{source->Id(), target->Id()}, {result_, RelationType::… in IsIdenticalTo() [all …]
|
| /arkcompiler/ets_frontend/es2panda/typescript/types/ |
| D | typeRelation.cpp | 49 RelationResult TypeRelation::CacheLookup(const Type *source, const Type *target, const RelationHold… in CacheLookup() argument 56 CHECK_NOT_NULL(source); in CacheLookup() 58 RelationKey relationKey {source->Id(), target->Id()}; in CacheLookup() 75 bool TypeRelation::IsIdenticalTo(Type *source, Type *target) in IsIdenticalTo() argument 77 if (source == target) { in IsIdenticalTo() 83 result_ = CacheLookup(source, target, checker_->IdenticalResults(), RelationType::IDENTICAL); in IsIdenticalTo() 85 CHECK_NOT_NULL(source); in IsIdenticalTo() 86 checker_->ResolveStructuredTypeMembers(source); in IsIdenticalTo() 89 target->Identical(this, source); in IsIdenticalTo() 90 …checker_->IdenticalResults().cached.insert({{source->Id(), target->Id()}, {result_, RelationType::… in IsIdenticalTo() [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/ut/utils/ |
| D | SourceMapMergingUtil.spec.ts | 21 Source, 33 * // source ts code: 78 let source: Source; variable 82 source = new Source('example.js', 'console.log("Hello, World!");'); 96 const sourceMapLink = new SourceMapLink(mappings, [source]); 132 it('segment.length === 1 && source == true', function () { 133 let source: Source = new Source('filename1', 'content1'); variable 139 const sourceMapLink = new SourceMapLink(mappings, [source]); 144 it('segment.length !== 1 && source == true', function () { 145 let source: Source = new Source('filename2', 'content2'); variable [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/js/language/arguments-object/ |
| D | test-key-named-called-func-bound-value.js | 18 "show source"; 22 "show source"; 26 "show source"; 30 "show source"; 34 "show source"; 38 "show source"; 42 "show source"; 46 "show source"; 50 "show source"; 54 "show source"; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/regexp/tests/ |
| D | regexp_test.cpp | 122 CString source("0{2,1}"); in HWTEST_F_L0() local 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() local 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() local 143 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in HWTEST_F_L0() 152 CString source("a**"); in HWTEST_F_L0() local 153 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in HWTEST_F_L0() 162 CString source("a***"); in HWTEST_F_L0() local 163 … parser.Init(const_cast<char *>(reinterpret_cast<const char *>(source.c_str())), source.size(), 0); in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/checker/ |
| D | checker.cpp | 62 bool Checker::IsAllTypesAssignableTo(Type *source, Type *target) in IsAllTypesAssignableTo() argument 64 if (source->TypeFlags() == TypeFlag::UNION) { in IsAllTypesAssignableTo() 65 auto &types = source->AsUnionType()->ConstituentTypes(); in IsAllTypesAssignableTo() 71 return relation_->IsAssignableTo(source, target); in IsAllTypesAssignableTo() 74 bool Checker::IsTypeIdenticalTo(Type *source, Type *target) in IsTypeIdenticalTo() argument 76 return relation_->IsIdenticalTo(source, target); in IsTypeIdenticalTo() 79 bool Checker::IsTypeIdenticalTo(Type *source, Type *target, const diagnostic::DiagnosticKind &diagK… in IsTypeIdenticalTo() argument 82 if (!IsTypeIdenticalTo(source, target)) { in IsTypeIdenticalTo() 90 bool Checker::IsTypeIdenticalTo(Type *source, Type *target, const diagnostic::DiagnosticKind &diagK… in IsTypeIdenticalTo() argument 93 return IsTypeIdenticalTo(source, target, diagKind, {}, errPos); in IsTypeIdenticalTo() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/checker/types/ets/ |
| D | etsStringType.cpp | 22 bool AreStringTypesAssignable(Type *source, Type *target) in AreStringTypesAssignable() argument 25 return source->IsConstantType() && in AreStringTypesAssignable() 26 source->AsETSStringType()->GetValue() == target->AsETSStringType()->GetValue(); in AreStringTypesAssignable() 47 void ETSStringType::AssignmentTarget(TypeRelation *relation, Type *source) in AssignmentTarget() argument 49 relation->Result(source->IsETSStringType() && AreStringTypesAssignable(source, this)); in AssignmentTarget() 58 void ETSStringType::IsSupertypeOf(TypeRelation *relation, Type *source) in IsSupertypeOf() argument 61 Identical(relation, source); in IsSupertypeOf() 65 relation->IsSupertypeOf(checker->GlobalBuiltinETSStringType(), source); in IsSupertypeOf() 68 void ETSStringType::IsSubtypeOf(TypeRelation *relation, Type *source) in IsSubtypeOf() argument 70 if (source->IsConstantType()) { in IsSubtypeOf() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/utils/ |
| D | test_core_typedarray.j2 | 22 …rayBufferTwoParams(),"Create default empty {{.item.objectType}} from non empty source two params"); 23 …msZeroLength(),"Create default empty {{.item.objectType}} from non empty source two params with ze… 26 failures += check(createArrayFromArray(), "Create Array object from source array"); 27 …failures += check(createArrayFromArrayWithOffset(), "Create Array object from source array with gi… 29 …failures += check(createFilteredArrayFromGiven(), "Create Array object from source array with appl… 85 const source: FixedArray<{{.item.primitiveType}}> = {{.item.data}}; 93 let ss = new ArrayBuffer(source.length as int * {{.item.primitiveSizeBytes}}); 100 for (let i: int = 0; i < source.length as int; i++) { 102 target.set(i, source[i] as {{.item.primitiveType}}); 108 for (let i: int = 0; i < source.length as int; i++) { [all …]
|
| D | test_core_typeduarray.j2 | 22 failures += check(createArrayFromArray(), "Create Array object from source array"); 23 …failures += check(createArrayFromArrayWithOffset(), "Create Array object from source array with gi… 25 …failures += check(createFilteredArrayFromGiven(), "Create Array object from source array with appl… 34 failures += check(createArraySetAndGet(), "Create Array from source data"); 53 const source: FixedArray<{{.item.primitiveType}}> = {{.item.data}}; 56 let ss = new ArrayBuffer(source.length as int * {{.item.primitiveSizeBytes}}); 63 for (let i: int = 0; i < source.length as int; i++) { 65 target.set(i, source[i] as {{.item.primitiveType}}); 71 for (let i: int = 0; i < source.length as int; i++) { 73 if (back != source[i]) { [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/ |
| D | thread_state.cpp | 55 const char *source = "/test.ets"; member in ark::tooling::inspector::test::ThreadStateTest 61 state->OnSingleStep(fake, source); in TEST_F() 65 state->OnSingleStep(fake, source); in TEST_F() 72 state->OnSingleStep(fake, source); in TEST_F() 75 state->OnSingleStep(fake, source); in TEST_F() 81 state->OnSingleStep(fake, source); in TEST_F() 88 state->OnSingleStep(fake, source); in TEST_F() 96 state->OnSingleStep(location2, source); in TEST_F() 98 state->OnSingleStep(location3, source); in TEST_F() 105 state->OnSingleStep(fake, source); in TEST_F() [all …]
|
| /arkcompiler/toolchain/tooling/static/tests/ |
| D | thread_state.cpp | 55 const char *source = "/test.ets"; member in ark::tooling::inspector::test::ThreadStateTest 61 state->OnSingleStep(fake, source); in TEST_F() 65 state->OnSingleStep(fake, source); in TEST_F() 72 state->OnSingleStep(fake, source); in TEST_F() 75 state->OnSingleStep(fake, source); in TEST_F() 81 state->OnSingleStep(fake, source); in TEST_F() 88 state->OnSingleStep(fake, source); in TEST_F() 96 state->OnSingleStep(location2, source); in TEST_F() 98 state->OnSingleStep(location3, source); in TEST_F() 105 state->OnSingleStep(fake, source); in TEST_F() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/escompat/ |
| D | escompat_Array_find.ets | 46 const source: Object[] = {{.item.copySource}} 53 const src = Array.from<object>(source) 54 let match: Object = source[2] 63 const src = Array.from<object>(source) 73 const src = Array.from<object>(source) 74 let match: Object = source[2] 83 const src = Array.from<object>(source) 95 const src = Array.from<object>(source) 96 let match: Object = source[2] 105 const src = Array.from<object>(source) [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/ |
| D | ets_class_file_test.cpp | 33 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, "LA;"); in TEST_F() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/bindings/test/expected/ |
| D | getSuggestionDiagnostics.json | 6 "source": "", string 28 "source": "", string 50 "source": "", string 72 "source": "", string 94 "source": "", string 116 "source": "", string 138 "source": "", string 160 "source": "", string 182 "source": "", string 204 "source": "", string [all …]
|