Home
last modified time | relevance | path

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

12345678910>>...38

/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.py151 args = parser.parse_args()
152 if args.abc2program and (args.run_pgo or args.ark_aot):
154 return args
170 def excuting_npm_install(args): argument
172 if args.ark_frontend:
173 ark_frontend = args.ark_frontend
179 if args.ark_frontend_binary:
180 ark_frontend_binary = os.path.join(args.ark_frontend_binary)
201 def init(args): argument
210 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/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/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/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/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/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/plugins/ets/runtime/
Dets_libbase_runtime.yaml62 args: [ f64 ]
74 args: [ f64 ]
86 args: [ f64, f64 ]
98 args: [ f64 ]
110 args: [ f64 ]
121 args: [ i32, i32 ]
132 args: [ i64, i64 ]
143 args: [ f32, f32 ]
154 args: [ f64, f64 ]
165 args: [ i32, i32 ]
[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/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/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/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…
90 def check_ark_frontend_binary(args) -> bool: argument
91 if args.ark_frontend_binary is None:
97 def check_frontend_library(args) -> bool: argument
99 current_frontend_binary = os.path.join(current_dir, str(args.ark_frontend_binary))
100 …test_tool_frontend_binary = os.path.join(RegressTestConfig.TEST_TOOL_FILE_DIR, args.ark_frontend_b…
104 args.ark_frontend_binary = current_frontend_binary if os.path.exists(
106 args.ark_frontend_binary = os.path.abspath(args.ark_frontend_binary)
110 def check_ark_tool(args) -> bool: argument
[all …]
/arkcompiler/ets_runtime/script/
Drun_ark_executable.py54 def get_command_and_env_path(args: object) -> [str, str]:
55 """get command and environment path from args for running excutable."""
56 env_path_list = list(set(get_env_path_from_rsp(args.script_file)))
57 env_path_list.append(args.clang_lib_path)
59 if args.qemu_binary_path:
60 if not os.path.exists(args.qemu_binary_path):
69 "{}".format(args.qemu_binary_path) + \
70 " -L {}".format(args.qemu_ld_prefix) + \
72 " {}".format(args.script_file)
74 cmd = "{}".format(args.script_file)
[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_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 ]
138 args: [ std.interop.js.JSValue, std.core.Object ] # 2nd argument is ClassClass
149 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 …]
/arkcompiler/runtime_core/static_core/runtime/tests/
Dinvokation_helper.h40 template <typename T, typename... Args>
41 inline void WriteArgImpl(arch::ArgWriter<RUNTIME_ARCH> *writer, size_t nfloats, T arg, Args... args
43 template <typename... Args>
44 …e void WriteArgImpl(arch::ArgWriter<RUNTIME_ARCH> *writer, size_t nfloats, float arg, Args... args) in WriteArgImpl() argument
47 WriteArgImpl(writer, nfloats + 1, args...); in WriteArgImpl()
50 template <typename T, typename... Args>
51 inline void WriteArgImpl(arch::ArgWriter<RUNTIME_ARCH> *writer, size_t nfloats, T arg, Args... args) in WriteArgImpl() argument
76 WriteArgImpl(writer, nfloats, args...); in WriteArgImpl()
79 template <class T, typename... Args>
80 inline void WriteArg(arch::ArgWriter<RUNTIME_ARCH> *writer, T arg, Args... args) in WriteArg() argument
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/
Dcodegen-inl.h51 template <typename T, typename... Args>
52 T *Codegen::CreateSlowPath(Inst *inst, Args &&...args) in CreateSlowPath() argument
56 auto slowPath = GetLocalAllocator()->New<T>(label, inst, std::forward<Args>(args)...); in CreateSlowPath()
66 template <typename... Args>
67 void Codegen::InsertTrace(Args &&...params) in InsertTrace()
71 static_assert(sizeof...(Args) <= MAX_PARAM_NUM); in InsertTrace()
79 FillCallParams(std::forward<Args>(params)...); in InsertTrace()
84 template <bool IS_FASTPATH, typename... Args>
85 void Codegen::CallEntrypoint(Inst *inst, EntrypointId id, Reg dstReg, RegMask preservedRegs, Args &… in CallEntrypoint()
88 CHECK_EQ(sizeof...(Args), GetRuntime()->GetEntrypointArgsNum(id)); in CallEntrypoint()
[all …]
Dcodegen.h233 template <typename T, typename... Args>
234 T *CreateSlowPath(Inst *inst, Args &&...args);
243 template <typename... Args>
244 void InsertTrace(Args &&...params);
247 template <bool IS_FASTPATH, typename... Args>
248 …void CallEntrypoint(Inst *inst, EntrypointId id, Reg dstReg, RegMask preservedRegs, Args &&...para…
266 template <typename... Args>
267 …void CallRuntime(Inst *inst, EntrypointId id, Reg dstReg, RegMask preservedRegs, Args &&...params);
268 template <typename... Args>
269 …void CallFastPath(Inst *inst, EntrypointId id, Reg dstReg, RegMask preservedRegs, Args &&...params…
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dhcr_circuit_builder.cpp23 …Builder::NoLabelCallRuntime(GateRef glue, GateRef depend, size_t index, std::vector<GateRef> &args, in NoLabelCallRuntime() argument
30 inputs.insert(inputs.end(), args.begin(), args.end()); in NoLabelCallRuntime()
31 auto numValuesIn = args.size() + 2; // 2: target & glue in NoLabelCallRuntime()
57 …ircuitBuilder::CallStub(GateRef glue, GateRef hirGate, int index, const std::vector<GateRef> &args, in CallStub() argument
69 result = Call(cs, glue, target, depend, args, hirGate, comment); in CallStub()
71 result = Call(cs, glue, target, depend, args, Circuit::NullGate(), comment); in CallStub()
76 …der::CallBuiltinRuntime(GateRef glue, GateRef depend, const std::vector<GateRef> &args, bool isNew) in CallBuiltinRuntime() argument
93 GateRef result = Call(cs, glue, target, depend, args, Circuit::NullGate(), name.c_str()); in CallBuiltinRuntime()
97 …er::CallBuiltinRuntimeWithNewTarget(GateRef glue, GateRef depend, const std::vector<GateRef> &args) in CallBuiltinRuntimeWithNewTarget() argument
111 GateRef result = Call(cs, glue, target, depend, args, Circuit::NullGate(), name.c_str()); in CallBuiltinRuntimeWithNewTarget()
[all …]

12345678910>>...38