• Home
  • Raw
  • Download

Lines Matching full:method

30     JSMethod *method = FindMethod(location);  in SetBreakpoint()  local
31 if (method == nullptr) { in SetBreakpoint()
36 if (location.GetBytecodeOffset() >= method->GetCodeSize()) { in SetBreakpoint()
41 auto [_, success] = breakpoints_.emplace(method, location.GetBytecodeOffset(), in SetBreakpoint()
53 JSMethod *method = FindMethod(location); in RemoveBreakpoint() local
54 if (method == nullptr) { in RemoveBreakpoint()
59 if (!RemoveBreakpoint(method, location.GetBytecodeOffset())) { in RemoveBreakpoint()
67 void JSDebugger::BytecodePcChanged(JSThread *thread, JSMethod *method, uint32_t bcOffset) in BytecodePcChanged() argument
69 ASSERT(bcOffset < method->GetCodeSize() && "code size of current JSMethod less then bcOffset"); in BytecodePcChanged()
71 HandleExceptionThrowEvent(thread, method, bcOffset); in BytecodePcChanged()
74 if (!HandleStep(method, bcOffset)) { in BytecodePcChanged()
75 HandleBreakpoint(method, bcOffset); in BytecodePcChanged()
79 bool JSDebugger::HandleBreakpoint(const JSMethod *method, uint32_t bcOffset) in HandleBreakpoint() argument
81 auto breakpoint = FindBreakpoint(method, bcOffset); in HandleBreakpoint()
105 auto *pf = method->GetJSPandaFile(); in HandleBreakpoint()
106 JSPtLocation location {pf->GetJSPandaFileDesc().c_str(), method->GetMethodId(), bcOffset}; in HandleBreakpoint()
112 void JSDebugger::HandleExceptionThrowEvent(const JSThread *thread, const JSMethod *method, uint32_t… in HandleExceptionThrowEvent() argument
118 auto *pf = method->GetJSPandaFile(); in HandleExceptionThrowEvent()
119 JSPtLocation throwLocation {pf->GetJSPandaFileDesc().c_str(), method->GetMethodId(), bcOffset}; in HandleExceptionThrowEvent()
124 bool JSDebugger::HandleStep(const JSMethod *method, uint32_t bcOffset) in HandleStep() argument
130 auto *pf = method->GetJSPandaFile(); in HandleStep()
131 JSPtLocation location {pf->GetJSPandaFileDesc().c_str(), method->GetMethodId(), bcOffset}; in HandleStep()
136 std::optional<JSBreakpoint> JSDebugger::FindBreakpoint(const JSMethod *method, uint32_t bcOffset) c… in FindBreakpoint() argument
140 …bp.GetMethod()->GetJSPandaFile()->GetJSPandaFileDesc() == method->GetJSPandaFile()->GetJSPandaFile… in FindBreakpoint()
141 bp.GetMethod()->GetMethodId() == method->GetMethodId()) { in FindBreakpoint()
148 bool JSDebugger::RemoveBreakpoint(const JSMethod *method, uint32_t bcOffset) in RemoveBreakpoint() argument
152 if (bp.GetBytecodeOffset() == bcOffset && bp.GetMethod() == method) { in RemoveBreakpoint()
163 JSMethod *method = nullptr; in FindMethod() local
164 … ::panda::ecmascript::JSPandaFileManager::GetInstance()->EnumerateJSPandaFiles([&method, location]( in FindMethod()
171 method = methodsData + i; in FindMethod()
178 return method; in FindMethod()