• Home
  • Raw
  • Download

Lines Matching refs:dex_file

325                                               const art::DexFile& dex_file);
519 Thread* self, Handle<mirror::ClassLoader> class_loader, const DexFile& dex_file, in GetDexToDexCompilationlevel() argument
521 const char* descriptor = dex_file.GetClassDescriptor(class_def); in GetDexToDexCompilationlevel()
552 const DexFile* dex_file; in CompileOne() local
564 dex_file = method->GetDexFile(); in CompileOne()
567 const DexFile::CodeItem* code_item = dex_file->GetCodeItem(method->GetCodeItemOffset()); in CompileOne()
571 dex_files.push_back(dex_file); in CompileOne()
580 const DexFile::ClassDef& class_def = dex_file->GetClassDef(class_def_idx); in CompileOne()
584 dex_to_dex_compilation_level = GetDexToDexCompilationlevel(self, class_loader, *dex_file, in CompileOne()
588 *dex_file, dex_to_dex_compilation_level); in CompileOne()
598 const DexFile* dex_file = dex_files[i]; in Resolve() local
599 CHECK(dex_file != nullptr); in Resolve()
600 ResolveDexFile(class_loader, *dex_file, dex_files, thread_pool, timings); in Resolve()
735 const DexFile* dex_file = exception_type.second; in LoadImageClasses() local
737 Handle<mirror::DexCache> dex_cache(hs.NewHandle(class_linker->FindDexCache(*dex_file))); in LoadImageClasses()
739 class_linker->ResolveType(*dex_file, exception_type_idx, dex_cache, in LoadImageClasses()
742 const DexFile::TypeId& type_id = dex_file->GetTypeId(exception_type_idx); in LoadImageClasses()
743 const char* descriptor = dex_file->GetTypeDescriptor(type_id); in LoadImageClasses()
810 bool CompilerDriver::CanAssumeTypeIsPresentInDexCache(const DexFile& dex_file, uint32_t type_idx) { in CanAssumeTypeIsPresentInDexCache() argument
812 IsImageClass(dex_file.StringDataByIdx(dex_file.GetTypeId(type_idx).descriptor_idx_))) { in CanAssumeTypeIsPresentInDexCache()
815 mirror::DexCache* dex_cache = Runtime::Current()->GetClassLinker()->FindDexCache(dex_file); in CanAssumeTypeIsPresentInDexCache()
831 bool CompilerDriver::CanAssumeStringIsPresentInDexCache(const DexFile& dex_file, in CanAssumeStringIsPresentInDexCache() argument
841 hs.NewHandle(Runtime::Current()->GetClassLinker()->FindDexCache(dex_file))); in CanAssumeStringIsPresentInDexCache()
842 Runtime::Current()->GetClassLinker()->ResolveString(dex_file, string_idx, dex_cache); in CanAssumeStringIsPresentInDexCache()
853 bool CompilerDriver::CanAccessTypeWithoutChecks(uint32_t referrer_idx, const DexFile& dex_file, in CanAccessTypeWithoutChecks() argument
867 mirror::DexCache* dex_cache = Runtime::Current()->GetClassLinker()->FindDexCache(dex_file); in CanAccessTypeWithoutChecks()
874 const DexFile::MethodId& method_id = dex_file.GetMethodId(referrer_idx); in CanAccessTypeWithoutChecks()
901 const DexFile& dex_file, in CanAccessInstantiableTypeWithoutChecks() argument
904 mirror::DexCache* dex_cache = Runtime::Current()->GetClassLinker()->FindDexCache(dex_file); in CanAccessInstantiableTypeWithoutChecks()
911 const DexFile::MethodId& method_id = dex_file.GetMethodId(referrer_idx); in CanAccessInstantiableTypeWithoutChecks()
928 bool CompilerDriver::CanEmbedTypeInCode(const DexFile& dex_file, uint32_t type_idx, in CanEmbedTypeInCode() argument
932 mirror::DexCache* dex_cache = Runtime::Current()->GetClassLinker()->FindDexCache(dex_file); in CanEmbedTypeInCode()
944 dex_file.StringDataByIdx(dex_file.GetTypeId(type_idx).descriptor_idx_)); in CanEmbedTypeInCode()
1148 if (target_method->dex_file == method->GetDeclaringClass()->GetDexCache()->GetDexFile()) { in GetCodeAndMethodForDirectCall()
1156 *target_method->dex_file, target_method->dex_method_index); in GetCodeAndMethodForDirectCall()
1162 target_method->dex_file = method->GetDeclaringClass()->GetDexCache()->GetDexFile(); in GetCodeAndMethodForDirectCall()
1185 target_method->dex_file = method->GetDeclaringClass()->GetDexCache()->GetDexFile(); in GetCodeAndMethodForDirectCall()
1192 target_method->dex_file = method->GetDeclaringClass()->GetDexCache()->GetDexFile(); in GetCodeAndMethodForDirectCall()
1269 const VerifiedMethod* CompilerDriver::GetVerifiedMethod(const DexFile* dex_file, in GetVerifiedMethod() argument
1271 MethodReference ref(dex_file, method_idx); in GetVerifiedMethod()
1290 void CompilerDriver::AddCodePatch(const DexFile* dex_file, in AddCodePatch() argument
1299 code_to_patch_.push_back(new CallPatchInformation(dex_file, in AddCodePatch()
1308 void CompilerDriver::AddRelativeCodePatch(const DexFile* dex_file, in AddRelativeCodePatch() argument
1318 code_to_patch_.push_back(new RelativeCallPatchInformation(dex_file, in AddRelativeCodePatch()
1328 void CompilerDriver::AddMethodPatch(const DexFile* dex_file, in AddMethodPatch() argument
1337 methods_to_patch_.push_back(new CallPatchInformation(dex_file, in AddMethodPatch()
1346 void CompilerDriver::AddClassPatch(const DexFile* dex_file, in AddClassPatch() argument
1352 classes_to_patch_.push_back(new TypePatchInformation(dex_file, in AddClassPatch()
1366 const DexFile* dex_file, in ParallelCompilationManager() argument
1373 dex_file_(dex_file), in ParallelCompilationManager()
1465 static bool SkipClass(jobject class_loader, const DexFile& dex_file, mirror::Class* klass) in SkipClass() argument
1469 if (&dex_file != &original_dex_file) { in SkipClass()
1472 << dex_file.GetLocation() << " previously found in " in SkipClass()
1513 const DexFile& dex_file = *manager->GetDexFile(); in ResolveClassFieldsAndMethods() local
1528 const DexFile::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in ResolveClassFieldsAndMethods()
1533 Handle<mirror::DexCache> dex_cache(hs.NewHandle(class_linker->FindDexCache(dex_file))); in ResolveClassFieldsAndMethods()
1535 mirror::Class* klass = class_linker->ResolveType(dex_file, class_def.class_idx_, dex_cache, in ResolveClassFieldsAndMethods()
1545 if (SkipClass(jclass_loader, dex_file, klass)) { in ResolveClassFieldsAndMethods()
1554 const byte* class_data = dex_file.GetClassData(class_def); in ResolveClassFieldsAndMethods()
1559 ClassDataItemIterator it(dex_file, class_data); in ResolveClassFieldsAndMethods()
1562 mirror::ArtField* field = class_linker->ResolveField(dex_file, it.GetMemberIndex(), in ResolveClassFieldsAndMethods()
1577 mirror::ArtField* field = class_linker->ResolveField(dex_file, it.GetMemberIndex(), in ResolveClassFieldsAndMethods()
1587 mirror::ArtMethod* method = class_linker->ResolveMethod(dex_file, it.GetMemberIndex(), in ResolveClassFieldsAndMethods()
1597 mirror::ArtMethod* method = class_linker->ResolveMethod(dex_file, it.GetMemberIndex(), in ResolveClassFieldsAndMethods()
1610 manager->GetCompiler()->AddRequiresConstructorBarrier(self, &dex_file, class_def_index); in ResolveClassFieldsAndMethods()
1619 const DexFile& dex_file = *manager->GetDexFile(); in ResolveType() local
1621 Handle<mirror::DexCache> dex_cache(hs.NewHandle(class_linker->FindDexCache(dex_file))); in ResolveType()
1624 mirror::Class* klass = class_linker->ResolveType(dex_file, type_idx, dex_cache, class_loader); in ResolveType()
1638 void CompilerDriver::ResolveDexFile(jobject class_loader, const DexFile& dex_file, in ResolveDexFile() argument
1646 ParallelCompilationManager context(class_linker, class_loader, this, &dex_file, dex_files, in ResolveDexFile()
1652 context.ForAll(0, dex_file.NumTypeIds(), ResolveType, thread_count_); in ResolveDexFile()
1656 context.ForAll(0, dex_file.NumClassDefs(), ResolveClassFieldsAndMethods, thread_count_); in ResolveDexFile()
1662 const DexFile* dex_file = dex_files[i]; in SetVerified() local
1663 CHECK(dex_file != nullptr); in SetVerified()
1664 SetVerifiedDexFile(class_loader, *dex_file, dex_files, thread_pool, timings); in SetVerified()
1671 const DexFile* dex_file = dex_files[i]; in Verify() local
1672 CHECK(dex_file != nullptr); in Verify()
1673 VerifyDexFile(class_loader, *dex_file, dex_files, thread_pool, timings); in Verify()
1681 const DexFile& dex_file = *manager->GetDexFile(); in VerifyClass() local
1682 const DexFile::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in VerifyClass()
1683 const char* descriptor = dex_file.GetClassDescriptor(class_def); in VerifyClass()
1700 Handle<mirror::DexCache> dex_cache(hs.NewHandle(class_linker->FindDexCache(dex_file))); in VerifyClass()
1702 if (verifier::MethodVerifier::VerifyClass(&dex_file, dex_cache, class_loader, &class_def, true, in VerifyClass()
1708 } else if (!SkipClass(jclass_loader, dex_file, klass.Get())) { in VerifyClass()
1724 void CompilerDriver::VerifyDexFile(jobject class_loader, const DexFile& dex_file, in VerifyDexFile() argument
1729 ParallelCompilationManager context(class_linker, class_loader, this, &dex_file, dex_files, in VerifyDexFile()
1731 context.ForAll(0, dex_file.NumClassDefs(), VerifyClass, thread_count_); in VerifyDexFile()
1738 const DexFile& dex_file = *manager->GetDexFile(); in SetVerifiedClass() local
1739 const DexFile::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in SetVerifiedClass()
1740 const char* descriptor = dex_file.GetClassDescriptor(class_def); in SetVerifiedClass()
1768 void CompilerDriver::SetVerifiedDexFile(jobject class_loader, const DexFile& dex_file, in SetVerifiedDexFile() argument
1773 ParallelCompilationManager context(class_linker, class_loader, this, &dex_file, dex_files, in SetVerifiedDexFile()
1775 context.ForAll(0, dex_file.NumClassDefs(), SetVerifiedClass, thread_count_); in SetVerifiedDexFile()
1782 const DexFile& dex_file = *manager->GetDexFile(); in InitializeClass() local
1783 const DexFile::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in InitializeClass()
1784 const DexFile::TypeId& class_type_id = dex_file.GetTypeId(class_def.class_idx_); in InitializeClass()
1785 const char* descriptor = dex_file.StringDataByIdx(class_type_id.descriptor_idx_); in InitializeClass()
1794 if (klass.Get() != nullptr && !SkipClass(jclass_loader, dex_file, klass.Get())) { in InitializeClass()
1863 void CompilerDriver::InitializeClasses(jobject jni_class_loader, const DexFile& dex_file, in InitializeClasses() argument
1868 ParallelCompilationManager context(class_linker, jni_class_loader, this, &dex_file, dex_files, in InitializeClasses()
1877 context.ForAll(0, dex_file.NumClassDefs(), InitializeClass, thread_count); in InitializeClasses()
1884 const DexFile* dex_file = dex_files[i]; in InitializeClasses() local
1885 CHECK(dex_file != nullptr); in InitializeClasses()
1886 InitializeClasses(class_loader, *dex_file, dex_files, thread_pool, timings); in InitializeClasses()
1897 const DexFile* dex_file = dex_files[i]; in Compile() local
1898 CHECK(dex_file != nullptr); in Compile()
1899 CompileDexFile(class_loader, *dex_file, dex_files, thread_pool, timings); in Compile()
1905 const DexFile& dex_file = *manager->GetDexFile(); in CompileClass() local
1906 const DexFile::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in CompileClass()
1911 const char* descriptor = dex_file.GetClassDescriptor(class_def); in CompileClass()
1921 } else if (SkipClass(jclass_loader, dex_file, klass.Get())) { in CompileClass()
1925 ClassReference ref(&dex_file, class_def_index); in CompileClass()
1930 const byte* class_data = dex_file.GetClassData(class_def); in CompileClass()
1943 dex_to_dex_compilation_level = GetDexToDexCompilationlevel(soa.Self(), class_loader, dex_file, in CompileClass()
1946 ClassDataItemIterator it(dex_file, class_data); in CompileClass()
1968 method_idx, jclass_loader, dex_file, dex_to_dex_compilation_level); in CompileClass()
1984 method_idx, jclass_loader, dex_file, dex_to_dex_compilation_level); in CompileClass()
1990 void CompilerDriver::CompileDexFile(jobject class_loader, const DexFile& dex_file, in CompileDexFile() argument
1995 &dex_file, dex_files, thread_pool); in CompileDexFile()
1996 context.ForAll(0, dex_file.NumClassDefs(), CompilerDriver::CompileClass, thread_count_); in CompileDexFile()
2002 const DexFile& dex_file, in CompileMethod() argument
2013 compiled_method = compiler_->JniCompile(access_flags, method_idx, dex_file); in CompileMethod()
2018 MethodReference method_ref(&dex_file, method_idx); in CompileMethod()
2023 method_idx, class_loader, dex_file); in CompileMethod()
2029 method_idx, class_loader, dex_file, in CompileMethod()
2036 LOG(WARNING) << "Compilation of " << PrettyMethod(method_idx, dex_file) in CompileMethod()
2043 MethodReference ref(&dex_file, method_idx); in CompileMethod()
2044 DCHECK(GetCompiledMethod(ref) == nullptr) << PrettyMethod(method_idx, dex_file); in CompileMethod()
2049 DCHECK(GetCompiledMethod(ref) != nullptr) << PrettyMethod(method_idx, dex_file); in CompileMethod()
2054 LOG(FATAL) << "Unexpected exception compiling: " << PrettyMethod(method_idx, dex_file) << "\n" in CompileMethod()
2105 void CompilerDriver::AddRequiresConstructorBarrier(Thread* self, const DexFile* dex_file, in AddRequiresConstructorBarrier() argument
2108 freezing_constructor_classes_.insert(ClassReference(dex_file, class_def_index)); in AddRequiresConstructorBarrier()
2111 bool CompilerDriver::RequiresConstructorBarrier(Thread* self, const DexFile* dex_file, in RequiresConstructorBarrier() argument
2114 return freezing_constructor_classes_.count(ClassReference(dex_file, class_def_index)) != 0; in RequiresConstructorBarrier()