Lines Matching refs:mid

695     uint32_t mid = (begin + end) >> 1;  in BinarySearch()  local
696 auto cmp_result = cmp(mid); in BinarySearch()
698 return {true, mid, begin, end}; in BinarySearch()
701 begin = mid + 1u; in BinarySearch()
703 end = mid; in BinarySearch()
722 uint32_t mid; in ClassMemberBinarySearch() local
723 std::tie(success, mid, begin, end) = BinarySearch(begin, end, name_cmp); in ClassMemberBinarySearch()
728 auto second_cmp_result = second_cmp(mid); in ClassMemberBinarySearch()
730 return {true, mid}; in ClassMemberBinarySearch()
736 auto name_idx = get_name_idx(mid); in ClassMemberBinarySearch()
739 begin = mid + 1u; in ClassMemberBinarySearch()
744 std::tie(success, mid, begin, end) = BinarySearch(begin, end, name_index_cmp); in ClassMemberBinarySearch()
748 second_cmp_result = second_cmp(mid); in ClassMemberBinarySearch()
750 end = mid; in ClassMemberBinarySearch()
753 end = mid; in ClassMemberBinarySearch()
758 std::tie(success, mid, begin, end) = BinarySearch(begin, end, name_index_cmp); in ClassMemberBinarySearch()
762 second_cmp_result = second_cmp(mid); in ClassMemberBinarySearch()
764 begin = mid + 1u; in ClassMemberBinarySearch()
767 return {true, mid}; in ClassMemberBinarySearch()
770 std::tie(success, mid, std::ignore, std::ignore) = BinarySearch(begin, end, second_cmp); in ClassMemberBinarySearch()
771 return {success, mid}; in ClassMemberBinarySearch()
785 auto get_method_id = [&](uint32_t mid) REQUIRES_SHARED(Locks::mutator_lock_) ALWAYS_INLINE in FindDeclaredClassMethod()
787 ArtMethod& method = declared_methods[mid]; in FindDeclaredClassMethod()
792 auto name_cmp = [&](uint32_t mid) REQUIRES_SHARED(Locks::mutator_lock_) ALWAYS_INLINE { in FindDeclaredClassMethod() argument
795 const dex::MethodId& method_id = get_method_id(mid); in FindDeclaredClassMethod()
798 auto signature_cmp = [&](uint32_t mid) REQUIRES_SHARED(Locks::mutator_lock_) ALWAYS_INLINE { in FindDeclaredClassMethod() argument
801 const dex::MethodId& method_id = get_method_id(mid); in FindDeclaredClassMethod()
804 auto get_name_idx = [&](uint32_t mid) REQUIRES_SHARED(Locks::mutator_lock_) ALWAYS_INLINE { in FindDeclaredClassMethod() argument
805 const dex::MethodId& method_id = get_method_id(mid); in FindDeclaredClassMethod()
818 auto [success, mid] = in FindDeclaredClassMethod()
821 return {true, &declared_methods[mid]}; in FindDeclaredClassMethod()
1049 auto get_field_id = [&](uint32_t mid) REQUIRES_SHARED(Locks::mutator_lock_) ALWAYS_INLINE in FindFieldByNameAndType()
1051 ArtField& field = fields->At(mid); in FindFieldByNameAndType()
1055 auto name_cmp = [&](uint32_t mid) REQUIRES_SHARED(Locks::mutator_lock_) ALWAYS_INLINE { in FindFieldByNameAndType() argument
1056 const dex::FieldId& field_id = get_field_id(mid); in FindFieldByNameAndType()
1059 auto type_cmp = [&](uint32_t mid) REQUIRES_SHARED(Locks::mutator_lock_) ALWAYS_INLINE { in FindFieldByNameAndType() argument
1060 const dex::FieldId& field_id = get_field_id(mid); in FindFieldByNameAndType()
1064 auto get_name_idx = [&](uint32_t mid) REQUIRES_SHARED(Locks::mutator_lock_) ALWAYS_INLINE { in FindFieldByNameAndType() argument
1065 const dex::FieldId& field_id = get_field_id(mid); in FindFieldByNameAndType()
1070 auto [success, mid] = in FindFieldByNameAndType()
1082 ArtField* ret = success ? &fields->At(mid) : nullptr; in FindFieldByNameAndType()
1088 return {true, &fields->At(mid)}; in FindFieldByNameAndType()