Lines Matching refs:basket
489 static bool ModsMatch(JdwpEvent* pEvent, const ModBasket& basket) in ModsMatch() argument
506 if (!Dbg::MatchThread(pMod->threadOnly.threadId, basket.thread)) { in ModsMatch()
511 if (!Dbg::MatchType(basket.locationClass.Get(), pMod->classOnly.refTypeId)) { in ModsMatch()
516 if (!PatternMatch(pMod->classMatch.classPattern, basket.className)) { in ModsMatch()
521 if (PatternMatch(pMod->classMatch.classPattern, basket.className)) { in ModsMatch()
526 if (!Dbg::MatchLocation(pMod->locationOnly.loc, *basket.pLoc)) { in ModsMatch()
532 !Dbg::MatchType(basket.exceptionClass.Get(), pMod->exceptionOnly.refTypeId)) { in ModsMatch()
535 if ((basket.caught && !pMod->exceptionOnly.caught) || in ModsMatch()
536 (!basket.caught && !pMod->exceptionOnly.uncaught)) { in ModsMatch()
541 if (!Dbg::MatchField(pMod->fieldOnly.refTypeId, pMod->fieldOnly.fieldId, basket.field)) { in ModsMatch()
546 if (!Dbg::MatchThread(pMod->step.threadId, basket.thread)) { in ModsMatch()
551 if (!Dbg::MatchInstance(pMod->instanceOnly.objectId, basket.thisPtr.Get())) { in ModsMatch()
574 void JdwpState::FindMatchingEventsLocked(JdwpEventKind event_kind, const ModBasket& basket, in FindMatchingEventsLocked() argument
577 if (pEvent->eventKind == event_kind && ModsMatch(pEvent, basket)) { in FindMatchingEventsLocked()
594 bool JdwpState::FindMatchingEvents(JdwpEventKind event_kind, const ModBasket& basket, in FindMatchingEvents() argument
598 FindMatchingEventsLocked(event_kind, basket, match_list); in FindMatchingEvents()
877 ModBasket basket(Thread::Current()); in PostLocationEvent() local
878 basket.pLoc = pLoc; in PostLocationEvent()
879 basket.locationClass.Assign(pLoc->method->GetDeclaringClass()); in PostLocationEvent()
880 basket.thisPtr.Assign(thisPtr); in PostLocationEvent()
881 basket.className = Dbg::GetClassName(basket.locationClass.Get()); in PostLocationEvent()
889 if (basket.thread == GetDebugThread()) { in PostLocationEvent()
904 VLOG(jdwp) << "Not checking breakpoints during invoke (" << basket.className << ")"; in PostLocationEvent()
914 FindMatchingEventsLocked(EK_BREAKPOINT, basket, &match_list); in PostLocationEvent()
917 FindMatchingEventsLocked(EK_SINGLE_STEP, basket, &match_list); in PostLocationEvent()
920 FindMatchingEventsLocked(EK_METHOD_ENTRY, basket, &match_list); in PostLocationEvent()
923 FindMatchingEventsLocked(EK_METHOD_EXIT, basket, &match_list); in PostLocationEvent()
924 FindMatchingEventsLocked(EK_METHOD_EXIT_WITH_RETURN_VALUE, basket, &match_list); in PostLocationEvent()
933 ObjectId thread_id = Dbg::GetThreadId(basket.thread); in PostLocationEvent()
975 ModBasket basket(Thread::Current()); in PostFieldEvent() local
976 basket.pLoc = pLoc; in PostFieldEvent()
977 basket.locationClass.Assign(pLoc->method->GetDeclaringClass()); in PostFieldEvent()
978 basket.thisPtr.Assign(this_object); in PostFieldEvent()
979 basket.className = Dbg::GetClassName(basket.locationClass.Get()); in PostFieldEvent()
980 basket.field = field; in PostFieldEvent()
983 VLOG(jdwp) << "Not posting field event during invoke (" << basket.className << ")"; in PostFieldEvent()
989 if (!FindMatchingEvents(match_kind, basket, &match_list)) { in PostFieldEvent()
995 ObjectId thread_id = Dbg::GetThreadId(basket.thread); in PostFieldEvent()
997 ObjectId instance_id = registry->Add(basket.thisPtr); in PostFieldEvent()
1025 tag = Dbg::TagFromObject(soa, basket.thisPtr.Get()); in PostFieldEvent()
1078 ModBasket basket(thread); in PostThreadChange() local
1082 if (!FindMatchingEvents(match_kind, basket, &match_list)) { in PostThreadChange()
1088 ObjectId thread_id = Dbg::GetThreadId(basket.thread); in PostThreadChange()
1155 ModBasket basket(Thread::Current()); in PostException() local
1156 basket.pLoc = pThrowLoc; in PostException()
1158 basket.locationClass.Assign(pThrowLoc->method->GetDeclaringClass()); in PostException()
1160 basket.className = Dbg::GetClassName(basket.locationClass.Get()); in PostException()
1161 basket.exceptionClass.Assign(exception_object->GetClass()); in PostException()
1162 basket.caught = (pCatchLoc->method != nullptr); in PostException()
1163 basket.thisPtr.Assign(thisPtr); in PostException()
1167 VLOG(jdwp) << "Not posting exception hit during invoke (" << basket.className << ")"; in PostException()
1172 if (!FindMatchingEvents(EK_EXCEPTION, basket, &match_list)) { in PostException()
1178 ObjectId thread_id = Dbg::GetThreadId(basket.thread); in PostException()
1234 ModBasket basket(Thread::Current()); in PostClassPrepare() local
1235 basket.locationClass.Assign(klass); in PostClassPrepare()
1236 basket.className = Dbg::GetClassName(basket.locationClass.Get()); in PostClassPrepare()
1240 VLOG(jdwp) << "Not posting class prep caused by invoke (" << basket.className << ")"; in PostClassPrepare()
1245 if (!FindMatchingEvents(EK_CLASS_PREPARE, basket, &match_list)) { in PostClassPrepare()
1251 ObjectId thread_id = Dbg::GetThreadId(basket.thread); in PostClassPrepare()
1253 RefTypeId class_id = registry->AddRefType(basket.locationClass); in PostClassPrepare()
1259 JDWP::JdwpTypeTag tag = Dbg::GetTypeTag(basket.locationClass.Get()); in PostClassPrepare()
1261 std::string signature(basket.locationClass->GetDescriptor(&temp)); in PostClassPrepare()