Home
last modified time | relevance | path

Searched refs:thisArg (Results 1 – 25 of 48) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/ts_types/
Dlib_ark_builtins.d.ts150 apply(this: Function, thisArg: any, argArray?: any): any;
152 bind(this: Function, thisArg: any, ...args: any[]): any;
154 call(this: Function, thisArg: any, ...args: any[]): any;
459 forEach(callbackfn: (value: any, value2: any, set: Set) => void, thisArg?: any): void;
497 every(predicate: (value: any, index: number, array: any[]) => unknown, thisArg?: any): boolean;
501 filter(predicate: (value: any, index: number, array: any[]) => unknown, thisArg?: any): any[];
503 …find(predicate: (value: any, index: number, obj: any[]) => unknown, thisArg?: any): any | undefine…
505 findIndex(predicate: (value: any, index: number, obj: any[]) => unknown, thisArg?: any): number;
507 forEach(callbackfn: (value: any, index: number, array: any[]) => void, thisArg?: any): void;
517 map(callbackfn: (value: any, index: number, array: any[]) => any, thisArg?: any): any[];
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_function_test.cpp95 JSHandle<JSObject> thisArg(thread, env->GetGlobalObject()); in HWTEST_F_L0() local
96 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArg), in HWTEST_F_L0()
99 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArg), in HWTEST_F_L0()
106 ecmaRuntimeCallInfo->SetCallArg(0, (thisArg.GetTaggedValue())); in HWTEST_F_L0()
113 JSObject::DeleteProperty(thread, (thisArg), in HWTEST_F_L0()
115 JSObject::DeleteProperty(thread, (thisArg), in HWTEST_F_L0()
130 JSHandle<JSObject> thisArg(thread, env->GetGlobalObject()); in HWTEST_F_L0() local
131 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArg), in HWTEST_F_L0()
134 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(thisArg), in HWTEST_F_L0()
149 ecmaRuntimeCallInfo->SetCallArg(0, (thisArg.GetTaggedValue())); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_frontend/ts2panda/tests/expression/
DbindingPattern.test.ts41 let thisArg = new VReg(); variable
47 new Lda(thisArg),
71 let thisArg = new VReg(); variable
78 new Lda(thisArg),
/arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/compiler/
Dtest-ts-typeof-returntype-1.ts17 public static test(fn, thisArg): (args: Parameters<typeof fn>) => void {
19 fn.apply(thisArg);
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dcontainers_stub_builder.cpp26 DEFVARIABLE(thisArg, VariableType::JS_ANY(), Undefined()); in ContainersCommonFuncCall()
85 thisArg = GetCallArg1(numArgs); in ContainersCommonFuncCall()
110 …Circuit::NullGate(), JSCallMode::CALL_THIS_ARG3_WITH_RETURN, { *thisArg, *kValue, *key, *thisObj }… in ContainersCommonFuncCall()
143 DEFVARIABLE(thisArg, VariableType::JS_ANY(), Undefined()); in QueueCommonFuncCall()
203 thisArg = GetCallArg1(numArgs); in QueueCommonFuncCall()
225 …Circuit::NullGate(), JSCallMode::CALL_THIS_ARG3_WITH_RETURN, { *thisArg, *kValue, *key, *thisObj }… in QueueCommonFuncCall()
249 DEFVARIABLE(thisArg, VariableType::JS_ANY(), Undefined()); in DequeCommonFuncCall()
309 thisArg = GetCallArg1(numArgs); in DequeCommonFuncCall()
333 …Circuit::NullGate(), JSCallMode::CALL_THIS_ARG3_WITH_RETURN, { *thisArg, *kValue, *key, *thisObj }… in DequeCommonFuncCall()
358 DEFVARIABLE(thisArg, VariableType::JS_ANY(), Undefined()); in ContainersLightWeightCall()
[all …]
Dbuiltins_function_stub_builder.cpp39 GateRef thisArg = GetCallArg0(numArgs); in Apply() local
47 JSCallMode::CALL_GETTER, { thisArg })); in Apply()
74 JSCallMode::CALL_THIS_ARGV_WITH_RETURN, { argsLength, argv, thisArg })); in Apply()
93 … JSCallMode::CALL_THIS_ARGV_WITH_RETURN, { argsLength, elementArgv, thisArg })); in Apply()
102 … JSCallMode::CALL_THIS_ARGV_WITH_RETURN, { argsLength, elementArgv, thisArg })); in Apply()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dnative_inline_lowering.cpp99 GateRef thisArg = builder_.Undefined(); in RunArrayForeachInline() local
102 thisArg = acc_.GetValueIn(gate, 2); // 2: this arg parameter in RunArrayForeachInline()
121 ArrayForeachCall(gate, thisObj, callBack, thisArg, &exit); in RunArrayForeachInline()
126 …eInlineLowering::ArrayForeachCall(GateRef gate, GateRef thisObj, GateRef callBack, GateRef thisArg, in ArrayForeachCall() argument
148 …{glue_, builder_.Int64(6), callBack, builder_.Undefined(), thisArg, *value, *propKey, thisObj}); /… in ArrayForeachCall()
164 {thisArg, *propKey, thisObj, callBack, taggedLength}, true); in ArrayForeachCall()
Dnative_inline_lowering.h43 …void ArrayForeachCall(GateRef gate, GateRef thisObj, GateRef callBack, GateRef thisArg, Label *exi…
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_function.cpp126 JSHandle<JSTaggedValue> thisArg = GetCallArg(argv, 0); in FunctionPrototypeApply() local
131 …EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, func, thisArg, undefined, … in FunctionPrototypeApply()
144 …EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, func, thisArg, undefined, … in FunctionPrototypeApply()
151 …EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, func, thisArg, undefined, … in FunctionPrototypeApply()
173 JSHandle<JSTaggedValue> thisArg = GetCallArg(argv, 0); in FunctionPrototypeBind() local
186 … JSHandle<JSBoundFunction> boundFunction = factory->NewJSBoundFunction(target, thisArg, argsArray); in FunctionPrototypeBind()
300 JSHandle<JSTaggedValue> thisArg = GetCallArg(argv, 0); in FunctionPrototypeCall() local
310 …EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, func, thisArg, undefined, … in FunctionPrototypeCall()
Dbuiltins_set.cpp200 JSHandle<JSTaggedValue> thisArg = GetCallArg(argv, 1); in ForEach() local
214 thread, func, thisArg, undefined, argsLength); in ForEach()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/
Dets_vm_plugin.cpp103 napi_value thisArg {}; in Call() local
105 status = napi_get_cb_info(env, info, &argc, argv->data(), &thisArg, &data); in Call()
119 napi_value thisArg {}; in CallWithCopy() local
121 status = napi_get_cb_info(env, info, &argc, argv->data(), &thisArg, &data); in CallWithCopy()
138 napi_value thisArg {}; in CreateEtsRuntime() local
140 status = napi_get_cb_info(env, info, &argc, argv.data(), &thisArg, &data); in CreateEtsRuntime()
/arkcompiler/ets_runtime/ecmascript/
Djs_async_generator_object.cpp110 const JSHandle<JSTaggedValue> thisArg = constants->GetHandledUndefined(); in AsyncGeneratorReject() local
113 EcmaInterpreter::NewRuntimeCallInfo(thread, reject, thisArg, undefined, 1); in AsyncGeneratorReject()
268 JSHandle<JSTaggedValue> thisArg = constants->GetHandledUndefined(); in AsyncGeneratorEnqueue() local
271 EcmaInterpreter::NewRuntimeCallInfo(thread, reject, thisArg, undefined, 1); in AsyncGeneratorEnqueue()
326 JSHandle<JSTaggedValue> thisArg = globalConst->GetHandledUndefined(); in PromiseResolve() local
328 EcmaInterpreter::NewRuntimeCallInfo(thread, resolve, thisArg, undefined, 1); in PromiseResolve()
Djs_async_function.cpp52 JSHandle<JSTaggedValue> thisArg = globalConst->GetHandledUndefined(); in AsyncFunctionAwait() local
56 EcmaInterpreter::NewRuntimeCallInfo(thread, resolve, thisArg, undefined, 1); in AsyncFunctionAwait()
Djs_function.cpp425 JSHandle<JSTaggedValue> thisArg = info->GetThis(); in Invoke() local
426 JSHandle<JSTaggedValue> func(JSTaggedValue::GetProperty(thread, thisArg, key).GetValue()); in Invoke()
433 JSHandle<JSTaggedValue> &thisArg, std::string_view entryPoint, CJSInfo* cjsInfo) in InvokeOptimizedEntrypoint() argument
455 args = JSFunction::GetArgsData(true, thisArg, mainFunc, cjsInfo); in InvokeOptimizedEntrypoint()
458 args = JSFunction::GetArgsData(false, thisArg, mainFunc, cjsInfo); in InvokeOptimizedEntrypoint()
472 std::vector<JSTaggedType> JSFunction::GetArgsData(bool isFastCall, JSHandle<JSTaggedValue> &thisArg, in GetArgsData() argument
489 args[1] = thisArg.GetTaggedValue().GetRawData(); // 1: args number in GetArgsData()
491 args[2] = thisArg.GetTaggedValue().GetRawData(); // 2: args number in GetArgsData()
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DReadonlyArray.ets30 …predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is r…
36 …ds T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];
42 …>(predicate: (value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undef…
58 // thisArg?: This,
102 …// some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): bool…
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/gtest_plugin/
Dets_interop_js_gtest.cpp61 napi_value thisArg = nullptr; in Main() local
63 status = napi_get_cb_info(env, info, &jsArgc, jsArgv.data(), &thisArg, &data); in Main()
/arkcompiler/ets_runtime/test/aottest/proxy/
Dproxy.ts24 apply: function(target:any, thisArg:any, argumentsList:any[]) {
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_arraylist.h57 const JSHandle<JSTaggedValue> &thisArg);
63 const JSHandle<JSTaggedValue> &thisArg);
Djs_api_vector.h73 const JSHandle<JSTaggedValue> &thisArg);
77 const JSHandle<JSTaggedValue> &thisArg);
Djs_api_list.h40 const JSHandle<JSTaggedValue> &thisArg);
Djs_api_arraylist.cpp253 const JSHandle<JSTaggedValue> &thisArg) in ReplaceAllElements() argument
265 EcmaInterpreter::NewRuntimeCallInfo(thread, callbackFn, thisArg, undefined, argsLength); in ReplaceAllElements()
334 const JSHandle<JSTaggedValue> &thisArg) in ForEach() argument
346 EcmaInterpreter::NewRuntimeCallInfo(thread, callbackFn, thisArg, undefined, argsLength); in ForEach()
Djs_api_vector.cpp292 const JSHandle<JSTaggedValue> &thisArg) in ForEach() argument
305 EcmaInterpreter::NewRuntimeCallInfo(thread, callbackFn, thisArg, undefined, argsLength); in ForEach()
320 const JSHandle<JSTaggedValue> &thisArg) in ReplaceAllElements() argument
333 EcmaInterpreter::NewRuntimeCallInfo(thread, callbackFn, thisArg, undefined, argsLength); in ReplaceAllElements()
/arkcompiler/ets_runtime/ecmascript/base/
Darray_helper.h72 const JSHandle<JSTaggedValue> &thisArg);
Darray_helper.cpp279 const JSHandle<JSTaggedValue> &thisArg) in FlattenIntoArray() argument
289 (!thisArg->IsUndefined() && args.depth == 1)); in FlattenIntoArray()
334 … EcmaInterpreter::NewRuntimeCallInfo(thread, mapperFunctionHandle, thisArg, undefined, argsLength); in FlattenIntoArray()
/arkcompiler/ets_runtime/test/moduletest/spreadoperator/
Dspreadoperator.js97 apply: function (target, thisArg, argumentsList) { argument

12