| /arkcompiler/ets_runtime/common_components/tests/ |
| D | ohos_test.xml | 16 <target name="Allocator_Test"> 20 </target> 21 <target name="Barrier_Test"> 25 </target> 26 <target name="Base_Runtime_Test"> 30 </target> 31 <target name="Base_String_Test"> 35 </target> 36 <target name="Collector_Test"> 40 </target> [all …]
|
| /arkcompiler/ets_runtime/test/resource/js_runtime/ |
| D | ohos_test.xml | 16 <target name="JSHelper_ArrayHelper_Test"> 20 </target> 21 <target name="JSHelper_AtomicHelper_Test"> 25 </target> 26 <target name="JSHelper_BitHelper_Test"> 30 </target> 31 <target name="Builtins_Base_Test"> 35 </target> 36 <target name="JSHelper_ErrorHelper_Test"> 40 </target> [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/modules/ |
| D | CMakeLists.txt | 18 function(compile_arktsconfig_unit TARGET ABC_FILES WORK_DIR ARKTS_CONFIG ETS_SOURCES) 23 compile_ets_sources(${WORK_DIR} ${TARGET} RESULT "${ETS_SOURCES}" 48 function(build_spawn_native_module TARGET OUTPUT_DIR) 49 panda_add_library(${TARGET} SHARED spawn/spawn.cpp) 50 set_target_properties(${TARGET} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_DIR}) 51 panda_target_link_libraries(${TARGET} arkruntime) 52 panda_target_include_directories(${TARGET} PRIVATE ${PANDA_ETS_PLUGIN_SOURCE}/runtime/ani) 55 function(build_spawn_managed_code TARGET ABC_FILES WORK_DIR) 64 …compile_arktsconfig_unit(${TARGET} RESULT ${WORK_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/spawn/arktsconfi… 71 function(prepare_spawn TARGET ABC_FILES WORK_DIR) [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ets/ |
| D | regression-target-type-context-expected.txt | 15 "program": "regression-target-type-context.ets" 20 "program": "regression-target-type-context.ets" 87 "program": "regression-target-type-context.ets" 92 "program": "regression-target-type-context.ets" 101 "program": "regression-target-type-context.ets" 106 "program": "regression-target-type-context.ets" 114 "program": "regression-target-type-context.ets" 119 "program": "regression-target-type-context.ets" 134 "program": "regression-target-type-context.ets" 139 "program": "regression-target-type-context.ets" [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | Reflect.ets | 22 private static native isLiteralInitializedInterfaceImpl(target: Object): boolean 27 * Gets the field of target, equivalent to target.key 29 * @param target the target object on which to get the field 35 public static get(target: Object, key: PropertyKey): NullishType { 36 if (target instanceof Char || 37 target instanceof Boolean || 38 target instanceof Byte || 39 target instanceof Short || 40 target instanceof Int || 41 target instanceof Long || [all …]
|
| D | ReadonlyArrayProxy.ets | 19 get(target: ReadonlyArray<T>, name: string): NullishType 21 get(target: ReadonlyArray<T>, index: int): T 25 override get(target: ReadonlyArray<T>, name: string): NullishType { 27 return target.length 33 override get(target: ReadonlyArray<T>, index: int): T { 34 return target[index] 39 private target: ReadonlyArray<T> 42 constructor(target: ReadonlyArray<T>, handler: ReadonlyArrayProxyHandler<T>) { 43 this.target = target 48 return this.target.concat(...items) [all …]
|
| /arkcompiler/ets_frontend/es2panda/typescript/core/ |
| D | typeRelation.cpp | 20 bool Checker::IsAllTypesAssignableTo(Type *source, Type *target) in IsAllTypesAssignableTo() argument 26 [this, target](auto *it) { return IsAllTypesAssignableTo(it, target); }); 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() 57 bool Checker::IsTypeAssignableTo(Type *source, Type *target) in IsTypeAssignableTo() argument [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/utils/ |
| D | test_core_typedarray_ctors.j2 | 84 let target: {{.item.objectType}} = new {{.item.objectType}}(); 85 if (target.length as int == 0 && target.byteOffset as int == 0) return success; 90 let target: {{.item.objectType}} = new {{.item.objectType}}(NaN); 91 if (target.length as int == 0 && target.byteOffset as int == 0) return success; 96 let target: {{.item.objectType}} = new {{.item.objectType}}(0); 97 if (target.length as int == 0 && target.byteOffset as int == 0) return success; 102 let target: {{.item.objectType}} = new {{.item.objectType}}(5); 103 …if (target.length as int == 5 && target.byteOffset as int == 0 && target.byteLength as int == 5 * … 110 let target: {{.item.objectType}} = new {{.item.objectType}}(5.4); 111 …if (target.length as int == 5 && target.byteOffset as int == 0 && target.byteLength as int == 5 * … [all …]
|
| D | test_core_typeduarray_ctors.j2 | 83 let target: {{.item.objectType}} = new {{.item.objectType}}(); 84 if (target.length as int == 0 && target.byteOffset as int == 0) return success; 89 let target: {{.item.objectType}} = new {{.item.objectType}}(0); 90 if (target.length as int == 0 && target.byteOffset as int == 0) return success; 95 let target: {{.item.objectType}} = new {{.item.objectType}}(NaN); 96 if (target.length as int == 0 && target.byteOffset as int == 0) return success; 101 let target: {{.item.objectType}} = new {{.item.objectType}}(5.4); 102 …if (target.length as int == 5 && target.byteOffset as int == 0 && target.byteLength as int == 5 * … 109 let target: {{.item.objectType}} = new {{.item.objectType}}(5); 110 …if (target.length as int == 5 && target.byteOffset as int == 0 && target.byteLength as int == 5 * … [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/proxyget/ |
| D | proxyget.js | 19 const target = { price: 99 }; variable 21 get(target, prop) { argument 22 return prop === 'price' ? `$${target[prop]}` : target[prop]; 25 const proxy = new Proxy(target, handler); 47 const target = {}; 48 Object.defineProperty(target, 'key', { 53 const proxy = new Proxy(target, { 54 get(target, prop) { argument 69 const target = {}; 70 Object.defineProperty(target, 'key', { [all …]
|
| /arkcompiler/runtime_core/static_core/cmake/ |
| D | PandaCmakeFunctions.cmake | 18 function(panda_add_executable target) 25 set(ARG_OUTPUT_DIRECTORY "${PANDA_BINARY_ROOT}/bin/${target}") 28 message(VERBOSE "Use prebuilt ${target}") 29 add_executable(${target} IMPORTED GLOBAL) 30 set_property(TARGET ${target} PROPERTY 35 add_executable(${target} ${ARG_UNPARSED_ARGUMENTS}) 38 … set_target_properties(${target} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${ARG_OUTPUT_DIRECTORY}") 64 target_compile_options(${target} PUBLIC "-mcmodel=large") 67 target_link_libraries(${target} ${LINKER_SCRIPT_ARG}) 73 function(panda_set_lib_32bit_property target) [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_reflect.cpp | 22 // ecma 26.1.1 Reflect.apply (target, thisArgument, argumentsList) 29 JSHandle<JSTaggedValue> target = GetCallArg(argv, 0); in ReflectApply() local 32 return ReflectApplyInternal(thread, target, thisArgument, argumentsList); in ReflectApply() 35 …TaggedValue BuiltinsReflect::ReflectApplyInternal(JSThread *thread, JSHandle<JSTaggedValue> target, in ReflectApplyInternal() argument 40 // 1. If IsCallable(target) is false, throw a TypeError exception. in ReflectApplyInternal() 41 if (!target->IsCallable()) { in ReflectApplyInternal() 42 …THROW_TYPE_ERROR_AND_RETURN(thread, "Reflect.apply target is not callable", JSTaggedValue::Excepti… in ReflectApplyInternal() 50 // 4. Return ? Call(target, thisArgument, args). in ReflectApplyInternal() 54 EcmaInterpreter::NewRuntimeCallInfo(thread, target, thisArgument, undefined, argsLength); in ReflectApplyInternal() 60 // ecma 26.1.2 Reflect.construct (target, argumentsList [ , newTarget]) [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/arrayincludesindexof/ |
| D | expect_output.txt | 31 [0] Target = 1 (number): indexOf => 0 lastIndexOf => 1 includes => true 32 [1] Target = 1 (number): indexOf => 0 lastIndexOf => 1 includes => true 33 [2] Target = -1 (number): indexOf => 2 lastIndexOf => 2 includes => true 34 [3] Target = 0 (number): indexOf => 3 lastIndexOf => 5 includes => true 35 [4] Target = 0 (number): indexOf => 3 lastIndexOf => 5 includes => true 36 [5] Target = 0 (number): indexOf => 3 lastIndexOf => 5 includes => true 37 [6] Target = Infinity (number): indexOf => 6 lastIndexOf => 6 includes => true 38 [7] Target = -Infinity (number): indexOf => 7 lastIndexOf => 7 includes => true 39 [8] Target = NaN (number): indexOf => -1 lastIndexOf => -1 includes => true 40 [9] Target = NaN (number): indexOf => -1 lastIndexOf => -1 includes => true [all …]
|
| /arkcompiler/runtime_core/taihe/compiler/taihe/codegen/ani/ |
| D | gen_sts.py | 73 ) as target: 74 target.add_import_decl("@ohos.base", "AsyncCallback") 75 target.add_import_decl("@ohos.base", "BusinessError") 76 self.gen_namespace(ns, target) 77 self.gen_utils(target) 79 def gen_namespace(self, ns: Namespace, target: StsWriter): 81 target.write_block(head) 83 target.write_block(code) 85 self.gen_package(pkg, target) 92 with target.indented( [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/ |
| D | BUILD.gn | 37 "target/asm_printer.cpp", 38 "target/target.cpp", 51 "target/x86/callconv.cpp", 52 "target/x86/encode.cpp", 53 "target/x86/regfile.cpp", 56 [ "$ark_root/compiler/optimizer/code_generator/target/x86" ] 64 "target/amd64/callconv.cpp", 65 "target/amd64/encode.cpp", 66 "target/amd64/regfile.cpp", 80 "target/aarch32/callconv.cpp", [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/proxyset/ |
| D | proxyset.js | 20 set(target, prop, value) { argument 24 target[prop] = value; 40 const target = { data: 'original' }; variable 41 const proxy = new Proxy(target, {}); 44 assert_equal(target.data, "new value"); 52 set(target, prop, value) { argument 53 target[prop] = value; 78 const target = {}; 79 Object.defineProperty(target, 'id', { 84 const proxy = new Proxy(target, { [all …]
|
| /arkcompiler/runtime_core/static_core/irtoc/backend/compiler/ |
| D | codegen_boundary.cpp | 21 static void PushStackRegister(Encoder *encoder, Target target, Reg threadReg, size_t tlsFrameOffset) in PushStackRegister() argument 24 const auto wordSize = static_cast<ssize_t>(target.WordSize()); in PushStackRegister() 32 MemRef(target.GetStackReg(), -wordSize)); in PushStackRegister() 33 encoder->EncodeStr(target.GetFrameReg(), MemRef(target.GetStackReg(), -FP_OFFSET * wordSize)); in PushStackRegister() 37 encoder->EncodeSub(tmp, target.GetStackReg(), Imm(2U * target.WordSize())); in PushStackRegister() 42 static void PushLinkAndStackRegister(Encoder *encoder, Target target, Reg threadReg, size_t tlsFram… in PushLinkAndStackRegister() argument 48 …encoder->EncodeStp(tmp, target.GetLinkReg(), MemRef(target.GetStackReg(), -LR_OFFSET * target.Word… in PushLinkAndStackRegister() 49 …encoder->EncodeStr(target.GetFrameReg(), MemRef(target.GetStackReg(), -FP_OFFSET * target.WordSize… in PushLinkAndStackRegister() 51 … encoder->EncodeSub(target.GetLinkReg(), target.GetStackReg(), Imm(FP_OFFSET * target.WordSize())); in PushLinkAndStackRegister() 52 encoder->EncodeStr(target.GetLinkReg(), MemRef(threadReg, tlsFrameOffset)); in PushLinkAndStackRegister() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/ |
| D | CMakeLists.txt | 21 …# Create target to run one test in different modes(e.g. ets_test_suite_coroutines_launch_n_workers) 24 if(NOT TARGET ${all_modes_tests}) 33 set(target ${test_suite}_${ARG_TEST_NAME}-ets-int) variable 34 …run_int_ets_code(${target} ${test_out_dir} SOURCES "${test_in}" RUNTIME_EXTRA_OPTIONS ${ARG_OPTION… 35 add_dependencies(${all_modes_tests} ${target}) 45 set(target ${test_suite}_${ARG_TEST_NAME}-ets-aot) variable 46 LIST(APPEND targets ${target}) 47 … run_aot_ets_code(aot ${test_in} ${test_out_dir} ${target} RUNTIME_EXTRA_OPTIONS ${ARG_OPTIONS}) 51 set(target ${test_suite}_${ARG_TEST_NAME}-ets-llvmaot) variable 52 LIST(APPEND targets ${target}) [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 57 CHECK_NOT_NULL(target); 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() 82 CHECK_NOT_NULL(target); in IsIdenticalTo() 83 result_ = CacheLookup(source, target, checker_->IdenticalResults(), RelationType::IDENTICAL); in IsIdenticalTo() 87 checker_->ResolveStructuredTypeMembers(target); 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/ets2panda/checker/ets/ |
| 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 …ingNarrowingPrimitive(TypeRelation *const relation, ByteType *const source, CharType *const target) in WideningNarrowingPrimitive() argument 52 NarrowingPrimitive(relation, tempInt, target); in WideningNarrowingPrimitive() [all …]
|
| 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 …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ |
| D | CMakeLists.txt | 14 if (NOT TARGET es2panda) 27 add_panda_assembly(TARGET mock_stdlib SOURCE integrational/mock_stdlib.pa) 39 TARGET ets_tests_empty_program 49 function(run_deterministic_tests ETS_SRC TARGET) 64 set(FIRST_ABC_APP_TARGET ${TARGET}-${SRC_FNAME}-0-ets-es2panda) 68 set(ABC_APP_TARGET ${TARGET}-${SRC_FNAME}-${i}-ets-es2panda) 73 set(target_name ${TARGET}_${SRC_FNAME}_${i}) 83 add_custom_target(${TARGET} 87 add_dependencies(ets_deterministic_tests ${TARGET}) 93 function(run_ets_code_verifier ETS_SRC WORK_DIR TARGET) [all …]
|
| /arkcompiler/ets_frontend/ets2panda/checker/types/ |
| D | typeRelation.cpp | 29 RelationResult TypeRelation::CacheLookup(const Type *source, const Type *target, const RelationHold… in CacheLookup() argument 37 ES2PANDA_ASSERT(target != 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() 69 checker_->ResolveStructuredTypeMembers(target); in IsIdenticalTo() 71 target->Identical(this, source); in IsIdenticalTo() 72 …checker_->IdenticalResults().cached.insert({{source->Id(), target->Id()}, {result_, RelationType::… in IsIdenticalTo() [all …]
|
| /arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/ |
| D | x_shell.py | 20 from vmb.target import Target 41 def target(self) -> Target: member in CrossShell 47 if Target.HOST == self.target: 49 if Target.DEVICE == self.target: 51 if Target.OHOS == self.target: 53 raise NotImplementedError(f'No shell for {self.target}!')
|
| /arkcompiler/ets_frontend/ets2panda/checker/types/ets/ |
| D | etsEnumType.cpp | 23 bool ETSStringEnumType::AssignmentSource(TypeRelation *relation, Type *target) in AssignmentSource() argument 26 if (target->IsETSObjectType() && target->AsETSObjectType()->IsGlobalETSObjectType()) { in AssignmentSource() 28 } else if (target->IsETSStringType()) { in AssignmentSource() 33 } else if (target->IsETSUnionType()) { in AssignmentSource() 34 auto &unionConstituentTypes = target->AsETSUnionType()->ConstituentTypes(); in AssignmentSource() 51 void ETSStringEnumType::Cast(TypeRelation *const relation, Type *const target) in Cast() argument 53 if (relation->IsIdenticalTo(this, target)) { in Cast() 57 if (target->IsETSStringType()) { in Cast() 73 bool ETSIntEnumType::AssignmentSource(TypeRelation *relation, Type *target) in AssignmentSource() argument 76 if (target->IsETSObjectType()) { in AssignmentSource() [all …]
|