| /arkcompiler/ets_frontend/ets2panda/test/parser/ts/ |
| D | test-func-param-expected.txt | 16 "program": "test-func-param.ts" 21 "program": "test-func-param.ts" 38 "program": "test-func-param.ts" 43 "program": "test-func-param.ts" 52 "program": "test-func-param.ts" 57 "program": "test-func-param.ts" 70 "program": "test-func-param.ts" 75 "program": "test-func-param.ts" 84 "program": "test-func-param.ts" 89 "program": "test-func-param.ts" [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ets/ |
| D | rethrow-func-1-expected.txt | 14 "program": "rethrow-func-1.ets" 19 "program": "rethrow-func-1.ets" 32 "program": "rethrow-func-1.ets" 37 "program": "rethrow-func-1.ets" 46 "program": "rethrow-func-1.ets" 51 "program": "rethrow-func-1.ets" 59 "program": "rethrow-func-1.ets" 64 "program": "rethrow-func-1.ets" 79 "program": "rethrow-func-1.ets" 84 "program": "rethrow-func-1.ets" [all …]
|
| D | assign-func-expected.txt | 15 "program": "assign-func.ets" 20 "program": "assign-func.ets" 90 "program": "assign-func.ets" 95 "program": "assign-func.ets" 103 "program": "assign-func.ets" 108 "program": "assign-func.ets" 117 "program": "assign-func.ets" 122 "program": "assign-func.ets" 130 "program": "assign-func.ets" 135 "program": "assign-func.ets" [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/compiler/ets/ |
| D | func-ref-private-expected.txt | 15 "program": "func-ref-private.ets" 20 "program": "func-ref-private.ets" 37 "program": "func-ref-private.ets" 42 "program": "func-ref-private.ets" 63 "program": "func-ref-private.ets" 68 "program": "func-ref-private.ets" 87 "program": "func-ref-private.ets" 92 "program": "func-ref-private.ets" 101 "program": "func-ref-private.ets" 106 "program": "func-ref-private.ets" [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/include/ |
| D | stack_walker-inl.h | 25 template <bool OBJECTS, bool WITH_REG_INFO, class VRegRef, typename Func> 27 bool InvokeCallback(Func func, [[maybe_unused]] compiler::VRegInfo regInfo, VRegRef &vreg) in InvokeCallback() argument 33 if (!func(regInfo, vreg)) { in InvokeCallback() 37 if (!func(vreg)) { in InvokeCallback() 44 template <bool WITH_REG_INFO, typename Func> 45 bool StackWalker::IterateAllRegsForCFrame(Func func) in IterateAllRegsForCFrame() argument 59 if (!InvokeCallback<false, WITH_REG_INFO>(func, regInfo, resReg)) { in IterateAllRegsForCFrame() 67 template <bool OBJECTS, bool WITH_REG_INFO, typename Func> 68 bool StackWalker::IterateRegsForCFrameStatic(Func func) in IterateRegsForCFrameStatic() argument 80 if (!InvokeCallback<OBJECTS, WITH_REG_INFO>(func, regInfo, resReg)) { in IterateRegsForCFrameStatic() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/02.lexical_elements/09.literals/04.bigint_literals/ |
| D | bigint_func.params.yaml | 16 - { func: 'BigInt("1")', res: 1n } 17 - { func: 'BigInt("1234567890")', res: 1234567890n } 18 - { func: 'BigInt(" 123 ")', res: 123n } 19 - { func: 'BigInt(1 as long)', res: 1n } 20 - { func: 'BigInt(1234567890 as long)', res: 1234567890n } 22 - { func: 'BigInt(123 as byte)', res: 123n } 23 - { func: 'BigInt(1 as int)', res: "1n" } 24 - { func: 'BigInt(1 as bigint | number | string | boolean)', res: "1n" } 26 - { func: 'BigInt.asIntN(32, 0n)', res: 0n } 27 - { func: 'BigInt.asIntN(0, 12345678901234567890n)', res: 0n } [all …]
|
| /arkcompiler/ets_runtime/test/aottest/fast_call_builtins/ |
| D | fast_call_builtins.ts | 29 let func = Math.sqrt 30 print(func(9)) 31 func = Math.sin 32 print(func(9)) 33 func = Math.cos 34 print(func(9)) 35 func = Math.acos 36 print(func(9)) 37 func = Math.atan 38 print(func(9)) [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/libani_helpers/tests/ani_signature_builder/ |
| D | ani_signature_builder_runtime_test.ets | 17 static func(a:boolean, b:boolean){ 20 static func(a:char, b:char){ 23 static func(a:byte, b:byte){ 26 static func(a:short, b:short){ 29 static func(a:int, b:int){ 32 static func(a:long, b:long){ 35 static func(a:float, b:float){ 38 static func(a:double, b:double){ 53 function func(a:string){ 57 function func(a:COLOR){ [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/error_ops/ |
| D | error_handling_test.cpp | 42 ani_function func = nullptr; in GetThrowErrorFunction() local 43 GetFunctionFromModule(&ns, &func, "throwError", "I:I"); in GetThrowErrorFunction() 44 return func; in GetThrowErrorFunction() 50 ani_function func = nullptr; in GetThrowErrorNested() local 51 GetFunctionFromModule(&ns, &func, "throwErrorNested", "I:I"); in GetThrowErrorNested() 52 return func; in GetThrowErrorNested() 55 void GetThrowErrorThroughNative(ani_namespace *ns, ani_function *func) in GetThrowErrorThroughNative() argument 57 GetFunctionFromModule(ns, func, "throwErrorThroughNative", "I:I"); in GetThrowErrorThroughNative() 61 …void GetFunctionFromModule(ani_namespace *ns, ani_function *func, const char *functionName, const … in GetFunctionFromModule() argument 64 ASSERT_NE(func, nullptr); in GetFunctionFromModule() [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/sendableclassuseimport/ |
| D | sendableUseLocalModuleValue.ts | 19 * @tc.type: FUNC 29 func(tag : string) { 42 func(tag : string) { method in LocalClass 51 new SendableLocalClass().func("SendableUseLocalModuleValue::start"); 53 new LocalClass().func("SendableUseLocalModuleValue::start"); 57 new SendableLocalClass().func("SendableUseLocalModuleValue::static block"); 59 new LocalClass().func("SendableUseLocalModuleValue::static block"); 66 new SendableLocalClass().func("InStaticSendableClass::foo"); 68 new LocalClass().func("InStaticSendableClass::foo"); 75 new SendableLocalClass().func("InStaticClass::foo"); [all …]
|
| /arkcompiler/ets_runtime/test/aottest/suspendgeneratorfor/ |
| D | suspendgeneratorfor.ts | 36 var func = genFun(); variable 37 print(func.next().value); 38 print(func.next().value); 39 print(func.next().value); 40 print(func.next().value); 41 print(func.next().value); 42 print(func.next().value); 43 print(func.next().value); 44 print(func.next().value); 45 print(func.next().value);
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | FunctionOverload.ets | 17 public static func(): string { 21 public static func(a: number): string { 25 public static func(a: number, b: number): string { 29 public static func(...args: number[]): string { 35 assertEQ(Overload.func(), "zero") 36 assertEQ(Overload.func(1), "one") 37 assertEQ(Overload.func(1, 2), "two") 38 assertEQ(Overload.func(1, 2, 3), "variadic") 41 assertEQ(Overload.func(...arr), "variadic")
|
| D | StaticMethodAndNonStaticMethodSameName.ets | 17 public static func(): number { 20 public func(): number { 26 public func(): number { 29 public static func(): number { 36 assertEQ(A.func(), 1); 37 assertEQ(a.func(), 2); 39 assertEQ(b.func(), 1); 40 assertEQ(B.func(), 2);
|
| /arkcompiler/runtime_core/static_core/tests/checked/ |
| D | inline_ic.pa | 17 #! EVENT_NEXT /Inline,Test1::__noinline__call_func,B1::func,.*VIRTUAL_MONOMORPHIC,SUCCESS/ 24 #! EVENT_NEXT /Inline,Test1::__noinline__call_func,B1::func,.*VIRTUAL_MONOMORPHIC,SUCCESS/ 32 .function i32 A1.func(A1 a0) { 37 .function i32 B1.func(B1 a0) { 43 call.virt A1.func, a0 68 #! EVENT_NEXT /Inline,Test1::__noinline__call_func,A1::func,.*VIRTUAL_MONOMORPHIC,SUCCESS/ 76 #! EVENT_NEXT /Inline,Test1::__noinline__call_func,B1::func,.*VIRTUAL_MONOMORPHIC,SUCCESS/ 104 #! EVENT_NEXT /Inline,Test1::__noinline__call_func,A1::func,.*VIRTUAL_MONOMORPHIC,SUCCESS/ 107 #! EVENT_NEXT /Inline,Test1::__noinline__call_func,A1::func,.*VIRTUAL_POLYMORPHIC,SUCCESS/ 108 #! EVENT_NEXT /Inline,Test1::__noinline__call_func,B1::func,.*VIRTUAL_POLYMORPHIC,SUCCESS/ [all …]
|
| /arkcompiler/runtime_core/assembler/ |
| D | emit-item.cpp | 55 const auto &[name, func] = f; in EmitFunctions() 57 if (func.metadata->IsForeign()) { in EmitFunctions() 63 … if (!func.Emit(emitter, method, entities.method_items, entities.field_items, entities.class_items, in EmitFunctions() 66 AsmEmitter::SetLastError("Internal error during emitting function: " + func.name); in EmitFunctions() 71 code->SetNumVregs(func.regs_num); in EmitFunctions() 72 code->SetNumArgs(func.GetParamsNum()); in EmitFunctions() 75 …std::count_if(func.ins.begin(), func.ins.end(), [](auto &it) { return it->opcode != Opcode::INVALI… in EmitFunctions() 86 auto try_blocks = func.BuildTryBlocks(method, entities.class_items, *bytes); in EmitFunctions() 91 EmitDebugInfo(bytes, method, func, name, emit_debug_info); in EmitFunctions() 97 const Function &func, const std::string &name, bool emit_debug_info) in EmitDebugInfo() argument [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
| D | graph_checker_macros.h | 29 #define CHECKER_DO_IF_NOT(cond, func) ASSERT_DO((cond), func) argument 32 #define CHECKER_DO_IF_NOT_VISITOR_INTERNAL(visitor, klass, cond, func) ASSERT_DO((cond), func) argument 35 #define CHECKER_DO_IF_NOT_AND_PRINT(cond, func) ASSERT_DO((cond), func; PrintFailedMethodAndPass();) argument 37 #define CHECKER_DO_IF_NOT_AND_PRINT_VISITOR(visitor, cond, func) \ argument 38 ASSERT_DO((cond), func; PrintFailedMethodAndPassVisitor(visitor);) 76 #define ABCKIT_DO_IF_NOT_VISITOR(visitor, cond, func) \ argument 78 func; \ 82 #define ABCKIT_DO_IF_NOT(cond, func) \ argument 84 func; \ 88 #define CHECKER_DO_IF_NOT(cond, func) \ argument [all …]
|
| /arkcompiler/runtime_core/static_core/libpandabase/os/ |
| D | thread.h | 91 template <class Func, typename Tuple, size_t... I> 92 static void CallFunc(Func &func, Tuple &args, Seq<I...> /* unused */) 94 func(std::get<I>(args)...); 97 template <class Func, typename Tuple, size_t N> 98 static void CallFunc(Func &func, Tuple &args) 100 CallFunc(func, args, GenArgSeq<N>()); 103 template <typename Func, typename Tuple, size_t N> 117 Func *func = std::get<0>(argsTuple); 118 CallFunc<Func, Tuple, N>(*func, argsTuple); 124 template <typename Func, typename... Args> [all …]
|
| /arkcompiler/runtime_core/libpandabase/os/ |
| D | thread.h | 86 template <class Func, typename Tuple, size_t... I> 87 static void CallFunc(Func &func, Tuple &args, Seq<I...> /* unused */) 89 func(std::get<I>(args)...); 92 template <class Func, typename Tuple, size_t N> 93 static void CallFunc(Func &func, Tuple &args) 95 CallFunc(func, args, GenArgSeq<N>()); 98 template <typename Func, typename Tuple, size_t N> 112 Func *func = std::get<0>(args_tuple); 113 CallFunc<Func, Tuple, N>(*func, args_tuple); 119 template <typename Func, typename... Args> [all …]
|
| /arkcompiler/runtime_core/libabckit/tests/ut/isa/isa_dynamic/dyn_call/ |
| D | call_dynamic.cpp | 118 auto func = helpers::FindFirstInst(graph, ABCKIT_ISA_API_DYNAMIC_OPCODE_DEFINEFUNC); in TransformIrCallarg0() local 119 ASSERT_NE(func, nullptr); in TransformIrCallarg0() 122 auto call0 = g_dynG->iCreateCallarg0(graph, func); in TransformIrCallarg0() 126 g_implG->iInsertAfter(call0, func); in TransformIrCallarg0() 132 auto func = helpers::FindFirstInst(graph, ABCKIT_ISA_API_DYNAMIC_OPCODE_DEFINEFUNC); in TransformIrCallarg1() local 133 ASSERT_NE(func, nullptr); in TransformIrCallarg1() 139 auto call1 = g_dynG->iCreateCallarg1(graph, func, param0); in TransformIrCallarg1() 143 g_implG->iInsertAfter(call1, func); in TransformIrCallarg1() 149 auto func = helpers::FindFirstInst(graph, ABCKIT_ISA_API_DYNAMIC_OPCODE_DEFINEFUNC); in TransformIrCallargs2() local 150 ASSERT_NE(func, nullptr); in TransformIrCallargs2() [all …]
|
| /arkcompiler/runtime_core/libabckit/src/wrappers/ |
| D | pandasm_wrapper.cpp | 35 auto *func = reinterpret_cast<pandasm::Function *>(impl); in Fill() local 36 name = func->name; in Fill() 37 regsNum = func->regs_num; in Fill() 38 valueOfFirstParam = func->value_of_first_param; in Fill() 39 for (const auto &cb : func->catch_blocks) { in Fill() 49 auto *func = reinterpret_cast<pandasm::Function *>(impl); in Update() local 50 func->ins.clear(); in Update() 51 func->catch_blocks.clear(); in Update() 52 func->name = name; in Update() 53 func->regs_num = regsNum; in Update() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | property_decl_on_function.ets.arkts2.json | 34 "rule": "Declaring properties on functions is not supported (arkts-no-func-props)", 44 "rule": "Declaring properties on functions is not supported (arkts-no-func-props)", 64 "rule": "Declaring properties on functions is not supported (arkts-no-func-props)", 104 "rule": "Declaring properties on functions is not supported (arkts-no-func-props)", 114 "rule": "Declaring properties on functions is not supported (arkts-no-func-props)", 124 "rule": "Declaring properties on functions is not supported (arkts-no-func-props)", 134 "rule": "Declaring properties on functions is not supported (arkts-no-func-props)", 144 "rule": "Declaring properties on functions is not supported (arkts-no-func-props)", 154 "rule": "Declaring properties on functions is not supported (arkts-no-func-props)", 164 "rule": "Declaring properties on functions is not supported (arkts-no-func-props)", [all …]
|
| D | function_expression.ets.json | 24 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)", 34 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)", 54 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)", 64 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)", 74 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)", 84 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)", 94 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)", 104 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)", 114 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)", 144 … "rule": "Use arrow functions instead of function expressions (arkts-no-func-expressions)", [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_function.cpp | 29 void JSFunction::InitializeJSFunctionCommon(JSThread *thread, const JSHandle<JSFunction> &func, Fun… in InitializeJSFunctionCommon() argument 36 … func->SetPropertyInlinedProps(thread, PROTOTYPE_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunctionCommon() 38 … func->SetPropertyInlinedProps(thread, NAME_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunctionCommon() 40 … func->SetPropertyInlinedProps(thread, LENGTH_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunctionCommon() 48 func->SetProtoOrHClass(thread, initialGeneratorFuncPrototype); in InitializeJSFunctionCommon() 57 func->SetProtoOrHClass(thread, initialGeneratorFuncPrototype); in InitializeJSFunctionCommon() 62 …thread, JSHandle<JSObject>(func), globalConst->GetHandledPrototypeString(), desc, SCheckMode::SKIP… in InitializeJSFunctionCommon() 67 … func->SetPropertyInlinedProps(thread, NAME_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunctionCommon() 69 … func->SetPropertyInlinedProps(thread, LENGTH_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunctionCommon() 73 void JSFunction::InitializeJSFunction(JSThread *thread, const JSHandle<JSFunction> &func, FunctionK… in InitializeJSFunction() argument [all …]
|
| /arkcompiler/runtime_core/taihe/compiler/taihe/codegen/abi/ |
| D | gen_impl.py | 62 for func in pkg.functions: 63 for param in func.params: 66 if return_ty_ref := func.return_ty_ref: 69 self.gen_func(func, pkg_c_impl_target) 73 func: GlobFuncDecl, 76 func_abi_info = GlobFuncABIInfo.get(self.am, func) 77 func_c_impl_info = GlobFuncCImplInfo.get(self.am, func) 81 for param in func.params: 87 if return_ty_ref := func.return_ty_ref: 117 for func in pkg.functions: [all …]
|
| /arkcompiler/runtime_core/compiler/tests/x86/ |
| D | asmjit_test.cpp | 40 typedef int (*Func)(void); in TEST_F() typedef 41 Func fn {nullptr}; in TEST_F() 65 FuncDetail func; in TEST_F() local 66 func.init(FuncSignatureT<size_t, size_t, size_t>(CallConv::kIdHost), code.environment()); in TEST_F() 69 frame.init(func); in TEST_F() 72 FuncArgsAssignment args(&func); in TEST_F() 83 typedef size_t (*Func)(size_t, size_t); in TEST_F() typedef 84 Func fn {nullptr}; in TEST_F() 107 FuncDetail func; in TEST_F() local 108 func.init(FuncSignatureT<size_t, size_t, size_t>(CallConv::kIdHost), code.environment()); in TEST_F() [all …]
|