Lines Matching refs:dex_file
347 const DexFile& dex_file, const dex::ClassDef& class_def) in GetDexToDexCompilationLevel() argument
352 if (dex_file.GetContainer() != nullptr && dex_file.GetContainer()->IsReadOnly()) { in GetDexToDexCompilationLevel()
357 const char* descriptor = dex_file.GetClassDescriptor(class_def); in GetDexToDexCompilationLevel()
391 const DexFile& dex_file, in GetDexToDexCompilationLevel() argument
397 return GetDexToDexCompilationLevel(self, driver, class_loader, dex_file, class_def); in GetDexToDexCompilationLevel()
425 const DexFile& dex_file, in CompileMethodHarness() argument
432 MethodReference method_ref(&dex_file, method_idx); in CompileMethodHarness()
442 dex_file, in CompileMethodHarness()
449 LOG(WARNING) << "Compilation of " << dex_file.PrettyMethod(method_idx) in CompileMethodHarness()
460 LOG(FATAL) << "Unexpected exception compiling: " << dex_file.PrettyMethod(method_idx) << "\n" in CompileMethodHarness()
474 const DexFile& dex_file, in CompileMethodDex2Dex() argument
485 const DexFile& dex_file, in CompileMethodDex2Dex()
489 MethodReference method_ref(&dex_file, method_idx); in CompileMethodDex2Dex()
506 dex_file, in CompileMethodDex2Dex()
521 dex_file, in CompileMethodDex2Dex()
536 const DexFile& dex_file, in CompileMethodQuick() argument
548 const DexFile& dex_file, in CompileMethodQuick()
553 MethodReference method_ref(&dex_file, method_idx); in CompileMethodQuick()
563 dex_file, dex_file.GetClassDef(class_def_idx), method_idx); in CompileMethodQuick()
566 access_flags, method_idx, dex_file, dex_cache); in CompileMethodQuick()
595 dex_file, in CompileMethodQuick()
605 << method_ref.dex_file->PrettyMethod(method_ref.index) in CompileMethodQuick()
606 << "[" << method_ref.dex_file->GetLocation() << "]" in CompileMethodQuick()
639 dex_file, in CompileMethodQuick()
656 const DexFile* dex_file = dex_files[i]; in Resolve() local
657 CHECK(dex_file != nullptr); in Resolve()
659 *dex_file, in Resolve()
681 for (const DexFile* dex_file : dex_files) { in ResolveConstStrings() local
682 dex_cache.Assign(class_linker->FindDexCache(soa.Self(), *dex_file)); in ResolveConstStrings()
691 for (ClassAccessor accessor : dex_file->GetClasses()) { in ResolveConstStrings()
697 profile_compilation_info->ContainsClass(*dex_file, accessor.GetClassIdx()); in ResolveConstStrings()
700 if (GetClassStatus(ClassReference(dex_file, accessor.GetClassDefIndex())) < in ResolveConstStrings()
757 const DexFile& dex_file, in InitializeTypeCheckBitstrings() argument
766 const char* descriptor = dex_file.StringByTypeIdx(type_index); in InitializeTypeCheckBitstrings()
800 for (const DexFile* dex_file : dex_files) { in InitializeTypeCheckBitstrings() local
801 dex_cache.Assign(class_linker->FindDexCache(soa.Self(), *dex_file)); in InitializeTypeCheckBitstrings()
804 for (ClassAccessor accessor : dex_file->GetClasses()) { in InitializeTypeCheckBitstrings()
807 InitializeTypeCheckBitstrings(driver, class_linker, dex_cache, *dex_file, method); in InitializeTypeCheckBitstrings()
827 for (const DexFile* dex_file : dex_files) { in EnsureVerifiedOrVerifyAtRuntime() local
828 for (ClassAccessor accessor : dex_file->GetClasses()) { in EnsureVerifiedOrVerifyAtRuntime()
832 } else if (&cls->GetDexFile() == dex_file) { in EnsureVerifiedOrVerifyAtRuntime()
868 for (const DexFile* dex_file : dex_files) { in PreCompile() local
870 if (!compiled_methods_.HaveDexFile(dex_file)) { in PreCompile()
871 compiled_methods_.AddDexFile(dex_file); in PreCompile()
938 !android::base::StartsWith(method_ref.dex_file->GetLocation(), "/apex")) { in ShouldCompileBasedOnProfile()
1090 const DexFile* dex_file = exception_type.second; in LoadImageClasses() local
1092 Handle<mirror::DexCache> dex_cache(hs2.NewHandle(class_linker->RegisterDexFile(*dex_file, in LoadImageClasses()
1101 const dex::TypeId& type_id = dex_file->GetTypeId(exception_type_idx); in LoadImageClasses()
1102 const char* descriptor = dex_file->GetTypeDescriptor(type_id); in LoadImageClasses()
1401 const DexFile* dex_file, in ParallelCompilationManager() argument
1408 dex_file_(dex_file), in ParallelCompilationManager()
1511 static bool SkipClass(jobject class_loader, const DexFile& dex_file, ObjPtr<mirror::Class> klass) in SkipClass() argument
1515 if (&dex_file != &original_dex_file) { in SkipClass()
1518 << dex_file.GetLocation() << " previously found in " in SkipClass()
1565 const DexFile& dex_file = *manager_->GetDexFile(); in Visit() local
1575 const dex::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in Visit()
1581 soa.Self(), dex_file))); in Visit()
1593 if (SkipClass(jclass_loader, dex_file, klass)) { in Visit()
1601 ClassAccessor accessor(dex_file, class_def_index); in Visit()
1649 const DexFile& dex_file = *manager_->GetDexFile(); in Visit() local
1654 dex_file, in Visit()
1677 const DexFile& dex_file, in ResolveDexFile() argument
1687 ParallelCompilationManager context(class_linker, class_loader, this, &dex_file, dex_files, in ResolveDexFile()
1694 context.ForAll(0, dex_file.NumTypeIds(), &visitor, thread_count); in ResolveDexFile()
1699 context.ForAll(0, dex_file.NumClassDefs(), &visitor, thread_count); in ResolveDexFile()
1706 for (const DexFile* dex_file : dex_files) { in SetVerified() local
1707 CHECK(dex_file != nullptr); in SetVerified()
1709 *dex_file, in SetVerified()
1780 for (const DexFile* dex_file : dex_files) { in FastVerify() local
1782 const std::vector<bool>& verified_classes = verifier_deps->GetVerifiedClasses(*dex_file); in FastVerify()
1783 DCHECK_EQ(verified_classes.size(), dex_file->NumClassDefs()); in FastVerify()
1784 for (ClassAccessor accessor : dex_file->GetClasses()) { in FastVerify()
1789 ClassReference ref(dex_file, accessor.GetClassDefIndex()); in FastVerify()
1793 CHECK_EQ(result, ClassStateTable::kInsertResultSuccess) << ref.dex_file->GetLocation(); in FastVerify()
1853 for (const DexFile* dex_file : dex_files) { in Verify() local
1854 CHECK(dex_file != nullptr); in Verify()
1856 *dex_file, in Verify()
1886 const DexFile& dex_file = *manager_->GetDexFile(); in Visit() local
1887 const dex::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in Visit()
1888 const char* descriptor = dex_file.GetClassDescriptor(class_def); in Visit()
1907 soa.Self(), dex_file))); in Visit()
1911 &dex_file, in Visit()
1933 } else if (&klass->GetDexFile() != &dex_file) { in Visit()
1944 verifier::VerifierDeps::MaybeRecordClassRedefinition(dex_file, class_def); in Visit()
1946 } else if (!SkipClass(jclass_loader, dex_file, klass.Get())) { in Visit()
1993 verifier::VerifierDeps::MaybeRecordVerificationStatus(dex_file, class_def, failure_kind); in Visit()
2004 const DexFile& dex_file, in VerifyDexFile() argument
2011 ParallelCompilationManager context(class_linker, class_loader, this, &dex_file, dex_files, in VerifyDexFile()
2019 context.ForAll(0, dex_file.NumClassDefs(), &visitor, thread_count); in VerifyDexFile()
2029 const DexFile& dex_file = *manager_->GetDexFile(); in Visit() local
2030 const dex::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in Visit()
2031 const char* descriptor = dex_file.GetClassDescriptor(class_def); in Visit()
2071 const DexFile& dex_file, in SetVerifiedDexFile() argument
2077 if (!compiled_classes_.HaveDexFile(&dex_file)) { in SetVerifiedDexFile()
2078 compiled_classes_.AddDexFile(&dex_file); in SetVerifiedDexFile()
2081 ParallelCompilationManager context(class_linker, class_loader, this, &dex_file, dex_files, in SetVerifiedDexFile()
2084 context.ForAll(0, dex_file.NumClassDefs(), &visitor, thread_count); in SetVerifiedDexFile()
2094 const DexFile& dex_file = *manager_->GetDexFile(); in Visit() local
2095 const dex::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in Visit()
2096 const dex::TypeId& class_type_id = dex_file.GetTypeId(class_def.class_idx_); in Visit()
2097 const char* descriptor = dex_file.StringDataByIdx(class_type_id.descriptor_idx_); in Visit()
2107 if (!SkipClass(manager_->GetClassLoader(), dex_file, klass.Get())) { in Visit()
2119 const DexFile& dex_file = klass->GetDexFile(); in TryInitializeClass() local
2121 const dex::TypeId& class_type_id = dex_file.GetTypeId(class_def->class_idx_); in TryInitializeClass()
2122 const char* descriptor = dex_file.StringDataByIdx(class_type_id.descriptor_idx_); in TryInitializeClass()
2270 ClassReference ref(&dex_file, klass->GetDexClassDefIndex()); in TryInitializeClass()
2456 const DexFile& dex_file, in InitializeClasses() argument
2469 ParallelCompilationManager context(class_linker, jni_class_loader, this, &dex_file, dex_files, in InitializeClasses()
2479 context.ForAll(0, dex_file.NumClassDefs(), &visitor, init_thread_count); in InitializeClasses()
2536 const DexFile* dex_file = dex_files[i]; in InitializeClasses() local
2537 CHECK(dex_file != nullptr); in InitializeClasses()
2538 InitializeClasses(class_loader, *dex_file, dex_files, timings); in InitializeClasses()
2561 const DexFile& dex_file, in CompileDexFile() argument
2572 &dex_file, in CompileDexFile()
2577 const DexFile& dex_file = *context.GetDexFile(); in CompileDexFile() local
2578 SCOPED_TRACE << "compile " << dex_file.GetLocation() << "@" << class_def_index; in CompileDexFile()
2581 ClassReference ref(&dex_file, class_def_index); in CompileDexFile()
2582 const dex::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in CompileDexFile()
2583 ClassAccessor accessor(dex_file, class_def_index); in CompileDexFile()
2600 dex_cache = hs.NewHandle(class_linker->FindDexCache(soa.Self(), dex_file)); in CompileDexFile()
2601 } else if (SkipClass(jclass_loader, dex_file, klass.Get())) { in CompileDexFile()
2603 } else if (&klass->GetDexFile() != &dex_file) { in CompileDexFile()
2620 GetDexToDexCompilationLevel(soa.Self(), *driver, jclass_loader, dex_file, class_def); in CompileDexFile()
2640 dex_file, in CompileDexFile()
2645 context.ForAllLambda(0, dex_file.NumClassDefs(), compile, thread_count); in CompileDexFile()
2661 for (const DexFile* dex_file : dex_files) { in Compile() local
2662 CHECK(dex_file != nullptr); in Compile()
2665 *dex_file, in Compile()
2681 for (const DexFile* dex_file : dex_files) { in Compile() local
2684 *dex_file, in Compile()
2748 ref.dex_file->GetClassDescriptor(ref.dex_file->GetClassDef(ref.index))) in RecordClassStatus()
2761 for (const DexFile* dex_file : GetCompilerOptions().GetDexFilesForOatFile()) { in RecordClassStatus() local
2762 CHECK_NE(ref.dex_file, dex_file) << ref.dex_file->GetLocation(); in RecordClassStatus()
2765 if (!classpath_classes_.HaveDexFile(ref.dex_file)) { in RecordClassStatus()
2779 CHECK(result != ClassStateTable::kInsertResultInvalidDexFile) << ref.dex_file->GetLocation(); in RecordClassStatus()