Home
last modified time | relevance | path

Searched full:args (Results 1 – 25 of 1117) sorted by relevance

12345678910>>...45

/arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/
Dcalling_methods_test_helper.h35 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/
Drun_test262.py163 args = parser.parse_args()
164 if args.abc2program and (args.run_pgo or args.ark_aot):
166 return args
182 def excuting_npm_install(args): argument
184 if args.ark_frontend:
185 ark_frontend = args.ark_frontend
191 if args.ark_frontend_binary:
192 ark_frontend_binary = os.path.join(args.ark_frontend_binary)
213 def init(args): argument
223 get_all_skip_tests(args)
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/napi/
Dets_napi.h208 ets_object (*NewObjectList)(EtsEnv *env, ets_class cls, ets_method p_method, va_list args);
209 …s_object (*NewObjectArray)(EtsEnv *env, ets_class cls, ets_method p_method, const ets_value *args);
214 …ets_object (*CallObjectMethodList)(EtsEnv *env, ets_object obj, ets_method p_method, va_list args);
215 … (*CallObjectMethodArray)(EtsEnv *env, ets_object obj, ets_method p_method, const ets_value *args);
217 …s_boolean (*CallBooleanMethodList)(EtsEnv *env, ets_object obj, ets_method p_method, va_list args);
218 …(*CallBooleanMethodArray)(EtsEnv *env, ets_object obj, ets_method p_method, const ets_value *args);
220 ets_byte (*CallByteMethodList)(EtsEnv *env, ets_object obj, ets_method p_method, va_list args);
221 …te (*CallByteMethodArray)(EtsEnv *env, ets_object obj, ets_method p_method, const ets_value *args);
223 ets_char (*CallCharMethodList)(EtsEnv *env, ets_object obj, ets_method p_method, va_list args);
224 …ar (*CallCharMethodArray)(EtsEnv *env, ets_object obj, ets_method p_method, const ets_value *args);
[all …]
Dets_napi_native_interface.cpp86 static ArgVector<Value> GetArgValues(ScopedManagedCodeFix *s, EtsMethod *method, va_list args, ets_… in GetArgValues() argument
103 parsedArgs.emplace_back(va_arg(args, uint32_t)); in GetArgValues()
108 parsedArgs.emplace_back(va_arg(args, int32_t)); in GetArgValues()
111 parsedArgs.emplace_back(va_arg(args, int64_t)); in GetArgValues()
114 … parsedArgs.push_back(ConstructValueFromFloatingPoint(static_cast<float>(va_arg(args, double)))); in GetArgValues()
117 parsedArgs.push_back(ConstructValueFromFloatingPoint(va_arg(args, double))); in GetArgValues()
120 auto param = va_arg(args, ets_object); in GetArgValues()
132 …ic ArgVector<Value> GetArgValues(ScopedManagedCodeFix *s, EtsMethod *method, const ets_value *args, in GetArgValues() argument
144 auto *arg = args; in GetArgValues()
219 template <bool IS_VIRTUAL, typename NapiType, typename EtsValueType, typename Args>
[all …]
/arkcompiler/ets_runtime/test/jittest/bytecode_to_cir_with_insufficient_profile_004/
Dexpect_output.txt14 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/
Dexec.h34 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/tests/vm-benchmarks/tests/
Dtest_cli.py25 from vmb.cli import Args, Command
37 args = Args()
38 test.assertTrue(args.command == Command.GEN)
39 test.assertTrue(args.langs == {'blah'})
40 test.assertTrue(args.get('platform') is None)
42 args = Args()
43 test.assertTrue(args.command == Command.ALL)
44 test.assertTrue(args.langs == {'blah', 'foo'})
45 test.assertTrue(args.src_langs == {'.this', '.that'})
46 test.assertTrue(args.tests == set())
[all …]
/arkcompiler/runtime_core/static_core/verification/
Dmessages.yaml22 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/
Dvmb.py28 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/static_core/plugins/ets/tests/nark/nark_gtest/
Dnark_gtest.h57 template <typename R, typename... Args>
58 R CallEtsFunction(const std::string &fnName, Args &&...args) in CallEtsFunction() argument
62 CallEtsFunctionImpl(&result, fnName, std::forward<Args>(args)...); in CallEtsFunction()
92 template <typename R, typename... Args>
93 R CallEtsNativeMethod(const NativeFunction &fn, Args &&...args) in CallEtsNativeMethod() argument
97 CallEtsNativeMethodImpl(&result, fn, std::forward<Args>(args)...); in CallEtsNativeMethod()
119 template <typename R, typename... Args>
120 void CallEtsFunctionImpl(std::optional<R> *result, const std::string &fnName, Args &&...args) in CallEtsFunctionImpl() argument
130 *result = DoCallEtsMethod<R>(cls, fn, std::forward<Args>(args)...); in CallEtsFunctionImpl()
133 template <typename R, typename... Args>
[all …]
/arkcompiler/runtime_core/compiler/
Dintrinsics.yaml24 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/
Dfunction_traits.h38 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 …]
Dset_operations.h25 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/ets_runtime/test/aottest/supercallforward/
Dsupercallforward.ts94 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/
DregAllocator.h42 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/runtime/
Druntime.yaml43 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/runtime/
Dets_libbase_runtime.yaml70 args: [ f64 ]
82 args: [ f64 ]
94 args: [ f64, f64 ]
106 args: [ f64 ]
118 args: [ f64 ]
129 args: [ i32, i32 ]
140 args: [ i64, i64 ]
151 args: [ f32, f32 ]
162 args: [ f64, f64 ]
173 args: [ i32, i32 ]
[all …]
/arkcompiler/ets_runtime/test/regresstest/
Drun_regress_test.py45 def init_log_file(args): argument
46 …logging.basicConfig(filename=args.out_log, format=RegressTestConfig.DEFAULT_LOG_FORMAT, level=logg…
108 def check_ark_frontend_binary(args) -> bool: argument
109 if args.ark_frontend_binary is None:
115 def check_frontend_library(args) -> bool: argument
117 current_frontend_binary = os.path.join(current_dir, str(args.ark_frontend_binary))
118 …test_tool_frontend_binary = os.path.join(RegressTestConfig.TEST_TOOL_FILE_DIR, args.ark_frontend_b…
122 args.ark_frontend_binary = current_frontend_binary if os.path.exists(
124 args.ark_frontend_binary = os.path.abspath(args.ark_frontend_binary)
128 def check_ark_tool(args) -> bool: argument
[all …]
/arkcompiler/ets_runtime/ecmascript/dfx/tracing/
Dtracing.cpp97 std::string args = "{\"data\":{\"frameTreeNodeId\":1,\"frames\":[{"; in TraceEventRecordTracingStart() local
98 args += "\"frame\":\"0\",\"name\":\"\","; in TraceEventRecordTracingStart()
99 args += "\"processId\":" + std::to_string(getpid()) + ","; in TraceEventRecordTracingStart()
100 args += "\"url\":\"https://url not exist/\"}],"; in TraceEventRecordTracingStart()
101 args += "\"persistentIds\":true}}"; in TraceEventRecordTracingStart()
107 event.SetArgs(args); in TraceEventRecordTracingStart()
123 …std::string args = "{\"data\":{\"jsHeapSizeUsed\":" + std::to_string(DFXJSNApi::GetHeapUsedSize(vm… in TraceEventRecordMemory() local
124 event.SetArgs(args); in TraceEventRecordMemory()
132 std::string args = "{\"data\":{\"startTime\":" + std::to_string(profileInfo->startTime) + "}}"; in TraceEventRecordCpuProfilerStart() local
137 event.SetArgs(args); in TraceEventRecordCpuProfilerStart()
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/regression/
D15086.sts16 function foo1<T extends number[]>(cb: (...args: T) => void) {
17 return (...args: T) => {
18 cb(...args);
22 function foo2<T extends string[]>(cb: (...args: T) => void) {
23 return (...args: T) => {
24 cb(...args);
28 function foo3<T extends Array<number>>(cb: (...args: T) => void) {
29 return (...args: T) => {
30 cb(...args);
34 function foo4<T extends Array<string>>(cb: (...args: T) => void) {
[all …]
/arkcompiler/ets_runtime/script/
Drun_ark_executable.py56 def get_command_and_env_path(args: object) -> [str, str]:
57 """get command and environment path from args for running excutable."""
58 env_path_list = list(set(get_env_path_from_rsp(args.script_file)))
59 env_path_list.append(args.clang_lib_path)
61 if args.qemu_binary_path:
62 if not os.path.exists(args.qemu_binary_path):
71 "{}".format(args.qemu_binary_path) + \
72 " -L {}".format(args.qemu_ld_prefix) + \
74 " {}".format(args.script_file)
76 cmd = "{}".format(args.script_file)
[all …]
/arkcompiler/runtime_core/libabckit/tests/stress/
Drunner.py36 args = stress_common.get_args()
39 logger.debug(f'Runner args: {args}')
42 Test262StressTest(args),
43 StsStressTest(args),
44 NodeJSStressTest(args),
45 HermesStressTest(args),
48 if args.with_runtime:
49 stress_tests.append(Test262StressTestWithRuntime(args.repeats, args))
50 stress_tests.append(HermesStressTestWithRuntime(args))
51 stress_tests.append(StsStressTestWithRuntime(args.ark_path, args))
[all …]
/arkcompiler/ets_frontend/es2panda/scripts/
Dts2abc.js24 let args = process.argv.splice(2); variable
26 if (args[0].startsWith("es2abc=")) {
27 es2abc = args[0].replace("es2abc=", "");
28 args = args.splice(1);
48 function callEs2abc(args) { argument
52 let proc = spawn(`${es2abc}`, args);
64 if (args.length == 1 && args[0] == "--bc-version") {
65 callEs2abc(args);
72 for (let index = 0 ; index < args.length; index += 2) {
73 if (args[index] == "--target-api-version") {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/intrinsics/
Dstd_js_jsruntime.yaml42 args: [ std.core.Object ]
53 args: [ f64 ]
65 args: [ u1 ]
77 args: [ std.core.String ]
89 args: [ std.core.Object ]
100 args: [ std.interop.js.JSValue ]
112 args: [ std.interop.js.JSValue ]
124 args: [ std.interop.js.JSValue ]
136 args: [ std.interop.js.JSValue, std.core.Class ]
147 args: [ std.interop.js.JSValue, std.core.String ]
[all …]
/arkcompiler/ets_frontend/es2panda/compiler/core/
DregAllocator.h63 template <typename T, typename... Args>
64 void Emit(const ir::AstNode *node, Args &&... args) in Emit() argument
66 auto *ins = Alloc<T>(node, std::forward<Args>(args)...); in Emit()
70 template <typename T, typename... Args>
71 void EmitRange(const ir::AstNode *node, size_t argCount, Args &&... args) in EmitRange() argument
73 auto *ins = Alloc<T>(node, std::forward<Args>(args)...); in EmitRange()
122 template <typename T, typename... Args>
123 T *Alloc(const ir::AstNode *node, Args &&... args) in Alloc() argument
127 … auto *ret = Allocator()->New<T>(isInvalid ? invalidNode : node, std::forward<Args>(args)...); in Alloc()
132 template <typename T, typename... Args>
[all …]

12345678910>>...45