/arkcompiler/runtime_core/static_core/runtime/entrypoints/ |
H A D | entrypoints.h | 24 class Frame; 26 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, 29 Method *method, Frame *prev); 31 extern "C" PANDA_PUBLIC_API Frame *CreateNativeFrameWithActualArgsAndSize(uint32_t size, uint32_t nregs, 33 Frame *prev); 35 extern "C" Frame *CreateFrameForMethod(Method *method, Frame *prev); 37 extern "C" Frame *CreateFrameForMethodDy [all...] |
H A D | entrypoints.cpp | 93 extern "C" NO_ADDRESS_SANITIZE void InterpreterEntryPoint(Method *method, Frame *frame) in InterpreterEntryPoint() 112 Frame *prevFrame = thread->GetCurrentFrame(); in InterpreterEntryPoint() 515 extern "C" Frame *CreateFrameWithSize(uint32_t size, uint32_t nregs, Method *method, Frame *prev) in CreateFrameWithSize() 521 size_t allocSz = Frame::GetAllocSize(size, extSz); in CreateFrameWithSize() 522 Frame *frame = Thread::GetCurrent()->GetVM()->GetHeapManager()->AllocateExtFrame(allocSz, extSz); in CreateFrameWithSize() 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() 530 Method *method, Frame *pre in CreateFrameWithActualArgsAndSize() [all...] |
/arkcompiler/runtime_core/static_core/runtime/interpreter/ |
H A D | frame.h | 31 // ========== Compatible Frame Layout ========== 33 // Frame layout - Static Languages 35 // | ark::Frame | 50 // Frame layout - Dynamic Languages 52 // | ark::Frame | 72 class Frame { class 95 ALWAYS_INLINE inline Frame(void *ext, Method *method, Frame *prev, uint32_t nregs) in Frame() function in ark::Frame 107 ALWAYS_INLINE inline Frame(void *ext, Method *method, Frame *pre in Frame() function in ark::Frame [all...] |
H A D | state.h | 32 ALWAYS_INLINE inline explicit StateIface(Frame *frame) : acc_(frame->GetAcc()) {} in StateIface() 44 ALWAYS_INLINE inline Frame *GetFrame() const in GetFrame() 49 ALWAYS_INLINE inline void SetFrame(Frame *frame) in SetFrame() 92 ALWAYS_INLINE inline State(ManagedThread *thread, const uint8_t *pc, Frame *frame, const void *const *dispatchTable) in State() 101 ALWAYS_INLINE inline void UpdateState(const uint8_t *pc, Frame *frame) in UpdateState() 117 ALWAYS_INLINE inline Frame *GetFrame() const in GetFrame() 122 ALWAYS_INLINE inline void SetFrame(Frame *frame) in SetFrame() 126 reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(frame) + Frame::GetVregsOffset() + frame->GetSize())); in SetFrame() 179 ALWAYS_INLINE inline State(ManagedThread *thread, const uint8_t *pc, Frame *frame, const void *const *dispatchTable) in State() 188 ALWAYS_INLINE inline void UpdateState(const uint8_t *pc, Frame *fram [all...] |
H A D | runtime_interface.h | 138 static void SetCurrentFrame(ManagedThread *thread, Frame *frame) in SetCurrentFrame() 232 static Frame *CreateFrame(uint32_t nregs, Method *method, Frame *prev) in CreateFrame() 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() 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() 245 Method *method, Frame *prev) in CreateFrameWithActualArgsAndSize() 251 static Frame *CreateNativeFrameWithActualArg [all...] |
H A D | instruction_handler_state.h | 27 ALWAYS_INLINE InstructionHandlerState(ManagedThread *thread, const uint8_t *pc, Frame *frame, in InstructionHandlerState() 33 ALWAYS_INLINE void UpdateInstructionHandlerState(const uint8_t *pc, Frame *frame) in UpdateInstructionHandlerState() 53 ALWAYS_INLINE Frame *GetFrame() const in GetFrame() 58 ALWAYS_INLINE void SetFrame(Frame *frame) in SetFrame()
|
H A D | interpreter.cpp | 27 void Execute(ManagedThread *thread, const uint8_t *pc, Frame *frame, bool jumpToEh) in Execute() 36 ALWAYS_INLINE inline const uint8_t *Frame::GetInstrOffset() in GetInstrOffset()
|
H A D | vregister_iterator.h | 24 explicit VRegisterIterator(BytecodeInstruction insn, Frame *frame) : instn_(std::move(insn)), frame_(frame) {} in VRegisterIterator() 72 Frame *frame_; 79 explicit DimIterator(BytecodeInstruction insn, Frame *frame) : VRegisterIterator<FORMAT>(std::move(insn), frame) {} in DimIterator()
|
H A D | instruction_handler_base.h | 35 ALWAYS_INLINE inline explicit StaticFrameHandlerT(Frame *frame) : StaticFrameHandler(frame) {} in StaticFrameHandlerT() 51 ALWAYS_INLINE inline explicit DynamicFrameHandlerT(Frame *frame) : DynamicFrameHandler(frame) {} in DynamicFrameHandlerT() 121 // Should set ACC to Frame, so that ACC will be marked when GC in InstrumentInstruction() 188 ALWAYS_INLINE typename std::enable_if<IS_DYNAMIC_T, DynamicFrameHandler>::type GetFrameHandler(Frame *frame) in GetFrameHandler() 194 ALWAYS_INLINE typename std::enable_if<!IS_DYNAMIC_T, StaticFrameHandler>::type GetFrameHandler(Frame *frame) in GetFrameHandler() 199 ALWAYS_INLINE Frame *GetFrame() const in GetFrame() 204 ALWAYS_INLINE void SetFrame(Frame *frame) in SetFrame()
|
/arkcompiler/runtime_core/static_core/runtime/bridge/ |
H A D | bridge.h | 25 class Frame; 28 extern "C" void InterpreterToCompiledCodeBridge(const uint8_t *, const Frame *, const Method *, ManagedThread *); 29 extern "C" void InterpreterToCompiledCodeBridgeDyn(const uint8_t *, const Frame *, const Method *, ManagedThread *); 30 extern "C" uint64_t InvokeCompiledCodeWithArgArray(const int64_t *, const Frame *, const Method *, ManagedThread *); 31 extern "C" uint64_t InvokeCompiledCodeWithArgArrayDyn(const uint64_t *, uint32_t, const Frame *, const Method *, 34 extern "C" int64_t InvokeInterpreter(ManagedThread *thread, const uint8_t *pc, Frame *frame, Frame *lastFrame);
|
/arkcompiler/runtime_core/static_core/runtime/interpreter/arch/aarch64/ |
H A D | global_regs.h | 21 class Frame; 71 ALWAYS_INLINE inline Frame *GetFrame() in GetFrame() 73 return reinterpret_cast<Frame *>(reinterpret_cast<uintptr_t>(g_fp) - Frame::GetVregsOffset()); in GetFrame() 76 ALWAYS_INLINE inline void SetFrame(Frame *frame) in SetFrame() 78 g_fp = reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(frame) + Frame::GetVregsOffset()); in SetFrame()
|
/arkcompiler/runtime_core/static_core/runtime/include/ |
H A D | stack_walker.h | 37 using FrameVariant = std::variant<Frame *, CFrame>; 63 Frame *GetIFrame() in GetIFrame() 65 return std::get<Frame *>(frame_); in GetIFrame() 68 const Frame *GetIFrame() const in GetIFrame() 70 return std::get<Frame *>(frame_); in GetIFrame() 84 using FrameVariant = std::variant<Frame *, CFrame>; 176 Frame *GetIFrame() in GetIFrame() 178 return std::get<Frame *>(frame_); in GetIFrame() 181 const Frame *GetIFrame() const in GetIFrame() 183 return std::get<Frame *>(frame in GetIFrame() [all...] |
H A D | method-inl.h | 40 inline void FrameDeleter::operator()(Frame *frame) const in operator ()() 55 ALWAYS_INLINE inline static void InitActualArgs(Frame *frame, Span<Value> argsSpan, uint32_t numVregs, in InitActualArgs() 69 ALWAYS_INLINE inline static void InterpreterExecute(ManagedThread *thread, const uint8_t *pc, Frame *frame) in InterpreterExecute() 74 ALWAYS_INLINE static Frame *CreateFrame([[maybe_unused]] ManagedThread *thread, uint32_t nregsSize, Method *method, in CreateFrame() 75 Frame *prev, uint32_t nregs, uint32_t numActualArgs) in CreateFrame() 92 ALWAYS_INLINE inline static void InitActualArgs(Frame *frame, Span<coretypes::TaggedValue> argsSpan, in InitActualArgs() 108 ALWAYS_INLINE inline static void InterpreterExecute(ManagedThread *thread, const uint8_t *pc, Frame *frame) in InterpreterExecute() 117 Frame *currentFrame = thread->GetCurrentFrame(); in CompiledCodeExecute() 128 ALWAYS_INLINE static Frame *CreateFrame([[maybe_unused]] ManagedThread *thread, uint32_t nregsSize, Method *method, in CreateFrame() 129 Frame *pre in CreateFrame() [all...] |
H A D | compiler_interface.h | 95 ExecState(const uint8_t *pc, Frame *frame, Method *callee, size_t numArgs, const bool *spFlag) in ExecState() 110 Frame *GetFrame() const in GetFrame() 115 void SetFrame(Frame *frame) in SetFrame() 202 Frame *frame_;
|
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | osr.h | 26 extern "C" void *PrepareOsrEntry(const Frame *iframe, uintptr_t bcOffset, const void *osrCode, void *cframePtr, 31 extern "C" void OsrEntryAfterCFrame(Frame *frame, uintptr_t loopHeadBc, const void *osrCode, size_t frameSize); 32 extern "C" void OsrEntryAfterIFrame(Frame *frame, uintptr_t loopHeadBc, const void *osrCode, size_t frameSize, 34 extern "C" void OsrEntryTopFrame(Frame *frame, uintptr_t loopHeadBc, const void *osrCode, size_t frameSize, 37 extern "C" void SetOsrResult(Frame *frame, uint64_t uval, double fval);
|
H A D | deoptimization.cpp | 44 extern "C" [[noreturn]] void DeoptimizeAfterCFrame(ManagedThread *thread, const uint8_t *pc, Frame *frame, 45 void *cframeFp, Frame *lastFrame, void *calleeRegs); 58 extern "C" [[noreturn]] void DeoptimizeAfterIFrame(ManagedThread *thread, const uint8_t *pc, Frame *frame, 59 void *cframeFp, Frame *lastFrame, void *calleeRegs); 136 Frame *lastIframe, Frame *iframe, CFrame &cframe) in PrevFrameDeopt() 213 Frame *iframe = stack->ConvertToIFrame(&prevFrameKind, &numInlinedMethods); in Deoptimize() 216 Frame *lastIframe = iframe; in Deoptimize()
|
H A D | osr.cpp | 41 void WriteOsrEventError(Frame *frame, FrameKind kind, uintptr_t loopHeadBc) in WriteOsrEventError() 61 static size_t GetStackParamsSize(const Frame *frame); 66 Frame *frame = stack.GetIFrame(); in OsrEntry() 113 static int64_t GetValueFromVregAcc(const Frame *iframe, LanguageContext &ctx, VRegInfo &vreg) in GetValueFromVregAcc() 132 extern "C" void *PrepareOsrEntry(const Frame *iframe, uintptr_t bcOffset, const void *osrCode, void *cframePtr, in PrepareOsrEntry() 185 thread->SetCurrentFrame(reinterpret_cast<Frame *>(cframePtr)); in PrepareOsrEntry() 191 extern "C" void SetOsrResult(Frame *frame, uint64_t uval, double fval) in SetOsrResult() 236 static size_t GetStackParamsSize(const Frame *frame) in GetStackParamsSize()
|
H A D | stack_walker.cpp | 74 return reinterpret_cast<Frame *>(ptr); in GetTopFrameFromFp() 102 StackWalker::CFrameType StackWalker::CreateCFrameForC2IBridge(Frame *frame) in CreateCFrameForC2IBridge() 380 auto prevFrame = reinterpret_cast<Frame *>(GetPrevFromBoundary<FrameKind::COMPILER>(prev)); in NextFromCFrame() 386 frame_ = reinterpret_cast<Frame *>(prevFrame); in NextFromCFrame() 390 auto prevFrame = reinterpret_cast<Frame *>(GetPrevFromBoundary<FrameKind::COMPILER>(prev)); in NextFromCFrame() 429 frame_ = reinterpret_cast<Frame *>(prev); in NextFromIFrame() 446 auto prevFrame = reinterpret_cast<Frame *>(GetPrevFromBoundary<FrameKind::COMPILER>(prev)); in GetNextFrame() 453 auto prevFrame = reinterpret_cast<Frame *>(GetPrevFromBoundary<FrameKind::COMPILER>(prev)); in GetNextFrame() 477 return FrameAccessor(reinterpret_cast<Frame *>(prev)); in GetNextFrame() 509 auto prevFrame = reinterpret_cast<Frame *>(GetPrevFromBoundar in IsCompilerBoundFrame() [all...] |
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | frame_test.cpp | 54 Frame *CreateFrame(size_t nregs, Method *method, Frame *prev) in CreateFrame() 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() 61 void FreeFrame(Frame *f) in FreeFrame() 69 Frame *f = ark::test::CreateFrame(2, nullptr, nullptr); in TEST_F()
|
H A D | debugger_test.cpp | 68 static Frame *CreateFrame(size_t nregs, Method *method, Frame *prev) in CreateFrame() 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() 75 static void FreeFrame(Frame *frame) in FreeFrame() 86 static void SetVRegs(Frame *frame, std::vector<VRegValue> ®s) in SetVRegs() 106 static void CheckFrame(Frame *frame, std::vector<VRegValue> ®s, const MethodInfo &methodInfo) in CheckFrame() 165 TEST_F(DebuggerTest, Frame) in TEST_F() [all...] |
/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/ |
H A D | stack_walker_base.h | 28 using FrameVariant = std::variant<Frame *, CFrame>; 41 Frame *GetIFrame() in GetIFrame() 43 return std::get<Frame *>(frame_); in GetIFrame() 46 const Frame *GetIFrame() const in GetIFrame() 48 return std::get<Frame *>(frame_); in GetIFrame() 150 CFrameType CreateCFrameForC2IBridge(Frame *frame);
|
H A D | stack_walker_base.cpp | 38 return reinterpret_cast<Frame *>(ptr); in GetTopFrameFromFp() 56 StackWalkerBase::CFrameType StackWalkerBase::CreateCFrameForC2IBridge(Frame *frame) in CreateCFrameForC2IBridge() 73 auto prevFrame = reinterpret_cast<Frame *>(GetPrevFromBoundary<FrameKind::COMPILER>(prev)); in NextFromCFrame() 78 frame_ = reinterpret_cast<Frame *>(prevFrame); in NextFromCFrame() 82 auto prevFrame = reinterpret_cast<Frame *>(GetPrevFromBoundary<FrameKind::COMPILER>(prev)); in NextFromCFrame() 111 frame_ = reinterpret_cast<Frame *>(prev); in NextFromIFrame()
|
/arkcompiler/runtime_core/static_core/runtime/arch/ |
H A D | asm_support.cpp | 33 // Frame doesn't have aligned storage, so check its offset manually 54 extern "C" void OsrEntryAfterCFrame([[maybe_unused]] Frame *frame, [[maybe_unused]] uintptr_t loopHeadBc, in OsrEntryAfterCFrame() 59 extern "C" void OsrEntryAfterIFrame([[maybe_unused]] Frame *frame, [[maybe_unused]] uintptr_t loopHeadBc, in OsrEntryAfterIFrame() 64 extern "C" void OsrEntryTopFrame([[maybe_unused]] Frame *frame, [[maybe_unused]] uintptr_t loopHeadBc, in OsrEntryTopFrame()
|
/arkcompiler/runtime_core/static_core/runtime/tests/interpreter/ |
H A D | test_runtime_interface.h | 223 static void SetCurrentFrame([[maybe_unused]] ManagedThread *thread, Frame *frame) in SetCurrentFrame() 400 static Frame *CreateFrame(size_t nregs, Method *method, Frame *prev) in CreateFrame() 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() 410 Method *method, Frame *prev) in CreateFrameWithActualArgsAndSize() 415 allocator->Allocate(ark::Frame in CreateFrameWithActualArgsAndSize() [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ |
H A D | interop_stacks.h | 110 void CreateLocalScope(napi_env env, Frame *frame) in CreateLocalScope() 118 void DestroyTopLocalScope(napi_env env, [[maybe_unused]] Frame *currFrame) in DestroyTopLocalScope() 128 void DestroyLocalScopeForTopFrame(napi_env env, Frame *currFrame) in DestroyLocalScopeForTopFrame() 146 std::vector<std::pair<const Frame *, napi_handle_scope>> localScopesStorage_ {};
|