Lines Matching defs:bcOffset

109 void JSDebugger::BytecodePcChanged(JSThread *thread, JSHandle<Method> method, uint32_t bcOffset)
111 ASSERT(bcOffset < method->GetCodeSize() && "code size of current Method less then bcOffset");
112 HandleExceptionThrowEvent(thread, method, bcOffset);
116 if (!HandleBreakpoint(method, bcOffset)) {
118 HandleStep(method, bcOffset);
121 if (!HandleStep(method, bcOffset)) {
122 HandleBreakpoint(method, bcOffset);
136 bool JSDebugger::HandleBreakpoint(JSHandle<Method> method, uint32_t bcOffset)
142 auto smartBreakpoint = FindSmartBreakpoint(method, bcOffset);
144 JSPtLocation smartLocation {method->GetJSPandaFile(), method->GetMethodId(), bcOffset,
147 RemoveSmartBreakpoint(ptMethod, bcOffset);
152 auto breakpoint = FindBreakpoint(method, bcOffset);
156 JSPtLocation location {method->GetJSPandaFile(), method->GetMethodId(), bcOffset,
163 bool JSDebugger::HandleDebuggerStmt(JSHandle<Method> method, uint32_t bcOffset)
173 auto breakpointAtDebugger = FindBreakpoint(method, bcOffset);
179 JSPtLocation location {method->GetJSPandaFile(), method->GetMethodId(), bcOffset};
185 void JSDebugger::HandleExceptionThrowEvent(const JSThread *thread, JSHandle<Method> method, uint32_t bcOffset)
191 JSPtLocation throwLocation {method->GetJSPandaFile(), method->GetMethodId(), bcOffset};
196 bool JSDebugger::HandleStep(JSHandle<Method> method, uint32_t bcOffset)
202 JSPtLocation location {method->GetJSPandaFile(), method->GetMethodId(), bcOffset};
207 std::optional<JSBreakpoint> JSDebugger::FindBreakpoint(JSHandle<Method> method, uint32_t bcOffset) const
210 if ((bp.GetBytecodeOffset() == bcOffset) &&
219 std::optional<JSBreakpoint> JSDebugger::FindSmartBreakpoint(JSHandle<Method> method, uint32_t bcOffset) const
222 if ((bp.GetBytecodeOffset() == bcOffset) &&
231 bool JSDebugger::RemoveBreakpoint(const std::unique_ptr<PtMethod> &ptMethod, uint32_t bcOffset)
235 if ((bp.GetBytecodeOffset() == bcOffset) &&
246 bool JSDebugger::RemoveSmartBreakpoint(const std::unique_ptr<PtMethod> &ptMethod, uint32_t bcOffset)
250 if ((bp.GetBytecodeOffset() == bcOffset) &&