/arkcompiler/ets_runtime/ecmascript/ts_types/ |
D | lib_ark_builtins.d.ts | 150 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/ |
D | builtins_function_test.cpp | 95 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/ |
D | bindingPattern.test.ts | 41 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/ |
D | test-ts-typeof-returntype-1.ts | 17 public static test(fn, thisArg): (args: Parameters<typeof fn>) => void { 19 fn.apply(thisArg);
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
D | containers_stub_builder.cpp | 26 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 …]
|
D | builtins_function_stub_builder.cpp | 39 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/ |
D | native_inline_lowering.cpp | 99 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()
|
D | native_inline_lowering.h | 43 …void ArrayForeachCall(GateRef gate, GateRef thisObj, GateRef callBack, GateRef thisArg, Label *exi…
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_function.cpp | 126 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()
|
D | builtins_set.cpp | 200 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/ |
D | ets_vm_plugin.cpp | 103 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/ |
D | js_async_generator_object.cpp | 110 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()
|
D | js_async_function.cpp | 52 JSHandle<JSTaggedValue> thisArg = globalConst->GetHandledUndefined(); in AsyncFunctionAwait() local 56 EcmaInterpreter::NewRuntimeCallInfo(thread, resolve, thisArg, undefined, 1); in AsyncFunctionAwait()
|
D | js_function.cpp | 425 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/ |
D | ReadonlyArray.ets | 30 …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/ |
D | ets_interop_js_gtest.cpp | 61 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/ |
D | proxy.ts | 24 apply: function(target:any, thisArg:any, argumentsList:any[]) {
|
/arkcompiler/ets_runtime/ecmascript/js_api/ |
D | js_api_arraylist.h | 57 const JSHandle<JSTaggedValue> &thisArg); 63 const JSHandle<JSTaggedValue> &thisArg);
|
D | js_api_vector.h | 73 const JSHandle<JSTaggedValue> &thisArg); 77 const JSHandle<JSTaggedValue> &thisArg);
|
D | js_api_list.h | 40 const JSHandle<JSTaggedValue> &thisArg);
|
D | js_api_arraylist.cpp | 253 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()
|
D | js_api_vector.cpp | 292 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/ |
D | array_helper.h | 72 const JSHandle<JSTaggedValue> &thisArg);
|
D | array_helper.cpp | 279 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/ |
D | spreadoperator.js | 97 apply: function (target, thisArg, argumentsList) { argument
|