/arkcompiler/ets_runtime/ecmascript/compiler/trampoline/x64/ |
D | optimized_fast_call.cpp | 230 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()
|
D | optimized_call.cpp | 824 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 …]
|
D | common_call.h | 81 Register actualNumArgs, Register argV, Label *pushCallThis);
|
/arkcompiler/ets_runtime/ecmascript/compiler/trampoline/aarch64/ |
D | optimized_call.cpp | 207 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 …]
|
D | optimized_fast_call.cpp | 100 Register actualNumArgs(X1); in OptimizedFastCallAndPushUndefined() local 252 Register actualNumArgs(X3); in JSFastCallWithArgV() local 264 __ Mov(argC, actualNumArgs); in JSFastCallWithArgV()
|
D | common_call.h | 107 … PopJSFunctionArgs(ExtendedAssembler *assembler, Register expectedNumArgs, Register actualNumArgs);
|
/arkcompiler/ets_runtime/ecmascript/deoptimizer/ |
D | deoptimizer.cpp | 325 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/ |
D | interpreter_stub.cpp | 3570 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 …]
|
D | llvm_ir_builder.cpp | 568 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 …]
|
D | bytecodes.cpp | 527 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()
|
D | stub_builder.cpp | 5141 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 …]
|
D | bytecode_circuit_builder.cpp | 519 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()
|
D | llvm_ir_builder.h | 516 void ComputeArgCountAndPCOffset(size_t &actualNumArgs, LLVMValueRef &pcOffset,
|
D | stub_builder.h | 623 …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/ |
D | interpreter-inl.h | 328 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 …]
|
D | slow_runtime_stub.h | 110 …static JSTaggedValue GetUnmapedArgs(JSThread *thread, JSTaggedType *sp, uint32_t actualNumArgs, ui…
|
D | slow_runtime_stub.cpp | 756 …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/ |
D | js_function.cpp | 333 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()
|
D | ecma_vm.cpp | 318 JSTaggedValue EcmaVM::FastCallAot(size_t actualNumArgs, JSTaggedType *args, const JSTaggedType *pre… in FastCallAot() argument 325 actualNumArgs, in FastCallAot()
|
D | ecma_vm.h | 384 JSTaggedValue FastCallAot(size_t actualNumArgs, JSTaggedType *args, const JSTaggedType *prevFp);
|
D | ecma_context.h | 282 JSTaggedValue ExecuteAot(size_t actualNumArgs, JSTaggedType *args, const JSTaggedType *prevFp,
|
D | ecma_context.cpp | 226 JSTaggedValue EcmaContext::ExecuteAot(size_t actualNumArgs, JSTaggedType *args, in ExecuteAot() argument 234 actualNumArgs, in ExecuteAot()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs.h | 591 …ine JSTaggedValue RuntimeGetUnmapedArgs(JSThread *thread, JSTaggedType *sp, uint32_t actualNumArgs, 633 static inline JSTaggedValue RuntimeOptGetUnmapedArgs(JSThread *thread, uint32_t actualNumArgs);
|
D | runtime_stubs-inl.h | 1812 …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()
|
D | runtime_stubs.cpp | 1590 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()
|