• Home
  • Raw
  • Download

Lines Matching refs:class_ref

1047                                     /*out*/ TypeReference* class_ref) {  in FindClassDef()  argument
1054 *class_ref = TypeReference(dex_file.get(), type_index); in FindClassDef()
1067 /*out*/ TypeReference* class_ref) { in FindClass() argument
1072 *class_ref = TypeReference(dex_file, dex_file->GetIndexForTypeId(*type_id)); in FindClass()
1080 uint32_t FindMethodIndex(const TypeReference& class_ref, in FindMethodIndex() argument
1082 const DexFile* dex_file = class_ref.dex_file; in FindMethodIndex()
1110 dex_file->GetTypeId(class_ref.TypeIndex()), *name_id, *proto_id); in FindMethodIndex()
1120 void VisitAllInstructions(const TypeReference& class_ref, uint16_t method_idx, Visitor visitor) { in VisitAllInstructions() argument
1121 const DexFile* dex_file = class_ref.dex_file; in VisitAllInstructions()
1122 const dex::ClassDef* def = dex_file->FindClassDef(class_ref.TypeIndex()); in VisitAllInstructions()
1141 void GetAllInvokes(const TypeReference& class_ref, in GetAllInvokes() argument
1145 const DexFile* dex_file = class_ref.dex_file; in GetAllInvokes()
1146 VisitAllInstructions(class_ref, method_idx, [&](const DexInstructionPcPair& inst) -> bool { in GetAllInvokes()
1169 bool HasSingleInvoke(const TypeReference& class_ref, in HasSingleInvoke() argument
1174 VisitAllInstructions(class_ref, method_index, [&](const DexInstructionPcPair& inst) -> bool { in HasSingleInvoke()
1181 << class_ref.dex_file->PrettyMethod(method_index); in HasSingleInvoke()
1191 << class_ref.dex_file->PrettyMethod(method_index); in HasSingleInvoke()
1302 std::optional<ClassMethodReference> ResolveMethod(TypeReference class_ref, in ResolveMethod() argument
1304 const DexFile* dex = class_ref.dex_file; in ResolveMethod()
1305 const dex::ClassDef* def = dex->FindClassDef(class_ref.TypeIndex()); in ResolveMethod()
1311 return ClassMethodReference{class_ref, method_index}; in ResolveMethod()
1430 TypeReference class_ref(/* dex_file= */ nullptr, dex::TypeIndex()); in ProcessLine() local
1431 if (FindClassDef(dex_files, klass.substr(array_dim), &class_ref) == nullptr) { in ProcessLine()
1437 return profile->AddClass(*class_ref.dex_file, klass, annotation); in ProcessLine()
1439 return profile->AddClass(*class_ref.dex_file, class_ref.TypeIndex(), annotation); in ProcessLine()
1444 TypeReference class_ref(/* dex_file= */ nullptr, dex::TypeIndex()); in ProcessLine() local
1445 const dex::ClassDef* class_def = FindClassDef(dex_files, klass, &class_ref); in ProcessLine()
1464 profile->AddClass(*class_ref.dex_file, class_ref.TypeIndex(), annotation); in ProcessLine()
1465 uint16_t class_def_index = class_ref.dex_file->GetIndexForClassDef(*class_def); in ProcessLine()
1466 ClassAccessor accessor(*class_ref.dex_file, class_def_index); in ProcessLine()
1501 const uint32_t method_index = FindMethodIndex(class_ref, method_spec); in ProcessLine()
1508 resolved_class_method_ref = ResolveMethod(class_ref, method_index); in ProcessLine()
1522 if (!HasSingleInvoke(class_ref, method_index, &dex_pcs[0])) { in ProcessLine()
1529 class_ref.dex_file->FindTypeId(receiver_str.c_str()); in ProcessLine()
1533 << class_ref.dex_file << ". Ignoring IC group: '" in ProcessLine()
1538 class_ref.dex_file->GetIndexForTypeId(*type_id); in ProcessLine()
1581 MethodReference ref(class_ref.dex_file, method_index); in ProcessLine()
1583 ClassMethodReference orig_cmr { class_ref, method_index }; in ProcessLine()
1597 MethodReference resolved_ref(class_ref.dex_file, in ProcessLine()
1636 TypeReference class_ref(/* dex_file= */ nullptr, dex::TypeIndex()); in ProcessBootLine() local
1637 if (FindClassDef(dex_files, klass_str, &class_ref) == nullptr) { in ProcessBootLine()
1642 const uint32_t method_index = FindMethodIndex(class_ref, method_str); in ProcessBootLine()
1647 boot_profiling_info->Add(class_ref.dex_file, method_index); in ProcessBootLine()