Home
last modified time | relevance | path

Searched refs:actualNumArgs (Results 1 – 25 of 26) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/compiler/trampoline/x64/
Doptimized_fast_call.cpp230 Register actualNumArgs(r12); in JSFastCallWithArgV() local
233 __ Cmp(0, actualNumArgs); in JSFastCallWithArgV()
237 __ Addq(-1, actualNumArgs); in JSFastCallWithArgV()
239 __ Cmp(0, actualNumArgs); in JSFastCallWithArgV()
243 __ Addq(-1, actualNumArgs); in JSFastCallWithArgV()
245 __ Cmp(0, actualNumArgs); in JSFastCallWithArgV()
249 __ Addq(-1, actualNumArgs); in JSFastCallWithArgV()
251 __ Cmp(0, actualNumArgs); in JSFastCallWithArgV()
254 __ Testb(1, actualNumArgs); in JSFastCallWithArgV()
258 __ Mov(actualNumArgs, rax); in JSFastCallWithArgV()
Doptimized_call.cpp824 Register actualNumArgs, Register argV, Label *pushCallThis) in PushArgsWithArgV() argument
843 __ Cmpq(actualNumArgs, expectedNumArgs); in PushArgsWithArgV()
845 __ Subq(actualNumArgs, tmp); in PushArgsWithArgV()
850 __ Cmpq(actualNumArgs, expectedNumArgs); in PushArgsWithArgV()
851 __ Movq(actualNumArgs, tmp); // rax -> actualNumArgsReg in PushArgsWithArgV()
971 Register actualNumArgs(rsi); in GenJSCallWithArgV() local
983 __ Testb(1, actualNumArgs); in GenJSCallWithArgV()
987 __ Cmp(Immediate(0), actualNumArgs); in GenJSCallWithArgV()
989 __ Mov(actualNumArgs, rax); in GenJSCallWithArgV()
993 __ Addq(Immediate(NUM_MANDATORY_JSFUNC_ARGS), actualNumArgs); in GenJSCallWithArgV()
[all …]
Dcommon_call.h81 Register actualNumArgs, Register argV, Label *pushCallThis);
/arkcompiler/ets_runtime/ecmascript/compiler/trampoline/aarch64/
Doptimized_call.cpp207 Register actualNumArgs(X2); in OptimizedCallAndPushUndefined() local
221 __ Ldr(actualNumArgs, MemoryOperand(sp, 0)); in OptimizedCallAndPushUndefined()
231 __ Cmp(expectedNumArgs, actualNumArgs); in OptimizedCallAndPushUndefined()
232 __ CMov(argC, expectedNumArgs, actualNumArgs, Condition::HI); in OptimizedCallAndPushUndefined()
239 __ Subs(tmp, expectedNumArgs, actualNumArgs); in OptimizedCallAndPushUndefined()
244 __ Cbz(actualNumArgs, &invokeCompiledJSFunction); in OptimizedCallAndPushUndefined()
250 __ Mov(argc, actualNumArgs); in OptimizedCallAndPushUndefined()
256 __ Str(actualNumArgs, MemoryOperand(sp, 0)); in OptimizedCallAndPushUndefined()
262 __ Ldr(actualNumArgs, MemoryOperand(sp, 0)); in OptimizedCallAndPushUndefined()
263 PopJSFunctionArgs(assembler, Register(X19), actualNumArgs); in OptimizedCallAndPushUndefined()
[all …]
Doptimized_fast_call.cpp100 Register actualNumArgs(X1); in OptimizedFastCallAndPushUndefined() local
252 Register actualNumArgs(X3); in JSFastCallWithArgV() local
264 __ Mov(argC, actualNumArgs); in JSFastCallWithArgV()
Dcommon_call.h107 … PopJSFunctionArgs(ExtendedAssembler *assembler, Register expectedNumArgs, Register actualNumArgs);
/arkcompiler/ets_runtime/ecmascript/deoptimizer/
Ddeoptimizer.cpp325 int32_t actualNumArgs = 0; in CollectVirtualRegisters() local
328 actualNumArgs = static_cast<int32_t>(GetDeoptValue(curDepth, in CollectVirtualRegisters()
333 actualNumArgs = static_cast<int32_t>(method->GetNumArgsWithCallField()); in CollectVirtualRegisters()
343 if (!method->IsFastCall() && declaredNumArgs != actualNumArgs) { in CollectVirtualRegisters()
344 auto value = JSTaggedValue(actualNumArgs); in CollectVirtualRegisters()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dinterpreter_stub.cpp3570 GateRef actualNumArgs = Int32(InterpreterAssembly::ActualNumArgsOfCall::CALLARG0); in DECLARE_ASM_HANDLER() local
3573 GateRef res = JSCallDispatch(glue, func, actualNumArgs, jumpSize, hotnessCounter, in DECLARE_ASM_HANDLER()
3580 GateRef actualNumArgs = Int32(InterpreterAssembly::ActualNumArgsOfCall::CALLARG0); in DECLARE_ASM_HANDLER() local
3584 GateRef res = JSCallDispatch(glue, func, actualNumArgs, jumpSize, hotnessCounter, in DECLARE_ASM_HANDLER()
3591 GateRef actualNumArgs = Int32(InterpreterAssembly::ActualNumArgsOfCall::CALLARG1); in DECLARE_ASM_HANDLER() local
3596 GateRef res = JSCallDispatch(glue, func, actualNumArgs, jumpSize, hotnessCounter, in DECLARE_ASM_HANDLER()
3603 GateRef actualNumArgs = Int32(InterpreterAssembly::ActualNumArgsOfCall::CALLARG1); in DECLARE_ASM_HANDLER() local
3609 GateRef res = JSCallDispatch(glue, func, actualNumArgs, jumpSize, hotnessCounter, in DECLARE_ASM_HANDLER()
3616 GateRef actualNumArgs = Int32(InterpreterAssembly::ActualNumArgsOfCall::CALLARGS2); in DECLARE_ASM_HANDLER() local
3623 GateRef res = JSCallDispatch(glue, func, actualNumArgs, jumpSize, hotnessCounter, in DECLARE_ASM_HANDLER()
[all …]
Dllvm_ir_builder.cpp568 size_t actualNumArgs = 0; in VisitRuntimeCall() local
570 ComputeArgCountAndPCOffset(actualNumArgs, pcOffset, inList, kind); in VisitRuntimeCall()
577 actualNumArgs - static_cast<size_t>(CallInputs::FIRST_PARAMETER), 0)); // argc in VisitRuntimeCall()
578 …for (size_t paraIdx = static_cast<size_t>(CallInputs::FIRST_PARAMETER); paraIdx < actualNumArgs; +… in VisitRuntimeCall()
593 runtimeCall = LLVMBuildCall3(builder_, funcType, callee, params.data(), actualNumArgs, in VisitRuntimeCall()
596 runtimeCall = LLVMBuildCall2(builder_, funcType, callee, params.data(), actualNumArgs, ""); in VisitRuntimeCall()
755 void LLVMIRBuilder::ComputeArgCountAndPCOffset(size_t &actualNumArgs, LLVMValueRef &pcOffset, in ComputeArgCountAndPCOffset() argument
759 actualNumArgs = inList.size() - 1; in ComputeArgCountAndPCOffset()
760 pcOffset = gate2LValue_[inList[actualNumArgs]]; in ComputeArgCountAndPCOffset()
761 ASSERT(acc_.GetOpCode(inList[actualNumArgs]) == OpCode::CONSTANT); in ComputeArgCountAndPCOffset()
[all …]
Dbytecodes.cpp527 uint32_t actualNumArgs = READ_INST_8_1(); in InitBytecodeInfo() local
530 for (size_t i = 1; i <= actualNumArgs; i++) { in InitBytecodeInfo()
536 uint32_t actualNumArgs = READ_INST_16_1(); in InitBytecodeInfo() local
539 for (size_t i = 1; i <= actualNumArgs; i++) { in InitBytecodeInfo()
578 int32_t actualNumArgs = READ_INST_8_1(); in InitBytecodeInfo() local
580 for (int i = 0; i < actualNumArgs; i++) { in InitBytecodeInfo()
586 int32_t actualNumArgs = READ_INST_16_1(); in InitBytecodeInfo() local
588 for (int i = 0; i < actualNumArgs; i++) { in InitBytecodeInfo()
Dstub_builder.cpp5141 GateRef StubBuilder::JSCallDispatch(GateRef glue, GateRef func, GateRef actualNumArgs, GateRef jump… in JSCallDispatch() argument
5192 GateRef numArgs = Int32Add(actualNumArgs, Int32(NUM_MANDATORY_JSFUNC_ARGS)); in JSCallDispatch()
5196 CallFastPath(glue, nativeCode, func, thisValue, actualNumArgs, callField, in JSCallDispatch()
5210 CallFastPath(glue, nativeCode, func, thisValue, actualNumArgs, callField, in JSCallDispatch()
5224 CallFastPath(glue, nativeCode, func, thisValue, actualNumArgs, callField, in JSCallDispatch()
5238 CallFastPath(glue, nativeCode, func, thisValue, actualNumArgs, callField, in JSCallDispatch()
5265 CallFastPath(glue, nativeCode, func, thisValue, actualNumArgs, callField, in JSCallDispatch()
5323 … GateRef realNumArgs = Int64Add(ZExtInt32ToInt64(actualNumArgs), Int64(NUM_MANDATORY_JSFUNC_ARGS)); in JSCallDispatch()
5375 { glue, func, thisValue, ZExtInt32ToInt64(actualNumArgs), data[1] }); in JSCallDispatch()
5381 { glue, func, data[2], ZExtInt32ToInt64(actualNumArgs), data[1]}); in JSCallDispatch()
[all …]
Dbytecode_circuit_builder.cpp519 const size_t actualNumArgs = argAcc_.GetActualNumArgs(); in BuildCircuitArgs() local
521 for (size_t argIdx = funcIdx; argIdx < actualNumArgs; argIdx++) { in BuildCircuitArgs()
526 …size_t actualNumArgs = static_cast<size_t>(FastCallArgIdx::NUM_OF_ARGS) + method_->GetNumArgsWithC… in BuildCircuitArgs() local
527 for (size_t argIdx = funcIdx; argIdx < actualNumArgs; argIdx++) { in BuildCircuitArgs()
Dllvm_ir_builder.h516 void ComputeArgCountAndPCOffset(size_t &actualNumArgs, LLVMValueRef &pcOffset,
Dstub_builder.h623 …GateRef JSCallDispatch(GateRef glue, GateRef func, GateRef actualNumArgs, GateRef jumpSize, GateRe…
637 …lFastPath(GateRef glue, GateRef nativeCode, GateRef func, GateRef thisValue, GateRef actualNumArgs,
/arkcompiler/ets_runtime/ecmascript/interpreter/
Dinterpreter-inl.h328 if (UNLIKELY(thread->DoStackOverflowCheck(newSp - actualNumArgs))) { \
331 for (int i = actualNumArgs - 1; i >= 0; i--) { \
339 if (UNLIKELY(thread->DoStackOverflowCheck(newSp - actualNumArgs))) { \
342 for (int i = actualNumArgs; i > 0; i--) { \
350 if (UNLIKELY(thread->DoStackOverflowCheck(newSp - actualNumArgs))) { \
354 for (int i = actualNumArgs; i > 0; i--) { \
362 if (UNLIKELY(thread->DoStackOverflowCheck(newSp - actualNumArgs))) { \
366 for (int i = actualNumArgs + 1; i > 1; i--) { \
418 int num = std::min(actualNumArgs, declaredNumArgs); \
430 int num = std::min(actualNumArgs, declaredNumArgs); \
[all …]
Dslow_runtime_stub.h110 …static JSTaggedValue GetUnmapedArgs(JSThread *thread, JSTaggedType *sp, uint32_t actualNumArgs, ui…
Dslow_runtime_stub.cpp756 …edValue SlowRuntimeStub::GetUnmapedArgs(JSThread *thread, JSTaggedType *sp, uint32_t actualNumArgs, in GetUnmapedArgs() argument
761 return RuntimeStubs::RuntimeGetUnmapedArgs(thread, sp, actualNumArgs, startIdx); in GetUnmapedArgs()
/arkcompiler/ets_runtime/ecmascript/
Djs_function.cpp333 size_t actualNumArgs = method->GetNumArgs(); in InvokeOptimizedEntrypoint() local
344 res = thread->GetEcmaVM()->FastCallAot(actualNumArgs, args.data(), prevFp); in InvokeOptimizedEntrypoint()
349 … res = thread->GetCurrentEcmaContext()->ExecuteAot(actualNumArgs, args.data(), prevFp, false); in InvokeOptimizedEntrypoint()
366 size_t actualNumArgs = method->GetNumArgs(); in GetArgsData() local
368 argsNum = actualNumArgs + NUM_MANDATORY_JSFUNC_ARGS - 1; in GetArgsData()
371 argsNum = actualNumArgs + NUM_MANDATORY_JSFUNC_ARGS; in GetArgsData()
Decma_vm.cpp318 JSTaggedValue EcmaVM::FastCallAot(size_t actualNumArgs, JSTaggedType *args, const JSTaggedType *pre… in FastCallAot() argument
325 actualNumArgs, in FastCallAot()
Decma_vm.h384 JSTaggedValue FastCallAot(size_t actualNumArgs, JSTaggedType *args, const JSTaggedType *prevFp);
Decma_context.h282 JSTaggedValue ExecuteAot(size_t actualNumArgs, JSTaggedType *args, const JSTaggedType *prevFp,
Decma_context.cpp226 JSTaggedValue EcmaContext::ExecuteAot(size_t actualNumArgs, JSTaggedType *args, in ExecuteAot() argument
234 actualNumArgs, in ExecuteAot()
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs.h591 …ine JSTaggedValue RuntimeGetUnmapedArgs(JSThread *thread, JSTaggedType *sp, uint32_t actualNumArgs,
633 static inline JSTaggedValue RuntimeOptGetUnmapedArgs(JSThread *thread, uint32_t actualNumArgs);
Druntime_stubs-inl.h1812 …lue RuntimeStubs::RuntimeGetUnmapedArgs(JSThread *thread, JSTaggedType *sp, uint32_t actualNumArgs, in RuntimeGetUnmapedArgs() argument
1816 JSHandle<TaggedArray> argumentsList = factory->NewTaggedArray(actualNumArgs); in RuntimeGetUnmapedArgs()
1817 for (uint32_t i = 0; i < actualNumArgs; ++i) { in RuntimeGetUnmapedArgs()
2195 JSTaggedValue RuntimeStubs::RuntimeOptGetUnmapedArgs(JSThread *thread, uint32_t actualNumArgs) in RuntimeOptGetUnmapedArgs() argument
2198 …JSHandle<TaggedArray> argumentsList = factory->NewTaggedArray(actualNumArgs - NUM_MANDATORY_JSFUNC… in RuntimeOptGetUnmapedArgs()
2202 for (uint32_t i = NUM_MANDATORY_JSFUNC_ARGS; i < actualNumArgs; ++i) { in RuntimeOptGetUnmapedArgs()
Druntime_stubs.cpp1590 uint32_t actualNumArgs = InterpreterAssembly::GetNumArgs(sp, 0, startIdx); in DEF_RUNTIME_STUBS() local
1591 return RuntimeGetUnmapedArgs(thread, sp, actualNumArgs, startIdx).GetRawData(); in DEF_RUNTIME_STUBS()
1839 JSTaggedValue actualNumArgs = GetArg(argv, argc, 0); // 0: means the zeroth parameter in DEF_RUNTIME_STUBS() local
1840 return RuntimeOptGetUnmapedArgs(thread, actualNumArgs.GetInt()).GetRawData(); in DEF_RUNTIME_STUBS()

12