Lines Matching defs:ptMethod
26 std::unique_ptr<PtMethod> ptMethod = FindMethod(location);
27 if (ptMethod == nullptr) {
32 if (location.GetBytecodeOffset() >= ptMethod->GetCodeSize()) {
37 auto [_, success] = breakpoints_.emplace(location.GetSourceFile(), ptMethod.release(),
50 std::unique_ptr<PtMethod> ptMethod = FindMethod(location);
51 if (ptMethod == nullptr) {
56 if (location.GetBytecodeOffset() >= ptMethod->GetCodeSize()) {
61 auto [_, success] = smartBreakpoints_.emplace(location.GetSourceFile(), ptMethod.release(),
74 std::unique_ptr<PtMethod> ptMethod = FindMethod(location);
75 if (ptMethod == nullptr) {
80 if (!RemoveBreakpoint(ptMethod, location.GetBytecodeOffset())) {
146 std::unique_ptr<PtMethod> ptMethod = FindMethod(smartLocation);
147 RemoveSmartBreakpoint(ptMethod, bcOffset);
231 bool JSDebugger::RemoveBreakpoint(const std::unique_ptr<PtMethod> &ptMethod, uint32_t bcOffset)
236 (bp.GetPtMethod()->GetJSPandaFile() == ptMethod->GetJSPandaFile()) &&
237 (bp.GetPtMethod()->GetMethodId() == ptMethod->GetMethodId())) {
246 bool JSDebugger::RemoveSmartBreakpoint(const std::unique_ptr<PtMethod> &ptMethod, uint32_t bcOffset)
251 (bp.GetPtMethod()->GetJSPandaFile() == ptMethod->GetJSPandaFile()) &&
252 (bp.GetPtMethod()->GetMethodId() == ptMethod->GetMethodId())) {
263 std::unique_ptr<PtMethod> ptMethod {nullptr};
264 ::panda::ecmascript::JSPandaFileManager::GetInstance()->EnumerateJSPandaFiles([&ptMethod, location](
272 ptMethod = std::make_unique<PtMethod>(file.get(),
280 return ptMethod;