Home
last modified time | relevance | path

Searched refs:argumentsList (Results 1 - 15 of 15) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_reflect.cpp22 // ecma 26.1.1 Reflect.apply (target, thisArgument, argumentsList)
31 JSHandle<JSTaggedValue> argumentsList = GetCallArg(argv, BuiltinsBase::ArgsPosition::THIRD); in ReflectApply() local
32 return ReflectApplyInternal(thread, target, thisArgument, argumentsList); in ReflectApply()
37 JSHandle<JSTaggedValue> argumentsList) in ReflectApplyInternal()
44 // 2. Let args be ? CreateListFromArrayLike(argumentsList). in ReflectApplyInternal()
45 JSHandle<JSTaggedValue> argOrAbrupt = JSObject::CreateListFromArrayLike(thread, argumentsList); in ReflectApplyInternal()
60 // ecma 26.1.2 Reflect.construct (target, argumentsList [ , newTarget])
80 // 4. Let args be ? CreateListFromArrayLike(argumentsList). in ReflectConstruct()
81 JSHandle<JSTaggedValue> argumentsList = GetCallArg(argv, 1); in ReflectConstruct() local
82 JSHandle<JSTaggedValue> argOrAbrupt = JSObject::CreateListFromArrayLike(thread, argumentsList); in ReflectConstruct()
35 ReflectApplyInternal(JSThread *thread, JSHandle<JSTaggedValue> target, JSHandle<JSTaggedValue> thisArgument, JSHandle<JSTaggedValue> argumentsList) ReflectApplyInternal() argument
[all...]
H A Dbuiltins_function.cpp145 std::pair<TaggedArray*, size_t> argumentsList = BuildArgumentsListFast(thread, arrayObj); in FunctionPrototypeApplyInternal() local
146 if (!argumentsList.first) { in FunctionPrototypeApplyInternal()
159 const uint32_t argsLength = static_cast<uint32_t>(argumentsList.second); in FunctionPrototypeApplyInternal()
162 info->SetCallArg(argsLength, argumentsList.first); in FunctionPrototypeApplyInternal()
H A Dbuiltins_reflect.h28 /* Reflect.apply ( target, thisArgument, argumentsList ) */ \
30 /* Reflect.construct ( target, argumentsList [ , newTarget ] ) */ \
62 JSHandle<JSTaggedValue> argumentsList);
/arkcompiler/ets_runtime/test/moduletest/spreadoperator/
H A Dspreadoperator.js97 apply: function (target, thisArg, argumentsList) {
98 return target(...argumentsList);
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
H A Dbuiltins_reflect_test.cpp67 // Reflect.apply (target, thisArgument, argumentsList)
85 // argumentsList in HWTEST_F_L0()
86 JSHandle<JSObject> argumentsList(JSArray::ArrayCreate(thread, JSTaggedNumber(2))); in HWTEST_F_L0()
88 JSArray::DefineOwnProperty(thread, argumentsList, JSHandle<JSTaggedValue>(thread, JSTaggedValue(0)), desc); in HWTEST_F_L0()
91 JSArray::DefineOwnProperty(thread, argumentsList, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)), desc1); in HWTEST_F_L0()
98 ecmaRuntimeCallInfo->SetCallArg(2, JSTaggedValue(*argumentsList)); in HWTEST_F_L0()
111 // Reflect.construct (target, argumentsList [ , newTarget])
120 // argumentsList in HWTEST_F_L0()
121 JSHandle<JSObject> argumentsList(JSArray::ArrayCreate(thread, JSTaggedNumber(1))); in HWTEST_F_L0()
124 JSArray::DefineOwnProperty(thread, argumentsList, JSHandl in HWTEST_F_L0()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dnew_object_stub_builder.h95 void FillArgumentsList(GateRef argumentsList, GateRef sp, GateRef startIdx, GateRef numArgs);
97 void NewArgumentsObj(Variable *result, Label *exit, GateRef argumentsList, GateRef numArgs);
H A Dcommon_stubs.cpp399 DEFVARIABLE(argumentsList, VariableType::JS_ANY(), Hole()); in GenerateCircuit()
414 argumentsList.WriteVariable(argumentsListObj); in GenerateCircuit()
415 Branch(TaggedIsException(*argumentsList), &argumentsException, &fillArguments); in GenerateCircuit()
417 argumentsObj.WriteVariable(*argumentsList); in GenerateCircuit()
422 newBuilder.FillArgumentsList(*argumentsList, args, startIdx, actualArgc); in GenerateCircuit()
423 newBuilder.NewArgumentsObj(&argumentsObj, &exit, *argumentsList, actualArgc); in GenerateCircuit()
H A Dnative_inline_lowering.cpp1350 GateRef argumentsList = acc_.GetValueIn(gate, firstParam + 1); in TryInlineReflectConstruct() local
1352 OpCode op = acc_.GetOpCode(argumentsList); in TryInlineReflectConstruct()
1357 EcmaOpcode ecmaOpcode = acc_.GetByteCodeOpcode(argumentsList); in TryInlineReflectConstruct()
1358 // optimize empty array literal argumentsList in TryInlineReflectConstruct()
1380 if (argc != 3) { // 3: target key and argumentsList in TryInlineReflectApply()
1387 GateRef argumentsList = acc_.GetValueIn(gate, firstParam + 2); in TryInlineReflectApply() local
1398 GateRef ret = builder_.BuildControlDependOp(circuit_->ReflectApply(), { target, thisValue, argumentsList }); in TryInlineReflectApply()
H A Dnew_object_stub_builder.cpp1222 void NewObjectStubBuilder::FillArgumentsList(GateRef argumentsList, in FillArgumentsList() argument
1238 SetValueToTaggedArray(VariableType::JS_ANY(), glue_, argumentsList, *i, argument); in FillArgumentsList() local
1280 GateRef argumentsList = NewArgumentsListObj(numArgs); in NewArgumentsList() local
1281 result->WriteVariable(argumentsList); in NewArgumentsList()
1282 Branch(TaggedIsException(argumentsList), &hasException, &notException); in NewArgumentsList()
1286 FillArgumentsList(argumentsList, sp, startIdx, numArgs); in NewArgumentsList()
1291 GateRef argumentsList, GateRef numArgs) in NewArgumentsObj()
1307 SetElementsArray(VariableType::JS_ANY(), glue_, result->ReadVariable(), argumentsList); in NewArgumentsObj() local
1290 NewArgumentsObj(Variable *result, Label *exit, GateRef argumentsList, GateRef numArgs) NewArgumentsObj() argument
H A Dinterpreter_stub.cpp533 DEFVARIABLE(argumentsList, VariableType::JS_ANY(), Hole()); in DECLARE_ASM_HANDLER()
548 newBuilder.NewArgumentsList(&argumentsList, &afterArgumentsList, sp, startIdx, numArgs); in DECLARE_ASM_HANDLER()
550 BRANCH(TaggedIsException(*argumentsList), &slowPath, &newArgumentsObj); in DECLARE_ASM_HANDLER()
553 newBuilder.NewArgumentsObj(&argumentsObj, &afterArgumentsObj, *argumentsList, numArgs); in DECLARE_ASM_HANDLER()
H A Dtyped_native_inline_lowering.cpp2792 GateRef argumentsList = acc_.GetValueIn(gate, 2); in LowerReflectApply() local
2794 { target, thisValue, argumentsList }, gate); in LowerReflectApply()
/arkcompiler/ets_runtime/ecmascript/stubs/
H A Druntime_stubs-inl.h2177 JSHandle<TaggedArray> argumentsList = factory->NewTaggedArray(actualNumArgs); in RuntimeGetUnmapedArgs() local
2179 argumentsList->Set(thread, i, in RuntimeGetUnmapedArgs()
2182 return RuntimeGetUnmapedJSArgumentObj(thread, argumentsList); in RuntimeGetUnmapedArgs()
2705 JSHandle<TaggedArray> argumentsList = factory->NewTaggedArray(actualNumArgs - NUM_MANDATORY_JSFUNC_ARGS);
2713 argumentsList->Set(thread, idx++, args);
2715 return RuntimeGetUnmapedJSArgumentObj(thread, argumentsList);
2718 JSTaggedValue RuntimeStubs::RuntimeGetUnmapedJSArgumentObj(JSThread *thread, const JSHandle<TaggedArray> &argumentsList)
2722 // 1. Let len be the number of elements in argumentsList
2723 uint32_t len = argumentsList->GetLength();
2733 // a. Let val be argumentsList[inde
[all...]
H A Druntime_stubs.h452 const JSHandle<TaggedArray> &argumentsList);
H A Druntime_stubs.cpp4024 JSHandle<JSTaggedValue> argumentsList = GetHArg<JSTaggedValue>(argv, argc, 2); // 2: means the second parameter in DEF_RUNTIME_STUBS() local
4025 JSTaggedValue result = builtins::BuiltinsReflect::ReflectApplyInternal(thread, target, thisValue, argumentsList); in DEF_RUNTIME_STUBS()
/arkcompiler/ets_runtime/ecmascript/compiler/baseline/
H A Dbaseline_stubs.cpp405 DEFVARIABLE(argumentsList, VariableType::JS_ANY(), Hole()); in GenerateCircuit()
420 newBuilder.NewArgumentsList(&argumentsList, &afterArgumentsList, sp, startIdx, numArgs); in GenerateCircuit()
422 Branch(TaggedIsException(*argumentsList), &slowPath, &newArgumentsObj); in GenerateCircuit()
425 newBuilder.NewArgumentsObj(&argumentsObj, &afterArgumentsObj, *argumentsList, numArgs); in GenerateCircuit()

Completed in 61 milliseconds