/arkcompiler/ets_runtime/ecmascript/compiler/tests/ |
H A D | dead_code_elimination_test.cpp | 46 auto arg0 = builder.Arguments(0); in HWTEST_F_L0() local 48 auto ifBranch = circuit.NewGate(circuit.IfBranch(0), {dead, arg0}); in HWTEST_F_L0() 51 auto trueReturn = circuit.NewGate(circuit.Return(), {ifTrue, depend, arg0, circuit.GetReturnRoot()}); in HWTEST_F_L0() 52 auto falseReturn = circuit.NewGate(circuit.Return(), {ifFalse, depend, arg0, circuit.GetReturnRoot()}); in HWTEST_F_L0() 76 auto arg0 = builder.Arguments(0); in HWTEST_F_L0() local 80 auto icmp = circuit.NewGate(circuit.Icmp(1), MachineType::I1, {arg0, arg1}, GateType::NJSValue()); in HWTEST_F_L0() 108 auto arg0 = builder.Arguments(0); in HWTEST_F_L0() local 112 auto icmp = circuit.NewGate(circuit.Icmp(1), MachineType::I1, {arg0, arg1}, GateType::NJSValue()); in HWTEST_F_L0() 120 auto valueSelector = circuit.NewGate(circuit.ValueSelector(3), {merge, arg0, arg1, arg2}); in HWTEST_F_L0() 134 EXPECT_TRUE(acc.GetIn(valueSelector, 1) == arg0); in HWTEST_F_L0() [all...] |
H A D | combined_pass_visitor_test.cpp | 52 auto arg0 = builder.Arguments(0); in HWTEST_F_L0() local 56 auto icmp = circuit.NewGate(circuit.Icmp(1), MachineType::I1, {arg0, arg1}, GateType::NJSValue()); in HWTEST_F_L0() 61 auto valueSelector = circuit.NewGate(circuit.ValueSelector(2), {merge, arg0, arg1}); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | ecma_runtime_call_info.h | 109 inline void SetCallArg(const JSTaggedValue arg0, const JSTaggedValue arg1) 112 SetArg(FIRST_ARGS_INDEX, arg0); 116 inline void SetCallArg(const JSTaggedValue arg0, const JSTaggedValue arg1, const JSTaggedValue arg2) 119 SetArg(FIRST_ARGS_INDEX, arg0); 124 inline void SetCallArg(const JSTaggedValue arg0, const JSTaggedValue arg1, const JSTaggedValue arg2, 128 SetArg(FIRST_ARGS_INDEX, arg0); 134 inline void SetCallArg(const JSTaggedValue arg0, const JSTaggedValue arg1, const JSTaggedValue arg2, 138 SetArg(FIRST_ARGS_INDEX, arg0);
|
/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
H A D | ETSGen.h | 546 void CallExact(const ir::AstNode *const node, const checker::Signature *signature, const VReg arg0, in CallExact() argument 549 CallArgStart<CallShort, Call, CallRange>(node, signature, arg0, arguments); in CallExact() 557 void CallExact(const ir::AstNode *const node, const util::StringView name, const VReg arg0) in CallExact() argument 559 Ra().Emit<CallShort, 1>(node, name, arg0, dummyReg_); in CallExact() 562 void CallExact(const ir::AstNode *const node, const util::StringView name, const VReg arg0, const VReg arg1) in CallExact() argument 564 Ra().Emit<CallShort>(node, name, arg0, arg1); in CallExact() 567 void CallExact(const ir::AstNode *const node, const util::StringView name, const VReg arg0, const VReg arg1, in CallExact() argument 570 Ra().Emit<Call, 3U>(node, name, arg0, arg1, arg2, dummyReg_); in CallExact() 595 const VReg arg0) in CallVirtual() 598 CallExact(node, signature->InternalName(), athis, arg0); in CallVirtual() 594 CallVirtual(const ir::AstNode *const node, const checker::Signature *signature, const VReg athis, const VReg arg0) CallVirtual() argument 609 CallVirtual(const ir::AstNode *const node, const util::StringView name, const VReg athis, const VReg arg0) CallVirtual() argument 814 VReg arg0 = AllocReg(); BinaryEqualityCondition() local [all...] |
H A D | pandagen.cpp | 936 void PandaGen::Call1This(const ir::AstNode *node, VReg callee, VReg thisReg, VReg arg0) in Call1This() argument 938 LoadAccumulator(node, arg0); in Call1This() 954 const auto *arg0 = args[0]; in Call1Arg() local 955 arg0->Compile(this); in Call1Arg() 967 const auto *arg0 = args[0]; in Call2Args() local 968 arg0->Compile(this); in Call2Args() 970 StoreAccumulator(arg0, arg0Reg); in Call2Args() 985 const auto *arg0 = args[0]; in Call3Args() local 986 arg0->Compile(this); in Call3Args() 988 StoreAccumulator(arg0, arg0Re in Call3Args() 1811 VReg arg0 = AllocReg(); DirectEval() local [all...] |
H A D | ETSGen.cpp | 617 void ETSGen::CreateBigIntObject(const ir::AstNode *node, VReg arg0, std::string_view signature) in CreateBigIntObject() argument 619 Ra().Emit<InitobjShort>(node, signature, arg0, dummyReg_); in CreateBigIntObject() 2483 VReg arg0 = AllocReg(); in StringBuilderAppend() local 2484 StoreAccumulator(node, arg0); in StringBuilderAppend() 2486 CallExact(node, signature, builder, arg0); in StringBuilderAppend()
|
H A D | pandagen.h | 136 void Call1This(const ir::AstNode *node, VReg callee, VReg thisReg, VReg arg0);
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/scenarios/js_to_ets/js_suites/ |
H A D | scenarios.js | 187 function jsMultiplyArgBySumRestParams(arg0, ...args) { 190 return sum * arg0; 193 function jsMultiplySumArgsBySumRestParams(arg0, arg1, ...args) { 196 return sum * (arg0 + arg1);
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | call_stub_builder.cpp | 546 callArgs_.callArgs.arg0
in PrepareAppendArgsForNative() 551 callArgs_.callArgs.arg0,
in PrepareAppendArgsForNative() 557 callArgs_.callArgs.arg0,
in PrepareAppendArgsForNative() 568 callArgs_.callArgsWithThis.arg0
in PrepareAppendArgsForNative() 573 callArgs_.callArgsWithThis.arg0,
in PrepareAppendArgsForNative() 579 callArgs_.callArgsWithThis.arg0,
in PrepareAppendArgsForNative() 595 callArgs_.callThisArg2WithReturnArgs.arg0,
in PrepareAppendArgsForNative() 783 return { callArgs_.callArgs.arg0 };
in PrepareAppendArgsForAotStep1() 787 callArgs_.callArgs.arg0,
in PrepareAppendArgsForAotStep1() 793 callArgs_.callArgs.arg0,
in PrepareAppendArgsForAotStep1() [all...] |
H A D | call_stub_builder.h | 25 GateRef arg0;
member 31 GateRef arg0;
member 74 GateRef arg0;
member
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
H A D | builtins_stubs.cpp | 210 GateRef arg0 = GetCallArg0(numArgs);
in CallSlowPath() local 211 auto args = { nativeCode, glue, runtimeCallInfoArgs, func, newTarget, thisValue, arg0 };
in CallSlowPath() 220 GateRef arg0 = GetCallArg0(numArgs);
in CallSlowPath() local 222 auto args = { nativeCode, glue, runtimeCallInfoArgs, func, newTarget, thisValue, arg0, arg1 };
in CallSlowPath() 228 GateRef arg0 = GetCallArg0(numArgs);
in CallSlowPath() local 231 auto args = { nativeCode, glue, runtimeCallInfoArgs, func, newTarget, thisValue, arg0, arg1, arg2 };
in CallSlowPath() 565 GateRef arg0 = GetArgFromArgv(IntPtr(0), numArgs, true);
in DECLARE_BUILTINS() local 566 hashTableBuilder.GenMapSetConstructor(nativeCode, func, newTarget, thisValue, numArgs, arg0, GetArgv());
in DECLARE_BUILTINS() 572 GateRef arg0 = GetArgFromArgv(IntPtr(0), numArgs, true);
in DECLARE_BUILTINS() local 573 hashTableBuilder.GenMapSetConstructor(nativeCode, func, newTarget, thisValue, numArgs, arg0, GetArg in DECLARE_BUILTINS() [all...] |
H A D | linked_hashtable_stub_builder.cpp | 642 GateRef nativeCode, GateRef func, GateRef newTarget, GateRef thisValue, GateRef numArgs, GateRef arg0, GateRef argv) in GenMapSetConstructor() 678 BRANCH(TaggedIsUndefinedOrNull(arg0), &isUndefinedOrNull, &slowPath); in GenMapSetConstructor() 701 GateRef arg0, GateRef argv); 704 GateRef arg0, GateRef argv); 641 GenMapSetConstructor( GateRef nativeCode, GateRef func, GateRef newTarget, GateRef thisValue, GateRef numArgs, GateRef arg0, GateRef argv) GenMapSetConstructor() argument
|
H A D | linked_hashtable_stub_builder.h | 41 GateRef arg0, GateRef argv);
|
H A D | builtins_string_stub_builder.cpp | 2151 GateRef arg0 = TaggedArgument(static_cast<size_t>(BuiltinsArgs::ARG0_OR_ARGV));
in Concat() local 2152 BRANCH(TaggedIsString(arg0), &arg0IsValid, slowPath);
in Concat() 2158 res->WriteVariable(StringConcat(glue, thisValue, arg0));
in Concat() 2163 result = StringConcat(glue, thisValue, arg0);
in Concat() 2431 GateRef arg0 = GetCallArg0(numArgs);
in LocaleCompare() local 2432 BRANCH(TaggedIsHeapObject(arg0), &arg0IsHeapObj, slowPath);
in LocaleCompare() 2434 BRANCH(IsString(arg0), &fristArgIsString, slowPath);
in LocaleCompare() 2451 GateRef resValue = CallRuntime(glue, RTSTUB_ID(LocaleCompareCacheable), {locales, thisValue, arg0});
in LocaleCompare() 2459 res->WriteVariable(CallRuntime(glue, RTSTUB_ID(LocaleCompareWithGc), {locales, thisValue, arg0, options}));
in LocaleCompare()
|
H A D | builtins_array_stub_builder.cpp | 419 GateRef arg0 = GetCallArg0(numArgs); in Concat() local 422 .And(IsStableJSArray(glue, arg0)).Done(); in Concat() 428 GateRef argLen = ZExtInt32ToInt64(GetArrayLength(arg0)); in Concat() 446 .And(IsConcatSpreadable(glue, arg0)).Done(); in Concat() 508 GateRef ele = GetTaggedValueWithElementsKind(arg0, *k); in Concat() 4788 GateRef arg0 = GetArgFromArgv(IntPtr(0), numArgs, true); in GenArrayConstructor() local 4789 BRANCH(TaggedIsNumber(arg0), &argIsNumber, &slowPath); in GenArrayConstructor() 4794 BRANCH(TaggedIsInt(arg0), &argIsInt, &argIsDouble); in GenArrayConstructor() 4798 GateRef intLen = GetInt64OfTInt(arg0); in GenArrayConstructor() 4811 GateRef doubleLength = GetDoubleOfTDouble(arg0); in GenArrayConstructor() [all...] |
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
H A D | taggedTemplateExpression.cpp | 67 compiler::VReg arg0 = pg->AllocReg(); in Compile() local 68 pg->StoreAccumulator(this, arg0); in Compile()
|
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/ir_builder/js_interop/ |
H A D | js_interop_inst_builder.cpp | 88 Inst *arg0, Inst *arg1, Inst *arg2, in BuildResolveInteropCallIntrinsic() 96 jsFn = IntrinsicCompilerConvertJSValueToLocal::Build(this, pc, arg0, saveState); in BuildResolveInteropCallIntrinsic() 100 auto jsVal = IntrinsicCompilerConvertJSValueToLocal::Build(this, pc, arg0, saveState); in BuildResolveInteropCallIntrinsic() 86 BuildResolveInteropCallIntrinsic(RuntimeInterface::InteropCallKind callKind, size_t pc, RuntimeInterface::MethodPtr method, Inst *arg0, Inst *arg1, Inst *arg2, Inst *cpOffsetForClass, SaveStateInst *saveState) BuildResolveInteropCallIntrinsic() argument
|
H A D | js_interop_inst_builder.h | 29 RuntimeInterface::MethodPtr method, Inst *arg0, Inst *arg1,
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
H A D | pandagen.cpp | 1280 VReg arg0 = thisReg + 1; in CallThis() local 1281 ra_.Emit<Callthis1>(node, 0, thisReg, arg0); in CallThis() 1285 VReg arg0 = thisReg + 1; in CallThis() local 1286 VReg arg1 = arg0 + 1; in CallThis() 1287 ra_.Emit<Callthis2>(node, 0, thisReg, arg0, arg1); in CallThis() 1291 VReg arg0 = thisReg + 1; in CallThis() local 1292 VReg arg1 = arg0 + 1; in CallThis() 1294 ra_.Emit<Callthis3>(node, 0, thisReg, arg0, arg1, arg2); in CallThis() 1319 VReg arg0 = startReg + 1; in Call() local 1320 ra_.Emit<Callarg1>(node, 0, arg0); in Call() 1324 VReg arg0 = startReg + 1; Call() local 1330 VReg arg0 = startReg + 1; Call() local 1337 VReg arg0 = startReg + 1; Call() local [all...] |
/arkcompiler/ets_runtime/ecmascript/js_vm/ |
H A D | main.cpp | 64 Local<JSValueRef> arg0 = ArrayRef::GetValueAt(vm, arr0, i); in IsEqual() local 66 if (!IsEqual(vm, arg0, arg1)) { in IsEqual()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
H A D | simplify_string_builder.cpp | 1721 auto arg0 = match.appendIntrinsics[0U]->GetInput(1U).GetInst(); 1730 {arg0, arg0->GetType()}, 1741 {arg0, arg0->GetType()}, 1754 {arg0, arg0->GetType()},
|
/arkcompiler/ets_runtime/ecmascript/containers/ |
H A D | containers_vector.cpp | 660 JSHandle<JSTaggedValue> arg0(GetCallArg(argv, 0)); in CopyToArray() 661 if (!arg0->IsJSArray()) { in CopyToArray() 669 JSHandle<JSArray> array = JSHandle<JSArray>::Cast(arg0); in CopyToArray()
|
/arkcompiler/ets_runtime/ecmascript/compiler/trampoline/x64/ |
H A D | asm_interpreter_call.cpp | 359 // %rsi - arg0 // %rsi - actualArgc 436 Register arg0 = __ CallDispatcherArgument(kungfu::CallDispatchInputs::ARG0); in JSCallCommonFastPath() local 443 Register argcRegister = arg0; in JSCallCommonFastPath() 470 __ Pushq(arg0); in JSCallCommonFastPath() 481 Register arg0 = argcRegister; in JSCallCommonSlowPath() local 552 __ Pushq(arg0); in JSCallCommonSlowPath() 1015 __ Movq(Operand(temp, FRAME_SLOT_SIZE * 3), r10); // 3: get arg0 in CallFastBuiltin() 1026 __ Movq(Operand(temp, FRAME_SLOT_SIZE * 3), r10); // 3: get arg0 in CallFastBuiltin() 1036 __ Movq(Operand(temp, FRAME_SLOT_SIZE * 3), r10); // 3: get arg0 in CallFastBuiltin() 1263 // arg0(arg [all...] |
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_shared_array_test.cpp | 602 #define ARRAY_BUILTIN_METHOD_TEST_CASE_ARG1(method, target, expected, arg0) \ 607 ecmaRuntimeCallInfo->SetCallArg(0, JSTaggedValue(arg0)); \ 615 #define ARRAY_BUILTIN_METHOD_TEST_CASE_ARG2(method, target, expected, arg0, arg1) \ 620 ecmaRuntimeCallInfo->SetCallArg(0, JSTaggedValue(arg0)); \
|
/arkcompiler/ets_runtime/ecmascript/compiler/trampoline/aarch64/ |
H A D | asm_interpreter_call.cpp | 225 Register arg0 = __ CallDispatcherArgument(kungfu::CallDispatchInputs::ARG0); in JSCallCommonFastPath() local 226 __ Str(arg0, MemoryOperand(currentSlotRegister, -FRAME_SLOT_SIZE, AddrMode::PREINDEX)); in JSCallCommonFastPath() 239 Register arg0 = __ CallDispatcherArgument(kungfu::CallDispatchInputs::ARG0); in JSCallCommonSlowPath() local 313 __ Str(arg0, MemoryOperand(currentSlotRegister, -FRAME_SLOT_SIZE, AddrMode::PREINDEX)); in JSCallCommonSlowPath() 386 // X23 - arg0 // X23 - actualArgc 1092 // X4 - arg0(argc) 1930 __ Ldp(Register(X6), Register(X7), MemoryOperand(temp, TRIPLE_SLOT_SIZE)); // get arg0 arg1
|