• Home
  • Raw
  • Download

Lines Matching full:method

69Method *method = runtime_->GetClassLinker()->GetMethod(location.GetPandaFile(), location.GetMethod…  in SetBreakpoint()  local
70 if (method == nullptr) { in SetBreakpoint()
72 … std::string("Cannot find method with id ") + std::to_string(location.GetMethodId().GetOffset()) + in SetBreakpoint()
76 if (location.GetBytecodeOffset() >= method->GetCodeSize()) { in SetBreakpoint()
79 ") >= method code size (" + in SetBreakpoint()
80 … std::to_string(method->GetCodeSize()) + ")"); in SetBreakpoint()
83 if (!breakpoints_.emplace(method, location.GetBytecodeOffset()).second) { in SetBreakpoint()
94Method *method = runtime_->GetClassLinker()->GetMethod(location.GetPandaFile(), location.GetMethod… in RemoveBreakpoint() local
95 if (method == nullptr) { in RemoveBreakpoint()
97 … std::string("Cannot find method with id ") + std::to_string(location.GetMethodId().GetOffset()) + in RemoveBreakpoint()
101 if (!RemoveBreakpoint(method, location.GetBytecodeOffset())) { in RemoveBreakpoint()
212 Method *method = stack.GetMethod(); in GetCurrentFrame() local
219 return {std::make_unique<PtDebugFrame>(method, interpreterFrame)}; in GetCurrentFrame()
232 Method *method = stack.GetMethod(); in EnumerateFrames() local
234 PtDebugFrame debug_frame(method, frame); in EnumerateFrames()
272 Method *method = runtime_->GetClassLinker()->GetMethod(pandaFile, methodId); in GetPtMethod() local
273 if (method == nullptr) { in GetPtMethod()
274 …return Unexpected(Error(Error::Type::METHOD_NOT_FOUND, std::string("Cannot find method with id ") + in GetPtMethod()
278 return MethodToPtMethod(method); in GetPtMethod()
301 … ", frame at depth is executing a native method"); in RestartFrame()
352 … ", frame at depth is executing a native method"); in NotifyFramePop()
364 void Debugger::BytecodePcChanged(ManagedThread *thread, Method *method, uint32_t bcOffset) in BytecodePcChanged() argument
366 ASSERT(bcOffset < method->GetCodeSize() && "code size of current method less then bcOffset"); in BytecodePcChanged()
368 HandleExceptionThrowEvent(thread, method, bcOffset); in BytecodePcChanged()
371 HandleStep(thread, method, bcOffset); in BytecodePcChanged()
372 HandleBreakpoint(thread, method, bcOffset); in BytecodePcChanged()
375 if (!HandlePropertyAccess(thread, method, bcOffset)) { in BytecodePcChanged()
376 HandlePropertyModify(thread, method, bcOffset); in BytecodePcChanged()
400 void Debugger::MethodEntry(ManagedThread *managedThread, Method *method) in MethodEntry() argument
405 hooks_.MethodEntry(ptThread, MethodToPtMethod(method)); in MethodEntry()
408 void Debugger::MethodExit(ManagedThread *managedThread, Method *method) in MethodExit() argument
413 hooks_.MethodExit(ptThread, MethodToPtMethod(method), isExceptionTriggered, retValue); in MethodExit()
415 HandleNotifyFramePop(managedThread, method, isExceptionTriggered); in MethodExit()
482 bool Debugger::HandleBreakpoint(const ManagedThread *managedThread, const Method *method, uint32_t … in HandleBreakpoint() argument
484 if (FindBreakpoint(method, bcOffset) == nullptr) { in HandleBreakpoint()
488 auto *pf = method->GetPandaFile(); in HandleBreakpoint()
489 PtLocation location {pf->GetFilename().c_str(), method->GetFileId(), bcOffset}; in HandleBreakpoint()
495 void Debugger::HandleExceptionThrowEvent(ManagedThread *thread, Method *method, uint32_t bcOffset) in HandleExceptionThrowEvent() argument
503 auto *pf = method->GetPandaFile(); in HandleExceptionThrowEvent()
504 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(*method); in HandleExceptionThrowEvent()
505 std::pair<Method *, uint32_t> res = ctx.GetCatchMethodAndOffset(method, thread); in HandleExceptionThrowEvent()
508 PtLocation throwLocation {pf->GetFilename().c_str(), method->GetFileId(), bcOffset}; in HandleExceptionThrowEvent()
519 void Debugger::ExceptionCatch(const ManagedThread *thread, const Method *method, uint32_t bcOffset) in ExceptionCatch() argument
525 auto *pf = method->GetPandaFile(); in ExceptionCatch()
526 PtLocation catchLocation {pf->GetFilename().c_str(), method->GetFileId(), bcOffset}; in ExceptionCatch()
533 bool Debugger::HandleStep(const ManagedThread *managedThread, const Method *method, uint32_t bcOffs… in HandleStep() argument
535 auto *pf = method->GetPandaFile(); in HandleStep()
536 PtLocation location {pf->GetFilename().c_str(), method->GetFileId(), bcOffset}; in HandleStep()
541 void Debugger::HandleNotifyFramePop(ManagedThread *managedThread, Method *method, bool wasPoppedByE… in HandleNotifyFramePop() argument
545 … hooks_.FramePop(PtThread(managedThread->GetId()), MethodToPtMethod(method), wasPoppedByException); in HandleNotifyFramePop()
550 bool Debugger::HandlePropertyAccess(const ManagedThread *thread, const Method *method, uint32_t bcO… in HandlePropertyAccess() argument
553 BytecodeInstruction inst(method->GetInstructions() + bcOffset); in HandlePropertyAccess()
572 auto propertyId = method->GetClass()->ResolveFieldIndex(propertyIndex); in HandlePropertyAccess()
575 auto *field = classLinker->GetField(*method, propertyId); in HandlePropertyAccess()
584 …PtLocation location {method->GetPandaFile()->GetFilename().c_str(), method->GetFileId(), bcOffset}; in HandlePropertyAccess()
601 bool Debugger::HandlePropertyModify(const ManagedThread *thread, const Method *method, uint32_t bcO… in HandlePropertyModify() argument
604 BytecodeInstruction inst(method->GetInstructions() + bcOffset); in HandlePropertyModify()
623 auto propertyId = method->GetClass()->ResolveFieldIndex(propertyIdx); in HandlePropertyModify()
626 auto *field = classLinker->GetField(*method, propertyId); in HandlePropertyModify()
637 …PtLocation location {method->GetPandaFile()->GetFilename().c_str(), method->GetFileId(), bcOffset}; in HandlePropertyModify()
708 const tooling::Breakpoint *Debugger::FindBreakpoint(const Method *method, uint32_t bcOffset) const in FindBreakpoint() argument
711 …if (bp.GetBytecodeOffset() == bcOffset && bp.GetMethod()->GetPandaFile() == method->GetPandaFile()… in FindBreakpoint()
712 bp.GetMethod()->GetFileId() == method->GetFileId()) { in FindBreakpoint()
720 bool Debugger::RemoveBreakpoint(Method *method, uint32_t bcOffset) in RemoveBreakpoint() argument
725 if (bp.GetBytecodeOffset() == bcOffset && bp.GetMethod() == method) { in RemoveBreakpoint()
798 PtDebugFrame::PtDebugFrame(Method *method, const Frame *interpreterFrame) in PtDebugFrame() argument
799 : method_(MethodToPtMethod(method)), in PtDebugFrame()
800 method_id_(method->GetFileId()), in PtDebugFrame()
801 panda_file_(method->GetPandaFile()->GetFilename()) in PtDebugFrame()
808 size_t nregs = method->GetNumVregs(); in PtDebugFrame()
809 size_t nargs = method->GetNumArgs(); in PtDebugFrame()