| /arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/ |
| D | calling_methods_test_helper.h | 35 std::va_list args; in CallVoidMethodListHelper() local 36 va_start(args, methodId); in CallVoidMethodListHelper() 37 env->CallVoidMethodList(obj, methodId, args); in CallVoidMethodListHelper() 42 std::va_list args; in CallObjectMethodListHelper() local 43 va_start(args, methodId); in CallObjectMethodListHelper() 44 return env->CallObjectMethodList(obj, methodId, args); in CallObjectMethodListHelper() 49 std::va_list args; in CallBooleanMethodListHelper() local 50 va_start(args, methodId); in CallBooleanMethodListHelper() 51 return env->CallBooleanMethodList(obj, methodId, args); in CallBooleanMethodListHelper() 56 std::va_list args; in CallByteMethodListHelper() local [all …]
|
| /arkcompiler/ets_frontend/test262/ |
| D | run_test262.py | 165 args = parser.parse_args() 166 if args.abc2program and (args.run_pgo or args.ark_aot): 168 return args 184 def excuting_npm_install(args): argument 186 if args.ark_frontend: 187 ark_frontend = args.ark_frontend 193 if args.ark_frontend_binary: 194 ark_frontend_binary = os.path.join(args.ark_frontend_binary) 215 def init(args): argument 225 get_all_skip_tests(args) [all …]
|
| /arkcompiler/ets_frontend/ets2panda/parser/ |
| D | ETSparserTemplates.h | 57 template <typename... Args> 58 ir::Expression *CreateFormattedExpression(std::string_view const sourceCode, Args &&...args) in CreateFormattedExpression() argument 61 insertingNodes.reserve(sizeof...(Args)); in CreateFormattedExpression() 62 (ProcessFormattedArg(insertingNodes, std::forward<Args>(args)), ...); in CreateFormattedExpression() 66 template <typename... Args> 67 …ector<ir::Statement *> CreateFormattedStatements(std::string_view const sourceCode, Args &&...args) in CreateFormattedStatements() argument 70 insertingNodes.reserve(sizeof...(Args)); in CreateFormattedStatements() 71 (ProcessFormattedArg(insertingNodes, std::forward<Args>(args)), ...); in CreateFormattedStatements() 75 template <typename... Args> 76 …ent *CreateFormattedClassDeclaration(std::string_view sourceCode, bool allowStatic, Args &&...args) in CreateFormattedClassDeclaration() argument [all …]
|
| /arkcompiler/ets_runtime/test/jittest/bytecode_to_cir_with_insufficient_profile_004/ |
| D | expect_output.txt | 14 function without args. 16 function with two args: 1, 2 17 function with three args: 1, 2, 3 18 function with four args: 1, 2, 3, 4 19 class function with args. 21 class function with two args: 1, 2 22 class function with three args: 1, 2, 3 23 class function with four args: 1, 2, 3, 4 25 function without args. 27 function with two args: 1, 2 [all …]
|
| /arkcompiler/runtime_core/static_core/libpandabase/os/ |
| D | exec.h | 34 PANDA_PUBLIC_API Expected<int, Error> Exec(Span<const char *> args); 35 PANDA_PUBLIC_API Expected<int, Error> ExecNoWait(Span<const char *> args); 38 template <typename... Args> 39 decltype(auto) Exec(Args... args) in decltype() 41 std::array<const char *, sizeof...(args) + 1> arguments = {args..., nullptr}; in decltype() 45 template <typename... Args> 46 decltype(auto) ExecNoWait(Args... args) in decltype() 48 std::array<const char *, sizeof...(args) + 1> arguments = {args..., nullptr}; in decltype() 52 template <typename Callback, typename... Args> 53 decltype(auto) ExecWithCallback(Callback callback, Args... args) in decltype() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/napi/ |
| D | ets_napi.h | 216 ets_object (*NewObjectList)(EtsEnv *env, ets_class cls, ets_method p_method, va_list args); 217 …s_object (*NewObjectArray)(EtsEnv *env, ets_class cls, ets_method p_method, const ets_value *args); 222 …ets_object (*CallObjectMethodList)(EtsEnv *env, ets_object obj, ets_method p_method, va_list args); 223 … (*CallObjectMethodArray)(EtsEnv *env, ets_object obj, ets_method p_method, const ets_value *args); 225 …s_boolean (*CallBooleanMethodList)(EtsEnv *env, ets_object obj, ets_method p_method, va_list args); 226 …(*CallBooleanMethodArray)(EtsEnv *env, ets_object obj, ets_method p_method, const ets_value *args); 228 ets_byte (*CallByteMethodList)(EtsEnv *env, ets_object obj, ets_method p_method, va_list args); 229 …te (*CallByteMethodArray)(EtsEnv *env, ets_object obj, ets_method p_method, const ets_value *args); 231 ets_char (*CallCharMethodList)(EtsEnv *env, ets_object obj, ets_method p_method, va_list args); 232 …ar (*CallCharMethodArray)(EtsEnv *env, ets_object obj, ets_method p_method, const ets_value *args); [all …]
|
| /arkcompiler/runtime_core/static_core/verification/ |
| D | messages.yaml | 22 args: type 28 args: constructor 39 args: field 45 args: field 51 args: method 57 args: result 63 args: prefix, registers 69 args: field, field_type, acc_type 76 args: method 82 args: address, entry_type [all …]
|
| /arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/ |
| D | vmb.py | 28 from vmb.cli import Args, Command, LOG_LEVELS 42 def print_list(args: Args) -> None: argument 48 if args.extra_plugins: 49 for f in sorted(args.extra_plugins.joinpath(p).glob('*.py')): 55 args = Args() 64 TRACE_LOG_LEVEL)))[args.log_level] 68 if args.get('no_color', False): 75 if args.command == Command.VERSION: 79 if args.command == Command.LIST: 80 print_list(args) [all …]
|
| /arkcompiler/runtime_core/compiler/ |
| D | intrinsics.yaml | 24 args: ["i32"] 29 args: ["int32_t"] 44 args: ["i64"] 49 args: ["int64_t"] 64 args: ["f32"] 69 args: ["float"] 84 args: ["f64"] 89 args: ["double"] 104 args: ["i32", "i32"] 109 args: ["int32_t", "int32_t"] [all …]
|
| /arkcompiler/runtime_core/static_core/verification/util/ |
| D | function_traits.h | 38 template <typename R, typename... Args> 39 struct FunctionSignatureHelper<R (*)(Args...)> : public FunctionSignatureHelper<R(Args...)> { 42 template <typename R, typename F, typename... Args> 43 struct FunctionSignatureHelper<R (F::*)(Args...) const> : public FunctionSignatureHelper<R(Args...)… 46 template <typename R, typename F, typename... Args> 47 struct FunctionSignatureHelper<R (F::*)(Args...)> : public FunctionSignatureHelper<R(Args...)> { 50 template <typename R, typename... Args> 51 struct FunctionSignatureHelper<R(Args...)> { 53 using ArgsTuple = std::tuple<Args...>; 55 static constexpr std::size_t ARITY = sizeof...(Args); [all …]
|
| D | set_operations.h | 25 template <size_t N, class... Args> 28 using type = typename std::tuple_element<N, std::tuple<Args...>>::type; 31 template <size_t N, class... Args> 32 using PackElementT = typename PackElement<N, Args...>::type; 34 template <typename... Args> 35 PackElementT<0, Args...> SetIntersection(const Args &...args) in SetIntersection() argument 37 using S = PackElementT<0, Args...>; in SetIntersection() 40 std::array<IterType, sizeof...(Args)> iters {args.cbegin()...}; in SetIntersection() 41 std::array<IterType, sizeof...(Args)> ends {args.cend()...}; in SetIntersection() 71 template <typename... Args> [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/ |
| D | runtime.yaml | 43 args: 55 args: 67 args: 79 args: 91 args: [i32, i32] 102 args: [i64, i64] 113 args: [f32, f32] 124 args: [f64, f64] 135 args: [i32, i32] 146 args: [i64, i64] [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/class_ops/ |
| D | class_call_static_method_by_name_double_test.cpp | 38 va_list args {}; in TestFuncV() local 39 va_start(args, value); in TestFuncV() 40 … ASSERT_EQ(env_->Class_CallStaticMethodByName_Double_V(cls, name, "DD:D", value, args), ANI_OK); in TestFuncV() 41 va_end(args); in TestFuncV() 53 ani_value args[2U]; in TestCombineScene() local 54 args[0U].d = VAL1; in TestCombineScene() 55 args[1U].d = VAL2; in TestCombineScene() 57 …RT_EQ(env_->Class_CallStaticMethodByName_Double_A(cls, methodName, "DD:D", &valueA, args), ANI_OK); in TestCombineScene() 87 ani_value args[ARG_COUNT]; in TEST_F() local 88 args[0U].d = VAL1; in TEST_F() [all …]
|
| D | class_call_static_method_by_name_float_test.cpp | 38 va_list args {}; in TestFuncV() local 39 va_start(args, value); in TestFuncV() 40 … ASSERT_EQ(env_->Class_CallStaticMethodByName_Float_V(cls, name, "FF:F", value, args), ANI_OK); in TestFuncV() 41 va_end(args); in TestFuncV() 54 ani_value args[2U]; in TestCombineScene() local 55 args[0U].f = FLOAT_VAL1; in TestCombineScene() 56 args[1U].f = FLOAT_VAL2; in TestCombineScene() 58 …ASSERT_EQ(env_->Class_CallStaticMethodByName_Float_A(cls, methodName, "FF:F", &valueA, args), ANI_… in TestCombineScene() 89 ani_value args[ARG_COUNT]; in TEST_F() local 90 args[0U].f = FLOAT_VAL1; in TEST_F() [all …]
|
| D | class_call_static_method_by_name_long_test.cpp | 38 va_list args {}; in TestFuncV() local 39 va_start(args, value); in TestFuncV() 40 … ASSERT_EQ(env_->Class_CallStaticMethodByName_Long_V(cls, name, "JJ:J", value, args), ANI_OK); in TestFuncV() 41 va_end(args); in TestFuncV() 53 ani_value args[2U]; in TestCombineScene() local 54 args[0U].l = VAL1; in TestCombineScene() 55 args[1U].l = VAL2; in TestCombineScene() 57 …ASSERT_EQ(env_->Class_CallStaticMethodByName_Long_A(cls, methodName, "JJ:J", &valueA, args), ANI_O… in TestCombineScene() 91 ani_value args[2U]; in TEST_F() local 92 args[0U].l = VAL1; in TEST_F() [all …]
|
| D | class_call_static_method_by_name_void_test.cpp | 35 va_list args {}; in TestFuncV() local 36 va_start(args, name); in TestFuncV() 37 ASSERT_EQ(env_->Class_CallStaticMethodByName_Void_V(cls, name, "II:V", args), ANI_OK); in TestFuncV() 38 va_end(args); in TestFuncV() 55 ani_value args[2U]; in TestCombineScene() local 56 args[0U].i = VAL1; in TestCombineScene() 57 args[1U].i = VAL2; in TestCombineScene() 59 ASSERT_EQ(env_->Class_CallStaticMethodByName_Void_A(cls, methodName, "II:V", args), ANI_OK); in TestCombineScene() 70 ani_value args[2]; in TEST_F() local 71 args[0].i = VAL1; in TEST_F() [all …]
|
| D | class_call_static_method_by_name_short_test.cpp | 34 va_list args {}; in TestFuncV() local 35 va_start(args, value); in TestFuncV() 36 … ASSERT_EQ(env_->Class_CallStaticMethodByName_Short_V(cls, name, "SS:S", value, args), ANI_OK); in TestFuncV() 37 va_end(args); in TestFuncV() 49 ani_value args[2U]; in TestCombineScene() local 50 args[0U].s = VAL1; in TestCombineScene() 51 args[1U].s = VAL2; in TestCombineScene() 53 …ASSERT_EQ(env_->Class_CallStaticMethodByName_Short_A(cls, methodName, "SS:S", &valueA, args), ANI_… in TestCombineScene() 83 ani_value args[2U]; in TEST_F() local 84 args[0U].s = VAL1; in TEST_F() [all …]
|
| D | class_call_static_method_by_name_boolean_test.cpp | 34 va_list args {}; in TestFuncV() local 35 va_start(args, value); in TestFuncV() 36 … ASSERT_EQ(env_->Class_CallStaticMethodByName_Boolean_V(cls, name, "ZZ:Z", value, args), ANI_OK); in TestFuncV() 37 va_end(args); in TestFuncV() 51 ani_value args[2U]; in TestCombineScene() local 52 args[0U].z = ANI_TRUE; in TestCombineScene() 53 args[1U].z = ANI_FALSE; in TestCombineScene() 55 …T_EQ(env_->Class_CallStaticMethodByName_Boolean_A(cls, methodName, "ZZ:Z", &valueA, args), ANI_OK); in TestCombineScene() 86 ani_value args[2U]; in TEST_F() local 87 args[0U].z = ANI_TRUE; in TEST_F() [all …]
|
| D | class_call_static_method_by_name_char_test.cpp | 32 va_list args {}; in TestFuncV() local 33 va_start(args, value); in TestFuncV() 34 … ASSERT_EQ(env_->Class_CallStaticMethodByName_Char_V(cls, name, "CC:C", value, args), ANI_OK); in TestFuncV() 35 va_end(args); in TestFuncV() 48 ani_value args[2U]; in TestCombineScene() local 49 args[0U].c = val1; in TestCombineScene() 50 args[1U].c = val2; in TestCombineScene() 52 …ASSERT_EQ(env_->Class_CallStaticMethodByName_Char_A(cls, methodName, "CC:C", &valueA, args), ANI_O… in TestCombineScene() 84 ani_value args[2U]; in TEST_F() local 85 args[0U].c = 'A'; in TEST_F() [all …]
|
| D | class_call_static_method_by_name_int_test.cpp | 36 va_list args {}; in TestFuncV() local 37 va_start(args, value); in TestFuncV() 38 ASSERT_EQ(env_->Class_CallStaticMethodByName_Int_V(cls, name, "II:I", value, args), ANI_OK); in TestFuncV() 39 va_end(args); in TestFuncV() 51 ani_value args[2U]; in TestCombineScene() local 52 args[0U].i = VAL3; in TestCombineScene() 53 args[1U].i = VAL4; in TestCombineScene() 55 …ASSERT_EQ(env_->Class_CallStaticMethodByName_Int_A(cls, methodName, "II:I", &valueA, args), ANI_OK… in TestCombineScene() 85 ani_value args[2U]; in TEST_F() local 86 args[0U].i = VAL3; in TEST_F() [all …]
|
| /arkcompiler/ets_runtime/test/aottest/supercallforward/ |
| D | supercallforward.ts | 94 args: Object[] = []; property in BaseRestArgs 95 constructor(...args) { 96 for (const arg of args) { 97 this.args.push(arg); 106 assert_true(c.args.length === 0); 111 assert_true(c.args.length === 1); 112 assert_true(c.args[0] === "one"); 117 assert_true(c.args.length === 2); 118 assert_true(c.args[0] === "two"); 119 assert_true(c.args[1] === 2); [all …]
|
| /arkcompiler/ets_frontend/ets2panda/compiler/core/ |
| D | regAllocator.h | 42 template <typename T, typename... Args> 43 [[nodiscard]] T *Alloc(const ir::AstNode *const node, Args &&...args) in Alloc() argument 45 return Allocator().New<T>(node, std::forward<Args>(args)...); in Alloc() 48 template <typename T, typename... Args> 49 void Add(const ir::AstNode *const node, Args &&...args) in Add() argument 51 return PushBack(Alloc<T>(node, std::forward<Args>(args)...)); in Add() 71 template <typename T, typename... Args> 72 void Emit(const ir::AstNode *const node, Args &&...args) in Emit() argument 74 Add<T>(node, std::forward<Args>(args)...); in Emit() 104 … template <typename T, int32_t VALID_VREGS = std::numeric_limits<int32_t>::max(), typename... Args> [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
| D | ets_libbase_runtime.yaml | 139 args: [ f64 ] 151 args: [ f64 ] 163 args: [ f64, f64 ] 175 args: [ f64 ] 187 args: [ f64 ] 198 args: [ i32, i32 ] 209 args: [ i64, i64 ] 220 args: [ f32, f32 ] 231 args: [ f64, f64 ] 242 args: [ i32, i32 ] [all …]
|
| /arkcompiler/runtime_core/static_core/tests/vm-benchmarks/tests/ |
| D | test_cli.py | 25 from vmb.cli import Args, Command 38 args = Args() 39 test.assertTrue(args.command == Command.GEN) 40 test.assertTrue(args.langs == {'blah'}) 41 test.assertTrue(args.get('platform') is None) 43 args = Args() 44 test.assertTrue(args.command == Command.ALL) 45 test.assertTrue(args.langs == {'blah', 'foo'}) 46 test.assertTrue(args.src_langs == {'.this', '.that'}) 47 test.assertTrue(args.tests == set()) [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/native/exclusive_worker/ |
| D | exclusive_worker_tests.cpp | 48 template <typename... Args> 49 …eInExclusiveWorker(std::string_view routineName, std::string_view routineSignature, Args &&...args) in RunRoutineInExclusiveWorker() argument 54 args = std::make_tuple(std::forward<Args>(args)...)]() mutable { in RunRoutineInExclusiveWorker() 55 WorkerRoutine(event, routineName, routineSignature, std::forward<Args>(args)...); in RunRoutineInExclusiveWorker() 62 template <typename... Args> 64 Args &&...args) in CallStaticBooleanMethod() argument 69 env->Function_Call_Boolean(func, &result, std::forward<Args>(args)...); in CallStaticBooleanMethod() 73 template <typename... Args> 75 Args &&...args) in CallStaticVoidMethod() argument 79 env->Function_Call_Void(func, std::forward<Args>(args)...); in CallStaticVoidMethod() [all …]
|