Home
last modified time | relevance | path

Searched refs:nregs (Results 1 - 16 of 16) sorted by relevance

/arkcompiler/runtime_core/static_core/runtime/tests/
H A Ddebugger_test.cpp68 static Frame *CreateFrame(size_t nregs, Method *method, Frame *prev) in CreateFrame() argument
71 void *mem = aligned_alloc(8, Frame::GetAllocSize(Frame::GetActualSize<IS_DYNAMIC>(nregs), extSz)); in CreateFrame()
72 return new (Frame::FromExt(mem, extSz)) Frame(mem, method, prev, nregs); in CreateFrame()
101 uint32_t nregs; member
109 auto nregs = methodInfo.nregs; in CheckFrame() local
119 EXPECT_EQ(debugFrame.GetVRegNum(), nregs); in CheckFrame()
133 EXPECT_EQ(debugFrame.GetArgument(i), regs[i + nregs].value); in CheckFrame()
134 EXPECT_EQ(debugFrame.GetArgumentKind(i), regs[i + nregs].isRef ? tooling::PtFrame::RegisterKind::REFERENCE in CheckFrame()
144 EXPECT_EQ(debugFrame.GetVRegNum(), nregs); in CheckFrame()
200 auto nregs = codeDataAccessor.GetNumVregs(); TEST_F() local
[all...]
H A Dframe_test.cpp54 Frame *CreateFrame(size_t nregs, Method *method, Frame *prev) in CreateFrame() argument
57 void *mem = aligned_alloc(8, ark::Frame::GetAllocSize(Frame::GetActualSize<IS_DYNAMIC>(nregs), extSz)); in CreateFrame()
58 return new (Frame::FromExt(mem, extSz)) ark::Frame(mem, method, prev, nregs); in CreateFrame()
H A Dmethod_test.cpp116 static Frame *CreateFrame(size_t nregs, Method *method, Frame *prev) in CreateFrame() argument
118 return ark::CreateFrameWithSize(Frame::GetActualSize<IS_DYNAMIC>(nregs), nregs, method, prev); in CreateFrame()
H A Dinterpreter_test.cpp86 auto CreateFrame(uint32_t nregs, Method *method, Frame *prev) in CreateFrame() argument
90 RuntimeInterface::template CreateFrame<false>(nregs, method, prev), frameDeleter); in CreateFrame()
114 Class *klass, uint32_t accessFlags, uint32_t nargs, uint32_t nregs, uint16_t *shorty, in CreateMethod()
129 auto *codeItem = container.CreateItem<panda_file::CodeItem>(nregs, nargs, bytecode); in CreateMethod()
2724 Frame *CreateFrameWithSize(uint32_t size, uint32_t nregs, Method *method, Frame *prev, ManagedThread *current) in CreateFrameWithSize() argument
2728 size_t mirrorOffset = extSz + sizeof(Frame) + sizeof(interpreter::VRegister) * nregs; in CreateFrameWithSize()
2731 for (size_t i = 0; i < nregs; i++) { in CreateFrameWithSize()
2735 return new (Frame::FromExt(frame, extSz)) Frame(frame, method, prev, nregs); in CreateFrameWithSize()
113 CreateMethod( Class *klass, uint32_t accessFlags, uint32_t nargs, uint32_t nregs, uint16_t *shorty, const std::vector<uint8_t> &bytecode) CreateMethod() argument
H A Di2c_bridge_test.cpp137 static Frame *CreateFrame(size_t nregs, Method *method, Frame *prev) in CreateFrame() argument
139 return ark::CreateFrameWithSize(Frame::GetActualSize<IS_DYNAMIC>(nregs), nregs, method, prev); in CreateFrame()
/arkcompiler/runtime_core/static_core/runtime/interpreter/
H A Druntime_interface.h232 static Frame *CreateFrame(uint32_t nregs, Method *method, Frame *prev) in CreateFrame() argument
234 return ark::CreateFrameWithSize(Frame::GetActualSize<IS_DYNAMIC>(nregs), nregs, method, prev); in CreateFrame()
238 static Frame *CreateFrameWithActualArgs(uint32_t nregs, uint32_t numActualArgs, Method *method, Frame *prev) in CreateFrameWithActualArgs() argument
240 return ark::CreateFrameWithActualArgsAndSize(Frame::GetActualSize<IS_DYNAMIC>(nregs), nregs, numActualArgs, in CreateFrameWithActualArgs()
244 ALWAYS_INLINE static Frame *CreateFrameWithActualArgsAndSize(uint32_t size, uint32_t nregs, uint32_t numActualArgs, in CreateFrameWithActualArgsAndSize() argument
247 return ark::CreateFrameWithActualArgsAndSize(size, nregs, numActualArgs, method, prev); in CreateFrameWithActualArgsAndSize()
251 static Frame *CreateNativeFrameWithActualArgs(uint32_t nregs, uint32_t numActualArgs, Method *method, Frame *prev) in CreateNativeFrameWithActualArgs() argument
253 return ark::CreateNativeFrameWithActualArgsAndSize(Frame::GetActualSize<IS_DYNAMIC>(nregs), nreg in CreateNativeFrameWithActualArgs()
[all...]
H A Dframe.h41 // | vregs[nregs-1] : v_ |
47 // | vregs[nregs-1] : v_ |
58 // | vregs[nregs-1] : v_ |
95 ALWAYS_INLINE inline Frame(void *ext, Method *method, Frame *prev, uint32_t nregs) in Frame() argument
98 nregs_(nregs), in Frame()
107 ALWAYS_INLINE inline Frame(void *ext, Method *method, Frame *prev, uint32_t nregs, uint32_t numActualArgs) in Frame() argument
110 nregs_(nregs), in Frame()
341 ALWAYS_INLINE static inline uint32_t GetActualSize(uint32_t nregs) in GetActualSize() argument
345 return nregs; in GetActualSize()
347 return nregs * in GetActualSize()
767 CreateFrame(mem::StackFrameAllocator *stackFrameAllocator, uint32_t nregsSize, Method *method, Frame *prev, uint32_t nregs, uint32_t numActualArgs) CreateFrame() argument
[all...]
H A Dinterpreter-inl.h93 Frame *prev, uint32_t nregs, uint32_t numActualArgs) in CreateFrame()
95 return RuntimeIfaceT::CreateFrameWithActualArgsAndSize(nregsSize, nregs, numActualArgs, method, prev); in CreateFrame()
3290 uint32_t nregs; in CreateAndSetFrame() local
3294 nregs = numVregs + std::max(numDeclaredArgs, numActualArgs); in CreateAndSetFrame()
3299 nregs = numVregs + (INITOBJ ? 3U : 2U); in CreateAndSetFrame()
3302 nregs = numVregs + (INITOBJ ? 5U : 4U); in CreateAndSetFrame()
3304 nregs = numVregs + numDeclaredArgs; in CreateAndSetFrame()
3308 *frame = FrameHelper::template CreateFrame<RuntimeIfaceT>(current, Frame::GetActualSize<IS_DYNAMIC>(nregs), in CreateAndSetFrame()
3309 method, this->GetFrame(), nregs, numActualArgs); in CreateAndSetFrame()
92 CreateFrame([[maybe_unused]] ManagedThread *thread, uint32_t nregsSize, Method *method, Frame *prev, uint32_t nregs, uint32_t numActualArgs) CreateFrame() argument
/arkcompiler/runtime_core/static_core/runtime/entrypoints/
H A Dentrypoints.h26 extern "C" Frame *CreateFrameWithSize(uint32_t size, uint32_t nregs, Method *method, Frame *prev);
28 extern "C" Frame *CreateFrameWithActualArgsAndSize(uint32_t size, uint32_t nregs, uint32_t numActualArgs,
31 extern "C" PANDA_PUBLIC_API Frame *CreateNativeFrameWithActualArgsAndSize(uint32_t size, uint32_t nregs,
H A Dentrypoints.cpp515 extern "C" Frame *CreateFrameWithSize(uint32_t size, uint32_t nregs, Method *method, Frame *prev) in CreateFrameWithSize() argument
526 return new (frame) Frame(Frame::ToExt(frame, extSz), method, prev, nregs); in CreateFrameWithSize()
529 extern "C" Frame *CreateFrameWithActualArgsAndSize(uint32_t size, uint32_t nregs, uint32_t numActualArgs, in CreateFrameWithActualArgsAndSize() argument
539 return new (Frame::FromExt(mem, extSz)) Frame(mem, method, prev, nregs, numActualArgs); in CreateFrameWithActualArgsAndSize()
542 extern "C" Frame *CreateNativeFrameWithActualArgsAndSize(uint32_t size, uint32_t nregs, uint32_t numActualArgs, in CreateNativeFrameWithActualArgsAndSize() argument
551 return new (Frame::FromExt(mem, extSz)) Frame(mem, method, prev, nregs, numActualArgs); in CreateNativeFrameWithActualArgsAndSize()
555 static Frame *CreateFrame(uint32_t nregs, Method *method, Frame *prev) in CreateFrame() argument
557 return CreateFrameWithSize(Frame::GetActualSize<IS_DYNAMIC>(nregs), nregs, method, prev); in CreateFrame()
561 static Frame *CreateFrameWithActualArgs(uint32_t nregs, uint32_ argument
578 auto nregs = method->GetNumArgs() + method->GetNumVregs(); CreateFrameForMethod() local
584 auto nregs = method->GetNumArgs() + method->GetNumVregs(); CreateFrameForMethodDyn() local
591 auto nregs = nargs + method->GetNumVregs(); CreateFrameForMethodWithActualArgs() local
598 auto nregs = nargs + method->GetNumVregs(); CreateFrameForMethodWithActualArgsDyn() local
1156 InitializeFrame(void *mem, Method *method, Frame *prev, size_t nregs) InitializeFrame() argument
[all...]
/arkcompiler/runtime_core/static_core/runtime/include/
H A Dmethod-inl.h75 Frame *prev, uint32_t nregs, uint32_t numActualArgs) in CreateFrame()
77 return interpreter::RuntimeInterface::CreateFrameWithActualArgsAndSize(nregsSize, nregs, numActualArgs, method, in CreateFrame()
129 Frame *prev, uint32_t nregs, uint32_t numActualArgs) in CreateFrame()
131 return interpreter::RuntimeInterface::CreateFrameWithActualArgsAndSize(nregsSize, nregs, numActualArgs, method, in CreateFrame()
282 coretypes::TaggedValue *acc, uint32_t nregs, in InvokeContext()
285 return InvokeContext<InvokeHelperDynamic>(thread, pc, acc, nregs, regs); in InvokeContext()
290 coretypes::TaggedValue *acc, uint32_t nregs, in InvokeContext()
310 interpreter::RuntimeInterface::CreateFrameWithActualArgs<true>(nregs, nregs, this, currentFrame), in InvokeContext()
320 Span<TaggedValue> argsSpan(regs, nregs); in InvokeContext()
74 CreateFrame([[maybe_unused]] ManagedThread *thread, uint32_t nregsSize, Method *method, Frame *prev, uint32_t nregs, uint32_t numActualArgs) CreateFrame() argument
128 CreateFrame([[maybe_unused]] ManagedThread *thread, uint32_t nregsSize, Method *method, Frame *prev, uint32_t nregs, uint32_t numActualArgs) CreateFrame() argument
281 InvokeContext(ManagedThread *thread, const uint8_t *pc, coretypes::TaggedValue *acc, uint32_t nregs, coretypes::TaggedValue *regs) InvokeContext() argument
289 InvokeContext(ManagedThread *thread, const uint8_t *pc, coretypes::TaggedValue *acc, uint32_t nregs, coretypes::TaggedValue *regs) InvokeContext() argument
[all...]
H A Dmethod.h271 * nregs - number of registers in context
276 uint32_t nregs, coretypes::TaggedValue *regs);
280 uint32_t nregs, coretypes::TaggedValue *regs);
/arkcompiler/runtime_core/static_core/runtime/tests/interpreter/
H A Dtest_runtime_interface.h400 static Frame *CreateFrame(size_t nregs, Method *method, Frame *prev) in CreateFrame() argument
404 void *mem = allocator->Allocate(ark::Frame::GetAllocSize(ark::Frame::GetActualSize<IS_DYNAMIC>(nregs), extSz), in CreateFrame()
406 return new (Frame::FromExt(mem, extSz)) ark::Frame(mem, method, prev, nregs); in CreateFrame()
409 static Frame *CreateFrameWithActualArgsAndSize(uint32_t size, uint32_t nregs, uint32_t numActualArgs, in CreateFrameWithActualArgsAndSize() argument
419 return new (Frame::FromExt(mem, extSz)) ark::Frame(mem, method, prev, nregs, numActualArgs); in CreateFrameWithActualArgsAndSize()
/arkcompiler/runtime_core/static_core/runtime/tooling/
H A Ddebugger.cpp900 PandaVector<PtFrame::RegisterKind> &vregKinds, size_t nregs, PandaVector<uint64_t> &args, in FillRegisters()
906 vregs.reserve(nregs); in FillRegisters()
907 vregKinds.reserve(nregs); in FillRegisters()
908 for (size_t i = 0; i < nregs; i++) { in FillRegisters()
917 auto argReg = frameHandler.GetVReg(i + nregs); in FillRegisters()
936 size_t nregs = method->GetNumVregs(); in PtDebugFrame() local
939 FillRegisters<DynamicFrameHandler>(interpreterFrame, vregs_, vregKinds_, nregs, args_, argKinds_, nargs, acc_, in PtDebugFrame()
942 FillRegisters<StaticFrameHandler>(interpreterFrame, vregs_, vregKinds_, nregs, args_, argKinds_, nargs, acc_, in PtDebugFrame()
899 FillRegisters(Frame *interpreterFrame, PandaVector<uint64_t> &vregs, PandaVector<PtFrame::RegisterKind> &vregKinds, size_t nregs, PandaVector<uint64_t> &args, PandaVector<PtFrame::RegisterKind> &argKinds, size_t nargs, uint64_t &acc, PtFrame::RegisterKind &accKind) FillRegisters() argument
/arkcompiler/ets_runtime/ecmascript/stubs/
H A Druntime_stubs.cpp3523 uint32_t nregs = frameHandler.GetNumberArgs(); in SaveFrameToContext() local
3524 JSHandle<TaggedArray> regsArray = factory->NewTaggedArray(nregs); in SaveFrameToContext()
3525 for (uint32_t i = 0; i < nregs; i++) { in SaveFrameToContext()
3548 context->SetNRegs(nregs); in SaveFrameToContext()
/arkcompiler/ets_runtime/ecmascript/interpreter/
H A Dinterpreter-inl.cpp811 uint32_t nregs = context->GetNRegs(); in GeneratorReEnterInterpreter() local
812 size_t newFrameSize = InterpretedFrame::NumOfMembers() + nregs; in GeneratorReEnterInterpreter()
819 for (size_t i = 0; i < nregs; i++) { in GeneratorReEnterInterpreter()

Completed in 49 milliseconds