Lines Matching full:frame
53 auto frame = GetFrame<OptimizedJSFunctionFrame>(); in GetFunction() local
54 return frame->GetFunction(); in GetFunction()
58 auto frame = GetFrame<AsmInterpretedFrame>(); in GetFunction() local
59 return frame->function; in GetFunction()
63 auto frame = GetFrame<InterpretedFrame>(); in GetFunction() local
64 return frame->function; in GetFunction()
67 auto frame = GetFrame<InterpretedBuiltinFrame>(); in GetFunction() local
68 return frame->function; in GetFunction()
71 auto *frame = BuiltinWithArgvFrame::GetFrameFromSp(GetSp()); in GetFunction() local
72 return frame->GetFunction(); in GetFunction()
76 auto *frame = BuiltinFrame::GetFrameFromSp(GetSp()); in GetFunction() local
77 return frame->GetFunction(); in GetFunction()
80 auto *frame = OptimizedBuiltinLeaveFrame::GetFrameFromSp(GetSp()); in GetFunction() local
81 return JSTaggedValue(*(frame->GetArgv())); in GetFunction()
85 auto frame = FASTJITFunctionFrame::GetFrameFromSp(GetSp()); in GetFunction() local
86 return frame->GetFunction(); in GetFunction()
103 LOG_FULL(FATAL) << "Unknown frame type: " << static_cast<uintptr_t>(type); in GetFunction()
142 // If need to get return addr from frame, the flag euqal true. in Advance()
149 auto frame = GetFrame<OptimizedFrame>(); in Advance() local
152 optimizedReturnAddr_ = frame->GetReturnAddr(); in Advance()
156 current_ = frame->GetPrevFrameFp(); in Advance()
160 auto frame = GetFrame<OptimizedEntryFrame>(); in Advance() local
165 current_ = frame->GetPrevFrameFp(); in Advance()
169 auto frame = GetFrame<BaselineBuiltinFrame>(); in Advance() local
174 current_ = frame->GetPrevFrameFp(); in Advance()
178 auto frame = GetFrame<AsmBridgeFrame>(); in Advance() local
181 optimizedReturnAddr_ = frame->GetReturnAddr(); in Advance()
185 current_ = frame->GetPrevFrameFp(); in Advance()
189 auto frame = GetFrame<OptimizedJSFunctionUnfoldArgVFrame>(); in Advance() local
191 optimizedCallSiteSp_ = frame->GetPrevFrameSp(); in Advance()
192 optimizedReturnAddr_ = frame->GetReturnAddr(); in Advance()
196 current_ = frame->GetPrevFrameFp(); in Advance()
200 auto frame = GetFrame<OptimizedJSFunctionFrame>(); in Advance() local
203 optimizedReturnAddr_ = frame->GetReturnAddr(); in Advance()
207 current_ = frame->GetPrevFrameFp(); in Advance()
212 auto frame = GetFrame<OptimizedJSFunctionFrame>(); in Advance() local
215 optimizedReturnAddr_ = frame->GetReturnAddr(); in Advance()
219 current_ = frame->GetPrevFrameFp(); in Advance()
223 auto frame = GetFrame<OptimizedLeaveFrame>(); in Advance() local
226 optimizedReturnAddr_ = frame->GetReturnAddr(); in Advance()
230 current_ = frame->GetPrevFrameFp(); in Advance()
234 auto frame = GetFrame<OptimizedWithArgvLeaveFrame>(); in Advance() local
237 optimizedReturnAddr_ = frame->GetReturnAddr(); in Advance()
241 current_ = frame->GetPrevFrameFp(); in Advance()
245 auto frame = GetFrame<OptimizedBuiltinLeaveFrame>(); in Advance() local
248 optimizedReturnAddr_ = frame->GetReturnAddr(); in Advance()
252 current_ = frame->GetPrevFrameFp(); in Advance()
257 auto frame = GetFrame<InterpretedFrame>(); in Advance() local
262 current_ = frame->GetPrevFrameFp(); in Advance()
266 auto frame = GetFrame<InterpretedBuiltinFrame>(); in Advance() local
271 current_ = frame->GetPrevFrameFp(); in Advance()
276 auto frame = GetFrame<AsmInterpretedFrame>(); in Advance() local
281 current_ = frame->GetPrevFrameFp(); in Advance()
285 auto frame = GetFrame<BuiltinFrame>(); in Advance() local
288 optimizedReturnAddr_ = frame->GetReturnAddr(); in Advance()
292 current_ = frame->GetPrevFrameFp(); in Advance()
296 auto frame = GetFrame<BuiltinFrame>(); in Advance() local
299 optimizedReturnAddr_ = frame->GetReturnAddr(); in Advance()
303 current_ = frame->GetPrevFrameFp(); in Advance()
307 auto frame = GetFrame<BuiltinWithArgvFrame>(); in Advance() local
310 optimizedReturnAddr_ = frame->GetReturnAddr(); in Advance()
314 current_ = frame->GetPrevFrameFp(); in Advance()
318 auto frame = GetFrame<BuiltinWithArgvFrame>(); in Advance() local
321 optimizedReturnAddr_ = frame->GetReturnAddr(); in Advance()
325 current_ = frame->GetPrevFrameFp(); in Advance()
329 auto frame = GetFrame<InterpretedEntryFrame>(); in Advance() local
334 current_ = frame->GetPrevFrameFp(); in Advance()
338 auto frame = GetFrame<AsmInterpretedEntryFrame>(); in Advance() local
343 current_ = frame->GetPrevFrameFp(); in Advance()
347 auto frame = GetFrame<AsmInterpretedBridgeFrame>(); in Advance() local
350 optimizedReturnAddr_ = frame->GetReturnAddr(); in Advance()
354 current_ = frame->GetPrevFrameFp(); in Advance()
359 auto frame = GetFrame<FASTJITFunctionFrame>(); in Advance() local
362 optimizedReturnAddr_ = frame->GetReturnAddr(); in Advance()
366 current_ = frame->GetPrevFrameFp(); in Advance()
410 auto frame = GetFrame<OptimizedFrame>(); in GetReturnAddrAddress() local
411 return const_cast<uintptr_t *>(frame->GetReturnAddrAddress()); in GetReturnAddrAddress()
414 auto frame = GetFrame<BaselineBuiltinFrame>(); in GetReturnAddrAddress() local
415 return const_cast<uintptr_t *>(frame->GetReturnAddrAddress()); in GetReturnAddrAddress()
418 auto frame = GetFrame<AsmBridgeFrame>(); in GetReturnAddrAddress() local
419 return const_cast<uintptr_t *>(frame->GetReturnAddrAddress()); in GetReturnAddrAddress()
422 auto frame = GetFrame<OptimizedJSFunctionUnfoldArgVFrame>(); in GetReturnAddrAddress() local
423 return const_cast<uintptr_t *>(frame->GetReturnAddrAddress()); in GetReturnAddrAddress()
428 auto frame = GetFrame<OptimizedJSFunctionFrame>(); in GetReturnAddrAddress() local
429 return const_cast<uintptr_t *>(frame->GetReturnAddrAddress()); in GetReturnAddrAddress()
432 auto frame = GetFrame<OptimizedLeaveFrame>(); in GetReturnAddrAddress() local
433 return const_cast<uintptr_t *>(frame->GetReturnAddrAddress()); in GetReturnAddrAddress()
436 auto frame = GetFrame<OptimizedWithArgvLeaveFrame>(); in GetReturnAddrAddress() local
437 return const_cast<uintptr_t *>(frame->GetReturnAddrAddress()); in GetReturnAddrAddress()
440 auto frame = GetFrame<OptimizedBuiltinLeaveFrame>(); in GetReturnAddrAddress() local
441 return const_cast<uintptr_t *>(frame->GetReturnAddrAddress()); in GetReturnAddrAddress()
445 auto frame = GetFrame<BuiltinFrame>(); in GetReturnAddrAddress() local
446 return const_cast<uintptr_t *>(frame->GetReturnAddrAddress()); in GetReturnAddrAddress()
450 auto frame = GetFrame<BuiltinWithArgvFrame>(); in GetReturnAddrAddress() local
451 return const_cast<uintptr_t *>(frame->GetReturnAddrAddress()); in GetReturnAddrAddress()
454 auto frame = GetFrame<AsmInterpretedBridgeFrame>(); in GetReturnAddrAddress() local
455 return const_cast<uintptr_t *>(frame->GetReturnAddrAddress()); in GetReturnAddrAddress()
471 auto frame = GetFrame<OptimizedLeaveFrame>(); in GetPrevFrameCallSiteSp() local
472 return frame->GetCallSiteSp(); in GetPrevFrameCallSiteSp()
475 auto frame = GetFrame<OptimizedWithArgvLeaveFrame>(); in GetPrevFrameCallSiteSp() local
476 return frame->GetCallSiteSp(); in GetPrevFrameCallSiteSp()
479 auto frame = GetFrame<OptimizedBuiltinLeaveFrame>(); in GetPrevFrameCallSiteSp() local
480 return frame->GetCallSiteSp(); in GetPrevFrameCallSiteSp()
483 auto frame = GetFrame<BuiltinWithArgvFrame>(); in GetPrevFrameCallSiteSp() local
484 return frame->GetCallSiteSp(); in GetPrevFrameCallSiteSp()
487 auto frame = GetFrame<BuiltinWithArgvFrame>(); in GetPrevFrameCallSiteSp() local
488 return frame->GetCallSiteSp(); in GetPrevFrameCallSiteSp()
491 auto frame = GetFrame<BuiltinFrame>(); in GetPrevFrameCallSiteSp() local
492 return frame->GetCallSiteSp(); in GetPrevFrameCallSiteSp()
495 auto frame = GetFrame<AsmInterpretedBridgeFrame>(); in GetPrevFrameCallSiteSp() local
496 return frame->GetCallSiteSp(); in GetPrevFrameCallSiteSp()
516 auto frame = GetFrame<AsmBridgeFrame>(); in GetPrevFrameCallSiteSp() local
517 return frame->GetCallSiteSp(); in GetPrevFrameCallSiteSp()
520 auto frame = GetFrame<OptimizedJSFunctionUnfoldArgVFrame>(); in GetPrevFrameCallSiteSp() local
521 return frame->GetPrevFrameSp(); in GetPrevFrameCallSiteSp()
539 LOG_FULL(FATAL) << "Unknown frame type: " << static_cast<uintptr_t>(type); in GetPrevFrameCallSiteSp()
551 auto *frame = this->GetFrame<AsmInterpretedFrame>(); in GetBytecodeOffset() local
552 … Method *method = ECMAObject::Cast(frame->function.GetTaggedObject())->GetCallTarget(thread_); in GetBytecodeOffset()
553 auto offset = frame->GetPc() - method->GetBytecodeArray(); in GetBytecodeOffset()
558 auto *frame = this->GetFrame<InterpretedFrame>(); in GetBytecodeOffset() local
559 … Method *method = ECMAObject::Cast(frame->function.GetTaggedObject())->GetCallTarget(thread_); in GetBytecodeOffset()
560 auto offset = frame->GetPc() - method->GetBytecodeArray(); in GetBytecodeOffset()
585 auto *frame = this->GetFrame<AsmInterpretedFrame>(); in GetStackTraceInfos() local
590 … Method *method = ECMAObject::Cast(frame->function.GetTaggedObject())->GetCallTarget(thread_); in GetStackTraceInfos()
591 offset = frame->GetPc() - method->GetBytecodeArray(); in GetStackTraceInfos()
593 …stackTraceInfos.push_back(std::make_pair(frame->function.GetRawData(), static_cast<uint32_t>(offse… in GetStackTraceInfos()
598 auto *frame = this->GetFrame<InterpretedFrame>(); in GetStackTraceInfos() local
599 … Method *method = ECMAObject::Cast(frame->function.GetTaggedObject())->GetCallTarget(thread_); in GetStackTraceInfos()
600 auto offset = frame->GetPc() - method->GetBytecodeArray(); in GetStackTraceInfos()
601 …stackTraceInfos.push_back(std::make_pair(frame->function.GetRawData(), static_cast<uint32_t>(offse… in GetStackTraceInfos()
651 LOG_FULL(FATAL) << "Unknown frame type: " << static_cast<uintptr_t>(type); in GetPrevFrame()
713 OptimizedJSFunctionFrame *frame = OptimizedJSFunctionFrame::GetFrameFromSp(it.GetSp()); in GCIterate() local
714 uintptr_t *jsFuncPtr = reinterpret_cast<uintptr_t *>(frame); in GCIterate()
718 uintptr_t *preFrameSp = frame->ComputePrevFrameSp(it); in GCIterate()
719 auto argc = frame->GetArgc(preFrameSp); in GCIterate()
720 JSTaggedType *argv = frame->GetArgv(reinterpret_cast<uintptr_t *>(preFrameSp)); in GCIterate()
770 FASTJITFunctionFrame *frame = FASTJITFunctionFrame::GetFrameFromSp(it.GetSp()); in GCIterate() local
774 uintptr_t *preFrameSp = frame->ComputePrevFrameSp(it); in GCIterate()
775 auto argc = frame->GetArgc(preFrameSp); in GCIterate()
776 JSTaggedType *argv = frame->GetArgv(reinterpret_cast<uintptr_t *>(preFrameSp)); in GCIterate()
811 AsmInterpretedFrame *frame = AsmInterpretedFrame::GetFrameFromSp(it.GetSp()); in GCIterate() local
813 uintptr_t end = ToUintPtr(frame->GetCurrentFramePointer()); in GCIterate()
815 visitor.VisitRoot(Root::ROOT_FRAME, ObjectSlot(ToUintPtr(&frame->function))); in GCIterate()
816 visitor.VisitRoot(Root::ROOT_FRAME, ObjectSlot(ToUintPtr(&frame->thisObj))); in GCIterate()
817 if (frame->pc != nullptr || isBaselineFrame) { in GCIterate()
818 visitor.VisitRoot(Root::ROOT_FRAME, ObjectSlot(ToUintPtr(&frame->acc))); in GCIterate()
819 visitor.VisitRoot(Root::ROOT_FRAME, ObjectSlot(ToUintPtr(&frame->env))); in GCIterate()
836 InterpretedFrame *frame = InterpretedFrame::GetFrameFromSp(sp); in GCIterate() local
837 if (frame->function.IsHole()) { in GCIterate()
841 JSTaggedType *prevSp = frame->GetPrevFrameFp(); in GCIterate()
848 visitor.VisitRoot(Root::ROOT_FRAME, ObjectSlot(ToUintPtr(&frame->function))); in GCIterate()
849 visitor.VisitRoot(Root::ROOT_FRAME, ObjectSlot(ToUintPtr(&frame->thisObj))); in GCIterate()
852 if (frame->pc != nullptr) { in GCIterate()
853 visitor.VisitRoot(Root::ROOT_FRAME, ObjectSlot(ToUintPtr(&frame->acc))); in GCIterate()
854 visitor.VisitRoot(Root::ROOT_FRAME, ObjectSlot(ToUintPtr(&frame->constpool))); in GCIterate()
855 visitor.VisitRoot(Root::ROOT_FRAME, ObjectSlot(ToUintPtr(&frame->env))); in GCIterate()
856 visitor.VisitRoot(Root::ROOT_FRAME, ObjectSlot(ToUintPtr(&frame->profileTypeInfo))); in GCIterate()
863 InterpretedBuiltinFrame *frame = InterpretedBuiltinFrame::GetFrameFromSp(sp); in GCIterate() local
864 JSTaggedType *prevSp = frame->GetPrevFrameFp(); in GCIterate()
871 visitor.VisitRoot(Root::ROOT_FRAME, ObjectSlot(ToUintPtr(&frame->function))); in GCIterate()
877 OptimizedLeaveFrame *frame = OptimizedLeaveFrame::GetFrameFromSp(sp); in GCIterate() local
878 if (frame->argc > 0) { in GCIterate()
879 JSTaggedType *argv = reinterpret_cast<JSTaggedType *>(&frame->argc + 1); in GCIterate()
881 uintptr_t end = ToUintPtr(argv + frame->argc); in GCIterate()
889 OptimizedWithArgvLeaveFrame *frame = OptimizedWithArgvLeaveFrame::GetFrameFromSp(sp); in GCIterate() local
890 if (frame->argc > 0) { in GCIterate()
891 uintptr_t* argvPtr = reinterpret_cast<uintptr_t *>(&frame->argc + 1); in GCIterate()
894 uintptr_t end = ToUintPtr(argv + frame->argc); in GCIterate()
902 OptimizedBuiltinLeaveFrame *frame = OptimizedBuiltinLeaveFrame::GetFrameFromSp(sp); in GCIterate() local
903 if (frame->argc > 0) { in GCIterate()
904 JSTaggedType *argv = reinterpret_cast<JSTaggedType *>(&frame->argc + 1); in GCIterate()
906 uintptr_t end = ToUintPtr(argv + frame->argc); in GCIterate()
914 auto frame = BuiltinWithArgvFrame::GetFrameFromSp(sp); in GCIterate() local
915 auto argc = static_cast<uint32_t>(frame->GetNumArgs()) + NUM_MANDATORY_JSFUNC_ARGS; in GCIterate()
916 JSTaggedType *argv = reinterpret_cast<JSTaggedType *>(frame->GetStackArgsAddress()); in GCIterate()
926 auto frame = BuiltinFrame::GetFrameFromSp(sp); in GCIterate() local
927 // no need to visit stack map for entry frame in GCIterate()
930 visitor.VisitRoot(Root::ROOT_FRAME, ObjectSlot(frame->GetStackArgsAddress())); in GCIterate()
933 JSTaggedType *argv = reinterpret_cast<JSTaggedType *>(frame->GetStackArgsAddress()); in GCIterate()
934 auto argc = frame->GetNumArgs(); in GCIterate()
943 InterpretedEntryFrame *frame = InterpretedEntryFrame::GetFrameFromSp(sp); in GCIterate() local
944 JSTaggedType *prevSp = frame->GetPrevFrameFp(); in GCIterate()