/arkcompiler/ets_runtime/ecmascript/interpreter/ |
D | frame_handler.cpp | 65 auto frame = it.GetFrame<AsmInterpretedFrame>(); in PrevJSFrame() 84 auto *frame = AsmInterpretedFrame::GetFrameFromSp(sp_); in GetNumberArgs() 91 auto *frame = it.GetFrame<AsmInterpretedFrame>(); in GetNumberArgs() 120 auto *frame = it.GetFrame<AsmInterpretedFrame>(); in GetAcc() 158 auto *frame = it.GetFrame<AsmInterpretedFrame>(); in GetThis() 174 auto frame = AsmInterpretedFrame::GetFrameFromSp(sp_); in GetFunction() 226 auto *frame = it.GetFrame<AsmInterpretedFrame>(); in GetPc() 247 auto *frame = it.GetFrame<AsmInterpretedFrame>(); in GetEnv() 283 auto frame = it.GetFrame<AsmInterpretedFrame>(); in GetInterpretedFrameEnd() 388 auto frame = it.GetFrame<AsmInterpretedFrame>(); in IterateFrameChain()
|
D | interpreter_assembly.h | 53 static JSTaggedType *GetAsmInterpreterFramePointer(AsmInterpretedFrame *state);
|
D | interpreter_assembly.cpp | 71 …AsmInterpretedFrame *frame = GET_ASM_FRAME(sp); … 81 …(reinterpret_cast<AsmInterpretedFrame *>(CurrentSp) - 1) // NOLINT(cppcoreguidelines-pro-bounds-po… 497 AsmInterpretedFrame *state = GET_ASM_FRAME(sp); in HandleReturn() 507 AsmInterpretedFrame *prevState = GET_ASM_FRAME(sp); in HandleReturn() 525 AsmInterpretedFrame *state = GET_ASM_FRAME(sp); in HandleReturnundefined() 535 AsmInterpretedFrame *prevState = GET_ASM_FRAME(sp); in HandleReturnundefined() 1607 AsmInterpretedFrame *state = GET_ASM_FRAME(sp); in HandleLdlexvarImm8Imm8() 1628 AsmInterpretedFrame *state = GET_ASM_FRAME(sp); in HandleLdlexvarImm4Imm4() 1650 AsmInterpretedFrame *state = GET_ASM_FRAME(sp); in HandleWideStlexvarPrefImm16Imm16() 1672 AsmInterpretedFrame *state = GET_ASM_FRAME(sp); in HandleStlexvarImm8Imm8() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | interpreter_stub-inl.h | 198 return PtrSub(CurrentSp, IntPtr(AsmInterpretedFrame::GetSize(GetEnvironment()->IsArch32Bit()))); in GetFrame() 204 IntPtr(AsmInterpretedFrame::GetPcOffset(GetEnvironment()->IsArch32Bit()))); in GetPcFromFrame() 210 IntPtr(AsmInterpretedFrame::GetFunctionOffset(GetEnvironment()->IsArch32Bit()))); in GetFunctionFromFrame() 216 IntPtr(AsmInterpretedFrame::GetThisOffset(GetEnvironment()->IsArch32Bit()))); in GetThisFromFrame() 222 IntPtr(AsmInterpretedFrame::GetCallSizeOffset(GetEnvironment()->IsArch32Bit()))); in GetCallSizeFromFrame() 228 IntPtr(AsmInterpretedFrame::GetAccOffset(GetEnvironment()->IsArch32Bit()))); in GetAccFromFrame() 234 IntPtr(AsmInterpretedFrame::GetEnvOffset(GetEnvironment()->IsArch32Bit()))); in GetEnvFromFrame() 283 IntPtr(AsmInterpretedFrame::GetPcOffset(GetEnvironment()->IsArch32Bit())), value); in SetPcToFrame() 289 IntPtr(AsmInterpretedFrame::GetCallSizeOffset(GetEnvironment()->IsArch32Bit())), value); in SetCallSizeToFrame() 295 IntPtr(AsmInterpretedFrame::GetAccOffset(GetEnvironment()->IsArch32Bit())), value); in SetAccToFrame() [all …]
|
D | stub_builder-inl.h | 269 IntPtr(AsmInterpretedFrame::GetSize(GetEnvironment()->IsArch32Bit()))); in SavePcIfNeeded() 271 IntPtr(AsmInterpretedFrame::GetPcOffset(GetEnvironment()->IsArch32Bit())), pc); in SavePcIfNeeded() 280 IntPtr(AsmInterpretedFrame::GetSize(GetEnvironment()->IsArch32Bit()))); in SaveJumpSizeIfNeeded() 282 … IntPtr(AsmInterpretedFrame::GetCallSizeOffset(GetEnvironment()->IsArch32Bit())), jumpSize); in SaveJumpSizeIfNeeded() 297 GateRef frame = PtrSub(sp, IntPtr(AsmInterpretedFrame::GetSize(env_->IsArch32Bit()))); in SaveHotnessCounterIfNeeded() 299 IntPtr(AsmInterpretedFrame::GetFunctionOffset(env_->IsArch32Bit()))); in SaveHotnessCounterIfNeeded()
|
D | interpreter_stub.cpp | 2337 IntPtr(AsmInterpretedFrame::GetBaseOffset(env->IsArch32Bit()))); in DECLARE_ASM_HANDLER() 2400 IntPtr(AsmInterpretedFrame::GetBaseOffset(env->IsArch32Bit()))); in DECLARE_ASM_HANDLER() 2476 IntPtr(AsmInterpretedFrame::GetBaseOffset(env->IsArch32Bit()))); in DECLARE_ASM_HANDLER() 2550 IntPtr(AsmInterpretedFrame::GetBaseOffset(env->IsArch32Bit()))); in DECLARE_ASM_HANDLER() 2882 IntPtr(AsmInterpretedFrame::GetBaseOffset(env->IsArch32Bit()))); in DECLARE_ASM_HANDLER()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | frames.h | 878 struct AsmInterpretedFrame : public base::AlignedStruct<JSTaggedValue::TaggedTypeSize(), struct 911 static AsmInterpretedFrame* GetFrameFromSp(const JSTaggedType *sp) in GetFrameFromSp() argument 913 return reinterpret_cast<AsmInterpretedFrame *>(const_cast<JSTaggedType *>(sp)) - 1; in GetFrameFromSp() 958 return isArch32 ? AsmInterpretedFrame::SizeArch32 : AsmInterpretedFrame::SizeArch64; in GetSize() argument 963 return sizeof(AsmInterpretedFrame) / JSTaggedValue::TaggedTypeSize(); in NumOfMembers() argument 980 return MEMBER_OFFSET(AsmInterpretedFrame, base) + MEMBER_OFFSET(InterpretedFrameBase, type); in GetTypeOffset() argument 985 return MEMBER_OFFSET(AsmInterpretedFrame, base) + MEMBER_OFFSET(InterpretedFrameBase, prev); in GetPrevOffset() argument 999 STATIC_ASSERT_EQ_ARCH(sizeof(AsmInterpretedFrame), AsmInterpretedFrame::SizeArch32, AsmInterpretedF… argument
|
D | frames.cpp | 67 auto frame = GetFrame<AsmInterpretedFrame>(); in GetFunction() 236 auto frame = GetFrame<AsmInterpretedFrame>(); in Advance() 403 auto *frame = this->GetFrame<AsmInterpretedFrame>(); in GetBytecodeOffset() 554 ARK_INLINE void AsmInterpretedFrame::GCIterate(const FrameIterator &it, in GCIterate() 559 AsmInterpretedFrame *frame = AsmInterpretedFrame::GetFrameFromSp(it.GetSp()); in GCIterate()
|
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/ |
D | js_stackinfo.cpp | 311 typeOffset = AsmInterpretedFrame::GetTypeOffset(); in GetTypeOffsetAndPrevOffsetFromFrameType() 312 prevOffset = AsmInterpretedFrame::GetPrevOffset(); in GetTypeOffsetAndPrevOffsetFromFrameType() 458 …uintptr_t typeOffset = MEMBER_OFFSET(AsmInterpretedFrame, base) + MEMBER_OFFSET(InterpretedFrameBa… in GetArkJSHeapCrashInfo() 459 uintptr_t pcOffset = MEMBER_OFFSET(AsmInterpretedFrame, pc); in GetArkJSHeapCrashInfo() 472 uintptr_t functionOffset = MEMBER_OFFSET(AsmInterpretedFrame, function); in GetArkJSHeapCrashInfo()
|
/arkcompiler/ets_runtime/ecmascript/compiler/trampoline/x64/ |
D | asm_interpreter_call.cpp | 960 __ Subq(AsmInterpretedFrame::GetSize(false), frameStateBaseRegister); in ResumeRspAndDispatch() 967 …__ Movq(Operand(frameStateBaseRegister, AsmInterpretedFrame::GetBaseOffset(false)), spRegister); … in ResumeRspAndDispatch() 975 …__ Movq(Operand(frameStateBaseRegister, AsmInterpretedFrame::GetFpOffset(false)), rsp); // resum… in ResumeRspAndDispatch() 989 …__ Movq(Operand(frameStateBaseRegister, AsmInterpretedFrame::GetBaseOffset(false)), spRegister); … in ResumeRspAndDispatch() 993 __ Movq(Operand(frameStateBaseRegister, AsmInterpretedFrame::GetThisOffset(false)), ret); in ResumeRspAndDispatch() 994 …__ Movq(Operand(frameStateBaseRegister, AsmInterpretedFrame::GetFpOffset(false)), rsp); // resum… in ResumeRspAndDispatch() 1016 …__ Movq(Operand(frameStateBaseRegister, AsmInterpretedFrame::GetBaseOffset(false)), spRegister); … in ResumeRspAndDispatch() 1024 … __ Movq(Operand(frameStateBaseRegister, AsmInterpretedFrame::GetFunctionOffset(false)), temp); in ResumeRspAndDispatch() 1035 … __ Movq(Operand(frameStateBaseRegister, AsmInterpretedFrame::GetBaseOffset(false)), spRegister); in ResumeRspAndDispatch() 1122 intptr_t offset = AsmInterpretedFrame::GetFpOffset(false) - AsmInterpretedFrame::GetSize(false); in ResumeRspAndReturn()
|
D | optimized_call.cpp | 1067 __ Addq(AsmInterpretedFrame::GetSize(false), r8); in DeoptEnterAsmInterp() 1068 __ Leaq(Operand(frameStateBase, AsmInterpretedFrame::GetBaseOffset(false)), r10); in DeoptEnterAsmInterp() 1075 __ Movq(rsp, Operand(frameStateBase, AsmInterpretedFrame::GetFpOffset(false))); in DeoptEnterAsmInterp() 1087 …__ Movq(Operand(frameStateBase, AsmInterpretedFrame::GetFunctionOffset(false)), callTargetRegister… in DeoptEnterAsmInterp() 1088 __ Movq(Operand(frameStateBase, AsmInterpretedFrame::GetPcOffset(false)), r12); in DeoptEnterAsmInterp() 1089 __ Movq(Operand(frameStateBase, AsmInterpretedFrame::GetAccOffset(false)), rsi); in DeoptEnterAsmInterp() 1092 __ Leaq(Operand(rsp, AsmInterpretedFrame::GetSize(false)), opRegister); in DeoptEnterAsmInterp()
|
/arkcompiler/ets_runtime/ecmascript/deoptimizer/ |
D | deoptimizer.cpp | 51 AsmInterpretedFrame *ReserveAsmInterpretedFrame() in ReserveAsmInterpretedFrame() 53 auto frame = AsmInterpretedFrame::GetFrameFromSp(top_); in ReserveAsmInterpretedFrame() 481 AsmInterpretedFrame *statePtr = frameWriter.ReserveAsmInterpretedFrame(); in ConstructAsmInterpretFrame()
|
/arkcompiler/ets_runtime/ecmascript/compiler/trampoline/aarch64/ |
D | asm_interpreter_call.cpp | 658 int64_t fpOffset = static_cast<int64_t>(AsmInterpretedFrame::GetFpOffset(false)) in ResumeRspAndDispatch() 659 - static_cast<int64_t>(AsmInterpretedFrame::GetSize(false)); in ResumeRspAndDispatch() 660 int64_t spOffset = static_cast<int64_t>(AsmInterpretedFrame::GetBaseOffset(false)) in ResumeRspAndDispatch() 661 - static_cast<int64_t>(AsmInterpretedFrame::GetSize(false)); in ResumeRspAndDispatch() 662 int64_t thisOffset = static_cast<int64_t>(AsmInterpretedFrame::GetThisOffset(false)) in ResumeRspAndDispatch() 663 - static_cast<int64_t>(AsmInterpretedFrame::GetSize(false)); in ResumeRspAndDispatch() 724 … int64_t constructorOffset = static_cast<int64_t>(AsmInterpretedFrame::GetFunctionOffset(false)) in ResumeRspAndDispatch() 725 - static_cast<int64_t>(AsmInterpretedFrame::GetSize(false)); in ResumeRspAndDispatch() 758 int64_t offset = static_cast<int64_t>(AsmInterpretedFrame::GetFpOffset(false)) in ResumeRspAndReturn() 759 - static_cast<int64_t>(AsmInterpretedFrame::GetSize(false)); in ResumeRspAndReturn()
|
D | optimized_call.cpp | 1062 __ Add(tmpReg, tmpReg, Immediate(AsmInterpretedFrame::GetSize(false))); in DeoptEnterAsmInterp() 1063 __ Add(Register(X9), frameStateBase, Immediate(AsmInterpretedFrame::GetBaseOffset(false))); in DeoptEnterAsmInterp() 1069 …__ Str(currentSlotRegister, MemoryOperand(frameStateBase, AsmInterpretedFrame::GetFpOffset(false))… in DeoptEnterAsmInterp() 1083 …__ Ldr(callTargetRegister, MemoryOperand(frameStateBase, AsmInterpretedFrame::GetFunctionOffset(fa… in DeoptEnterAsmInterp() 1084 … __ Ldr(Register(X20), MemoryOperand(frameStateBase, AsmInterpretedFrame::GetPcOffset(false))); in DeoptEnterAsmInterp() 1085 … __ Ldr(Register(X23), MemoryOperand(frameStateBase, AsmInterpretedFrame::GetAccOffset(false))); in DeoptEnterAsmInterp() 1088 __ Add(opRegister, currentSlotRegister, Immediate(AsmInterpretedFrame::GetSize(false))); in DeoptEnterAsmInterp()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs.cpp | 84 …(reinterpret_cast<AsmInterpretedFrame *>(CurrentSp) - 1) // NOLINT(cppcoreguidelines-pro-bounds-po…
|