Home
last modified time | relevance | path

Searched full:arguments (Results 1 – 25 of 194) sorted by relevance

12345678

/ark/runtime_core/libpandabase/
DREADME.md7 pandargs is header-only utility tool that helps to parse command line arguments. It supports severa…
23 #### Arguments subsubsection
66 - regular arguments
67 - tail arguments
68 - remainder arguments
70 Regular arguments are typical non-positional arguments like ```--arg=1```
71 Tail arguments are positional arguments, which should be introduced with help of parser API
72 Remainder arguments are arguments that come after trailing `--`. All of them are plain std::vector …
78 - `bool Parse(int argc, const char* argv[])` - parse arguments. Return `true` on success. Note: `ar…
80 - `void EnableTail()` - enable positional arguments
[all …]
/ark/ts2abc/ts2panda/src/expression/
DnewExpression.ts34 if (containSpreadElement(expr.arguments)) {
36 … createArrayFromElements(expr, compiler, <ts.NodeArray<ts.Expression>>expr.arguments, argRegs);
44 // prepare arguments for newobj.dyn.range instruction
46 if (expr.arguments) {
47 numArgs += expr.arguments.length;
55 if (expr.arguments) {
56 // store ctor arguments in registers
57 expr.arguments.forEach((argExpr: ts.Expression) => {
DcallExpression.ts46 let { arguments: args, passThis: passThis } = getHiddenParameters(expr.expression, compiler);
48 // compile arguments of function call
83 return { arguments: args, passThis: passThis };
89 for (let i = 0; i < expr.arguments.length; i++) {
90 let argument = expr.arguments[i];
98 expr.arguments.forEach((argExpr: ts.Expression) => {
137 createArrayFromElements(expr, compiler, <ts.NodeArray<ts.Expression>>expr.arguments, argArray);
/ark/runtime_core/runtime/bridge/arch/aarch64/
Dhandle_call_imm4_v4_v4_v4_aarch64.S18 // x0-x7 - arguments, x9 - frame.vregs, x10 - insn_ptr, x12 - method, x19 - frame
30 // there are some arguments
39 // there are two arguments
45 beq .Linvoke // there are two arguments
49 // there are three arguments
57 beq .Linvoke // there are three arguments
60 // there are four arguments
Dhandle_call_imm16_v16_aarch64.S18 // x0-x7 - arguments, x9 - frame.vregs, x10 - insn_ptr, x12 - method, x19 - frame
38 // x0-x7 - arguments, x9 - frame.vregs + vreg_idx, x10 - arg counter, x12 - method, x19 - frame
41 // load arguments into the registers
53 // push the rest arguments to the stack
Dhandle_call_imm8_imm16_v8_aarch64.S17 // x0-x7 - arguments, x9 - frame.vregs, x10 - insn_ptr, x12 - method, x19 - frame
55 1: // get the rest arguments
57 …// x0-x7 - arguments, x9 - frame.vregs + vreg_idx, x10 - stack arg counter, x12 - method, x19 - fr…
/ark/ts2abc/ts2panda/tests/expression/
Darguments.test.ts32 describe("arguments Keyword", function () {
33 it('arguments: Array-like object accessible inside functions', function () {
35 snippetCompiler.compile(`function foo(a,b) {arguments[0];}`);
52 it('arguments as parameter shadows keyword', function () {
54 snippetCompiler.compile(`function foo(arguments) {arguments[0];}`);
/ark/runtime_core/tests/cts-generator/cts-template/
Dcall.short.yaml24 Call indicated static method, i.e. create new frame, pass values of arguments and
31 Arguments are passed in source registers in the same order as in method signature.
32 … Non-range instructions can be used to pass up to 4 arguments (unused register slot values will
34 …For methods with more arguments range kind of instruction is to be used, which takes the needed nu…
35 of arguments starting from 'vs' register.
49 description: Check that 'call.short' supports up to 2 arguments.
153 description: Verifier should check usage of uninitialized arguments passed to function.
166 # 1st argument is function arguments
264 … description: Check 'call.short' when arguments of function and instuction parameters mismatch.
276 # 1st - function arguments
[all …]
Dcall.yaml25 Call indicated static method, i.e. create new frame, pass values of arguments and
32 Arguments are passed in source registers in the same order as in method signature.
33 … Non-range instructions can be used to pass up to 4 arguments (unused register slot values will
35 …For methods with more arguments range kind of instruction is to be used, which takes the needed nu…
36 of arguments starting from 'vs' register.
50 description: Check that 'call' supports up to 4 arguments.
168 description: Verifier should check usage of uninitialized arguments passed to function.
181 # 1st argument is function arguments
263 description: Check 'call' when arguments of function and instuction parameters mismatch.
275 # 1st - function arguments
[all …]
Dcall.range.yaml24 Call indicated static method, i.e. create new frame, pass values of arguments and
31 Arguments are passed in source registers in the same order as in method signature.
32 … Non-range instructions can be used to pass up to 4 arguments (unused register slot values will
34 …For methods with more arguments range kind of instruction is to be used, which takes the needed nu…
35 of arguments starting from 'vs' register.
181 description: Verifier should check usage of uninitialized arguments passed to function.
194 # 1st argument is function arguments
293 # 2 - function arguments
361 …description: Check correctness of passed arguments. Load parameter to accumulator. Check i32 type …
394 …description: Check correctness of passed arguments. Load parameter to accumulator. Check f64 type …
[all …]
/ark/js_runtime/ecmascript/
Djs_arguments.cpp33 // 4.Let map be the value of the [[ParameterMap]] internal slot of the arguments object. in GetOwnProperty()
54 THROW_TYPE_ERROR_AND_RETURN(thread, "Arguments GetOwnProperty: type error", false); in GetOwnProperty()
63 // 1 ~ 2 Let args be the arguments object and get map. in DefineOwnProperty()
110 // 1 ~ 2 Let args be the arguments object and get map. in GetProperty()
121 // on args passing P and Receiver as the arguments. in GetProperty()
134 // 1.Let args be the arguments object. in SetProperty()
142 // a.Let map be the value of the [[ParameterMap]] internal slot of the arguments object. in SetProperty()
158 // on args passing P, V and Receiver as the arguments. in SetProperty()
165 // 1.Let map be the value of the [[ParameterMap]] internal slot of the arguments object. in DeleteProperty()
175 // on the arguments object passing P as the argument. in DeleteProperty()
Djs_proxy.cpp72 InternalCallParams *arguments = thread->GetInternalCallParams(); in GetPrototype() local
73 arguments->MakeArgv(targetHandle); in GetPrototype()
74 JSTaggedValue handlerProto = JSFunction::Call(thread, trap, handler, 1, arguments->GetArgv()); in GetPrototype()
130 InternalCallParams *arguments = thread->GetInternalCallParams(); in SetPrototype() local
131 arguments->MakeArgv(targetHandle, proto); in SetPrototype()
133 JSFunction::Call(thread, trap, handlerTag, 2, arguments->GetArgv()); // 2: target and proto in SetPrototype()
189 InternalCallParams *arguments = thread->GetInternalCallParams(); in IsExtensible() local
190 arguments->MakeArgv(targetHandle); in IsExtensible()
191 JSTaggedValue trapResult = JSFunction::Call(thread, trap, handlerTag, 1, arguments->GetArgv()); in IsExtensible()
236 InternalCallParams *arguments = thread->GetInternalCallParams(); in PreventExtensions() local
[all …]
Djs_invoker.cpp33 const JSHandle<JSTaggedValue> &newTgt, InternalCallParams *arguments) in InvokeJsFunction() argument
41 params.argc = arguments->GetLength(); in InvokeJsFunction()
42 params.argv = arguments->GetArgv(); in InvokeJsFunction()
Djs_promise.cpp103 InternalCallParams *arguments = thread->GetInternalCallParams(); in NewPromiseCapability() local
104 arguments->MakeArgv(executor); in NewPromiseCapability()
105 JSTaggedValue result = JSFunction::Construct(thread, obj, 1, arguments->GetArgv(), newTarget); in NewPromiseCapability()
175 … JSHandle<TaggedArray> arguments = factory->NewTaggedArray(2); // 2 means the length of new array in TriggerPromiseReactions() local
176 arguments->Set(thread, 0, reaction); in TriggerPromiseReactions()
177 arguments->Set(thread, 1, argument); in TriggerPromiseReactions()
178 …roJobQueue::EnqueueJob(thread, job, job::QueueType::QUEUE_PROMISE, promiseReactionsJob, arguments); in TriggerPromiseReactions()
/ark/js_runtime/test/moduletest/getunmappedargs/
Dgetunmappedargs.js17 print(arguments[0])
18 print(arguments[1])
19 print(arguments[2])
/ark/js_runtime/ecmascript/builtins/
Dbuiltins_promise.cpp74 InternalCallParams *arguments = thread->GetInternalCallParams(); in PromiseConstructor() local
75 arguments->MakeArgv(resolveFunc, rejectFunc); in PromiseConstructor()
77 …JSTaggedValue taggedValue = JSFunction::Call(thread, executor, thisValue, 2, arguments->GetArgv())… in PromiseConstructor()
87 arguments->MakeArgv(completionValue); in PromiseConstructor()
88 JSFunction::Call(thread, reject, thisValue, 1, arguments->GetArgv()); in PromiseConstructor()
266 InternalCallParams *arguments = thread->GetInternalCallParams(); in Resolve() local
267 arguments->MakeArgv(xValue); in Resolve()
268 JSFunction::Call(thread, resolve, undefined, 1, arguments->GetArgv()); in Resolve()
302 InternalCallParams *arguments = thread->GetInternalCallParams(); in Reject() local
303 arguments->MakeArgv(reason); in Reject()
[all …]
Dbuiltins_promise_job.cpp91 InternalCallParams *arguments = thread->GetInternalCallParams(); in PromiseResolveThenableJob() local
92arguments->MakeArgv(resolvingFunctions->GetResolveFunction(), resolvingFunctions->GetRejectFunctio… in PromiseResolveThenableJob()
93 …JSTaggedValue result = JSFunction::Call(thread, then, thenable, 2, arguments->GetArgv()); // 2: t… in PromiseResolveThenableJob()
103 arguments->MakeArgv(thenResult); in PromiseResolveThenableJob()
104 return JSFunction::Call(thread, reject, undefined, 1, arguments->GetArgv()); in PromiseResolveThenableJob()
Dbuiltins_function.cpp36 // When invoked, it accepts any arguments and returns undefined.
47 InternalCallParams *arguments = thread->GetInternalCallParams(); in BuildArgumentsListFast() local
60 arguments->MakeArgListWithHole(elements, length); in BuildArgumentsListFast()
65 arguments->MakeArgListWithHole(elements, length); in BuildArgumentsListFast()
95 InternalCallParams *arguments = thread->GetInternalCallParams(); in FunctionPrototypeApply() local
101 arguments->MakeArgList(*argList); in FunctionPrototypeApply()
105 return JSFunction::Call(thread, func, thisArg, arguments->GetLength(), arguments->GetArgv()); in FunctionPrototypeApply()
Dbuiltins_typedarray.cpp172 InternalCallParams *arguments = thread->GetInternalCallParams(); in From() local
173 arguments->MakeArgv(JSTaggedValue(len)); in From()
174 …bject> targetObj = TypedArrayHelper::TypedArrayCreate(thread, thisHandle, 1, arguments->GetArgv()); in From()
192 arguments->MakeArgv(kValue, tKey); in From()
194 … JSFunction::Call(thread, mapfn, thisArgHandle, 2, arguments->GetArgv()); // 2: two args in From()
225 InternalCallParams *arguments = thread->GetInternalCallParams(); in From() local
226 arguments->MakeArgv(JSTaggedValue(len)); in From()
227 …bject> targetObj = TypedArrayHelper::TypedArrayCreate(thread, thisHandle, 1, arguments->GetArgv()); in From()
247 arguments->MakeArgv(kValue, tKey); in From()
249 … JSFunction::Call(thread, mapfn, thisArgHandle, 2, arguments->GetArgv()); // 2: two args in From()
[all …]
/ark/runtime_core/runtime/bridge/arch/amd64/
Dhandle_call_imm16_v16_amd64.S33 …// rdi, rsi, rdx, rcx, r8, r9 - arguments, rax - arg counter, rbx - frame.vregs + vreg_idx, r12 - …
36 // load arguments into the registers
46 // reserve stack space for the arguments
53 // push the rest arguments to the stack
/ark/runtime_core/tests/cts-coverage-tool/
Dnon_testable.yaml112 pass values of arguments and continue execution from the first instruction of
116 other imm source registers contain arguments of a function. Non-range instructions
117 can be used to pass up to 4 arguments (unused register slot values will be discarded
119 more arguments range kind of instruction is to be used, which takes the needed
120 number of arguments starting from 'v' register.
/ark/js_runtime/ecmascript/tests/
Djs_promise_test.cpp107 InternalCallParams *arguments = thread->GetInternalCallParams(); in HWTEST_F_L0() local
108 arguments->MakeArgv(JSTaggedValue(33)); in HWTEST_F_L0()
109 JSFunction::Call(thread, resolve, undefined, 1, arguments->GetArgv()); in HWTEST_F_L0()
126 InternalCallParams *arguments = thread->GetInternalCallParams(); in HWTEST_F_L0() local
127 arguments->MakeArgv(JSTaggedValue(44)); in HWTEST_F_L0()
128 JSFunction::Call(thread, reject, undefined, 1, arguments->GetArgv()); in HWTEST_F_L0()
/ark/runtime_core/cmake/
DTemplateBasedGen.cmake20 # Mandatory arguments:
25 # Optional arguments:
87 # Mandatory arguments:
90 # Optional arguments:
121 # Mandatory arguments:
159 # Mandatory arguments:
167 # Parsing function arguments
/ark/runtime_core/
Dark_config.gni52 # Mandatory arguments:
101 # Mandatory arguments:
106 # Optional arguments:
158 # Mandatory arguments:
161 # Optional arguments:
/ark/runtime_core/gn/ark/runtime/
Dark_config.gni52 # Mandatory arguments:
101 # Mandatory arguments:
106 # Optional arguments:
158 # Mandatory arguments:
161 # Optional arguments:

12345678