/art/compiler/sea_ir/ |
D | frontend.cc | 45 jobject class_loader, const DexFile& dex_file, in CompileMethodWithSeaIr() argument 47 LOG(INFO) << "Compiling " << PrettyMethod(method_idx, dex_file) << "."; in CompileMethodWithSeaIr() 48 sea_ir::SeaGraph* ir_graph = sea_ir::SeaGraph::GetGraph(dex_file); in CompileMethodWithSeaIr() 49 std::string symbol = "dex_" + MangleForJni(PrettyMethod(method_idx, dex_file)); in CompileMethodWithSeaIr() 51 code_item, class_def_idx, method_idx, method_access_flags, dex_file); in CompileMethodWithSeaIr() 55 MethodReference mref(&dex_file, method_idx); in CompileMethodWithSeaIr() 60 LOG(INFO) << "Compiled SEA IR method " << PrettyMethod(method_idx, dex_file) << "."; in CompileMethodWithSeaIr() 72 const DexFile& dex_file, in SeaIrCompileOneMethod() argument 75 class_def_idx, method_idx, class_loader, dex_file, llvm_compilation_unit); in SeaIrCompileOneMethod() 83 const art::DexFile& dex_file) { in SeaIrCompileMethod() argument [all …]
|
/art/runtime/ |
D | method_reference.h | 28 MethodReference(const DexFile* file, uint32_t index) : dex_file(file), dex_method_index(index) { in MethodReference() 30 const DexFile* dex_file; member 36 if (mr1.dex_file == mr2.dex_file) { in operator() 39 return mr1.dex_file < mr2.dex_file; in operator()
|
D | method_helper-inl.h | 30 const DexFile* dex_file = method_->GetDexFile(); in HasSameNameAndSignature() local 31 const DexFile::MethodId& mid = dex_file->GetMethodId(GetMethod()->GetDexMethodIndex()); in HasSameNameAndSignature() 34 dex_file->GetMethodId(other->GetMethod()->GetDexMethodIndex()); in HasSameNameAndSignature() 40 if (!DexFileStringEquals(dex_file, mid.name_idx_, other_dex_file, other_mid.name_idx_)) { in HasSameNameAndSignature() 43 return dex_file->GetMethodSignature(mid) == other_dex_file->GetMethodSignature(other_mid); in HasSameNameAndSignature() 58 const DexFile* dex_file = method->GetDexFile(); in GetReturnType() local 59 const DexFile::MethodId& method_id = dex_file->GetMethodId(method->GetDexMethodIndex()); in GetReturnType() 60 const DexFile::ProtoId& proto_id = dex_file->GetMethodPrototype(method_id); in GetReturnType()
|
D | dex_file_verifier_test.cc | 129 const DexFile* dex_file = tmp[0]; in OpenDexFileBase64() local 130 EXPECT_EQ(PROT_READ, dex_file->GetPermissions()); in OpenDexFileBase64() 131 EXPECT_TRUE(dex_file->IsReadOnly()); in OpenDexFileBase64() 132 return dex_file; in OpenDexFileBase64() 159 static void FixUpChecksum(byte* dex_file) { in FixUpChecksum() argument 160 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(dex_file); in FixUpChecksum() 164 const byte* non_sum_ptr = dex_file + non_sum; in FixUpChecksum() 195 const DexFile* dex_file = tmp[0]; in FixChecksumAndOpen() local 196 EXPECT_EQ(PROT_READ, dex_file->GetPermissions()); in FixChecksumAndOpen() 197 EXPECT_TRUE(dex_file->IsReadOnly()); in FixChecksumAndOpen() [all …]
|
D | class_linker.cc | 351 for (const DexFile* dex_file : boot_class_path) { in InitWithoutImage() local 352 CHECK(dex_file != nullptr); in InitWithoutImage() 353 AppendToBootClassPath(*dex_file); in InitWithoutImage() 523 const DexFile& dex_file = java_lang_Object->GetDexFile(); in InitWithoutImage() local 524 const DexFile::StringId* void_string_id = dex_file.FindStringId("V"); in InitWithoutImage() 526 uint32_t void_string_index = dex_file.GetIndexForStringId(*void_string_id); in InitWithoutImage() 527 const DexFile::TypeId* void_type_id = dex_file.FindTypeId(void_string_index); in InitWithoutImage() 529 uint16_t void_type_idx = dex_file.GetIndexForTypeId(*void_type_id); in InitWithoutImage() 532 mirror::Class* resolved_type = ResolveType(dex_file, void_type_idx, java_lang_Object.Get()); in InitWithoutImage() 696 const OatFile::OatDexFile* ClassLinker::FindOpenedOatDexFileForDexFile(const DexFile& dex_file) { in FindOpenedOatDexFileForDexFile() argument [all …]
|
D | class_linker.h | 101 const DexFile& dex_file, const DexFile::ClassDef& dex_class_def) 144 mirror::String* ResolveString(const DexFile& dex_file, uint32_t string_idx, 151 mirror::Class* ResolveType(const DexFile& dex_file, uint16_t type_idx, mirror::Class* referrer) 167 mirror::Class* ResolveType(const DexFile& dex_file, uint16_t type_idx, 177 mirror::ArtMethod* ResolveMethod(const DexFile& dex_file, 203 mirror::ArtField* ResolveField(const DexFile& dex_file, 214 mirror::ArtField* ResolveFieldJLS(const DexFile& dex_file, uint32_t field_idx, 233 void RegisterDexFile(const DexFile& dex_file) 236 void RegisterDexFile(const DexFile& dex_file, Handle<mirror::DexCache> dex_cache) 265 mirror::DexCache* FindDexCache(const DexFile& dex_file) [all …]
|
D | class_linker-inl.h | 66 const DexFile& dex_file = *dex_cache->GetDexFile(); in ResolveString() local 67 resolved_string = ResolveString(dex_file, string_idx, dex_cache); in ResolveString() 83 const DexFile& dex_file = *dex_cache->GetDexFile(); in ResolveType() local 84 resolved_type = ResolveType(dex_file, type_idx, dex_cache, class_loader); in ResolveType() 99 const DexFile& dex_file = *dex_cache->GetDexFile(); in ResolveType() local 100 resolved_type = ResolveType(dex_file, type_idx, dex_cache, class_loader); in ResolveType() 129 const DexFile* dex_file = h_dex_cache->GetDexFile(); in ResolveMethod() local 130 resolved_method = ResolveMethod(*dex_file, method_idx, h_dex_cache, h_class_loader, h_referrer, in ResolveMethod() 150 const DexFile& dex_file = *dex_cache->GetDexFile(); in ResolveField() local 151 resolved_field = ResolveField(dex_file, field_idx, dex_cache, class_loader, is_static); in ResolveField()
|
D | dex_file.cc | 110 …std::unique_ptr<const DexFile> dex_file(DexFile::OpenFile(fd.release(), filename, false, error_msg… in GetChecksum() local 111 if (dex_file.get() == NULL) { in GetChecksum() 114 *checksum = dex_file->GetHeader().checksum_; in GetChecksum() 133 std::unique_ptr<const DexFile> dex_file(DexFile::OpenFile(fd.release(), location, true, in Open() local 135 if (dex_file.get() != nullptr) { in Open() 136 dex_files->push_back(dex_file.release()); in Open() 208 const DexFile* dex_file = OpenMemory(location, dex_header->checksum_, map.release(), error_msg); in OpenFile() local 209 if (dex_file == nullptr) { in OpenFile() 215 if (verify && !DexFileVerifier::Verify(dex_file, dex_file->Begin(), dex_file->Size(), location, in OpenFile() 220 return dex_file; in OpenFile() [all …]
|
/art/compiler/driver/ |
D | compiler_driver.cc | 330 const art::DexFile& dex_file); 520 Thread* self, Handle<mirror::ClassLoader> class_loader, const DexFile& dex_file, in GetDexToDexCompilationlevel() argument 522 const char* descriptor = dex_file.GetClassDescriptor(class_def); in GetDexToDexCompilationlevel() 553 const DexFile* dex_file; in CompileOne() local 565 dex_file = method->GetDexFile(); in CompileOne() 568 const DexFile::CodeItem* code_item = dex_file->GetCodeItem(method->GetCodeItemOffset()); in CompileOne() 572 dex_files.push_back(dex_file); in CompileOne() 581 const DexFile::ClassDef& class_def = dex_file->GetClassDef(class_def_idx); in CompileOne() 585 dex_to_dex_compilation_level = GetDexToDexCompilationlevel(self, class_loader, *dex_file, in CompileOne() 589 *dex_file, dex_to_dex_compilation_level, true); in CompileOne() [all …]
|
D | compiler_driver.h | 193 void AddRequiresConstructorBarrier(Thread* self, const DexFile* dex_file, 195 bool RequiresConstructorBarrier(Thread* self, const DexFile* dex_file, uint16_t class_def_index); 199 bool CanAssumeTypeIsPresentInDexCache(const DexFile& dex_file, uint32_t type_idx); 201 bool CanAssumeStringIsPresentInDexCache(const DexFile& dex_file, uint32_t string_idx) 205 bool CanAccessTypeWithoutChecks(uint32_t referrer_idx, const DexFile& dex_file, 212 bool CanAccessInstantiableTypeWithoutChecks(uint32_t referrer_idx, const DexFile& dex_file, 216 bool CanEmbedTypeInCode(const DexFile& dex_file, uint32_t type_idx, 220 bool CanEmbedStringInCode(const DexFile& dex_file, uint32_t string_idx, 330 const VerifiedMethod* GetVerifiedMethod(const DexFile* dex_file, uint32_t method_idx) const; 334 void AddCodePatch(const DexFile* dex_file, [all …]
|
D | dex_compilation_unit.cc | 30 dex_file_(cu->dex_file), in DexCompilationUnit() 35 verified_method_(cu_->compiler_driver->GetVerifiedMethod(cu->dex_file, cu->method_idx)) { in DexCompilationUnit() 41 const DexFile& dex_file, in DexCompilationUnit() argument 50 dex_file_(&dex_file), in DexCompilationUnit()
|
D | compiler_driver-inl.h | 127 const DexFile* dex_file = dex_cache->GetDexFile(); in IsFastStaticField() local 138 dex_file->FindStringId( in IsFastStaticField() 142 dex_file->FindTypeId(dex_file->GetIndexForStringId(*string_id)); in IsFastStaticField() 145 storage_idx = dex_file->GetIndexForTypeId(*type_id); in IsFastStaticField() 154 CanAssumeTypeIsPresentInDexCache(*dex_file, storage_idx); in IsFastStaticField() 241 CHECK(target_method->dex_file == mUnit->GetDexFile()); in IsFastInvoke() 265 if (LIKELY(devirt_target->dex_file == mUnit->GetDexFile())) { in IsFastInvoke() 266 called_method = class_linker->ResolveMethod(*devirt_target->dex_file, in IsFastInvoke() 273 hs.NewHandle(class_linker->FindDexCache(*devirt_target->dex_file))); in IsFastInvoke() 274 called_method = class_linker->ResolveMethod(*devirt_target->dex_file, in IsFastInvoke()
|
D | compiler_driver_test.cc | 72 const DexFile* dex_file = class_path[i]; in MakeAllExecutable() local 73 CHECK(dex_file != NULL); in MakeAllExecutable() 74 MakeDexFileExecutable(class_loader, *dex_file); in MakeAllExecutable() 78 void MakeDexFileExecutable(jobject class_loader, const DexFile& dex_file) { in MakeDexFileExecutable() argument 80 for (size_t i = 0; i < dex_file.NumClassDefs(); i++) { in MakeDexFileExecutable() 81 const DexFile::ClassDef& class_def = dex_file.GetClassDef(i); in MakeDexFileExecutable() 82 const char* descriptor = dex_file.GetClassDescriptor(class_def); in MakeDexFileExecutable()
|
/art/compiler/ |
D | compiler.cc | 36 const art::DexFile& dex_file); 46 const art::DexFile& dex_file) { in TryCompileWithSeaIR() argument 48 bool use_sea = (std::string::npos != PrettyMethod(method_idx, dex_file).find("fibonacci")); in TryCompileWithSeaIR() 57 dex_file); in TryCompileWithSeaIR() 77 const art::DexFile& dex_file); 81 const art::DexFile& dex_file); 105 const DexFile& dex_file) const OVERRIDE { in Compile() 112 dex_file); in Compile() 124 dex_file); in Compile() 129 const DexFile& dex_file) const OVERRIDE { in JniCompile() [all …]
|
D | compilers.cc | 35 const art::DexFile& dex_file); 39 const art::DexFile& dex_file); 58 const DexFile& dex_file) const { in Compile() 65 dex_file); in Compile() 77 dex_file); in Compile() 82 const DexFile& dex_file) const { in JniCompile() 83 return ArtQuickJniCompileMethod(GetCompilerDriver(), access_flags, method_idx, dex_file); in JniCompile() 148 const DexFile& dex_file) const { in Compile() 150 method_idx, class_loader, dex_file); in Compile() 156 class_loader, dex_file); in Compile()
|
D | oat_test.cc | 40 const DexFile* dex_file) in CheckMethod() argument 43 compiler_driver_->GetCompiledMethod(MethodReference(dex_file, in CheckMethod() 148 const DexFile* dex_file = java_lang_dex_file_; in TEST_F() local 149 uint32_t dex_file_checksum = dex_file->GetLocationChecksum(); in TEST_F() 150 const OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(dex_file->GetLocation().c_str(), in TEST_F() 153 CHECK_EQ(dex_file->GetLocationChecksum(), oat_dex_file->GetDexFileLocationChecksum()); in TEST_F() 154 for (size_t i = 0; i < dex_file->NumClassDefs(); i++) { in TEST_F() 155 const DexFile::ClassDef& class_def = dex_file->GetClassDef(i); in TEST_F() 156 const byte* class_data = dex_file->GetClassData(class_def); in TEST_F() 159 ClassDataItemIterator it(*dex_file, class_data); in TEST_F() [all …]
|
D | compilers.h | 38 const DexFile& dex_file) const OVERRIDE; 42 const DexFile& dex_file) const OVERRIDE; 84 const DexFile& dex_file) const OVERRIDE; 92 const DexFile& dex_file) const;
|
/art/runtime/mirror/ |
D | art_method-inl.h | 422 const DexFile* dex_file = method->GetDexFile(); in GetDeclaringClassDescriptor() local 423 return dex_file->GetMethodDeclaringClassDescriptor(dex_file->GetMethodId(dex_method_idx)); in GetDeclaringClassDescriptor() 428 const DexFile* dex_file = method->GetDexFile(); in GetShorty() local 429 return dex_file->GetMethodShorty(dex_file->GetMethodId(method->GetDexMethodIndex()), out_length); in GetShorty() 436 const DexFile* dex_file = method->GetDexFile(); in GetSignature() local 437 return dex_file->GetMethodSignature(dex_file->GetMethodId(dex_method_idx)); in GetSignature() 446 const DexFile* dex_file = method->GetDexFile(); in GetName() local 447 return dex_file->GetMethodName(dex_file->GetMethodId(dex_method_idx)); in GetName() 485 const DexFile* dex_file = method->GetDexFile(); in GetPrototype() local 486 return dex_file->GetMethodPrototype(dex_file->GetMethodId(method->GetDexMethodIndex())); in GetPrototype() [all …]
|
D | dex_cache.cc | 34 void DexCache::Init(const DexFile* dex_file, in Init() argument 40 CHECK(dex_file != nullptr); in Init() 47 SetFieldPtr<false>(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); in Init()
|
/art/compiler/dex/ |
D | frontend.cc | 482 dex_file(nullptr), in CompilationUnit() 530 LOG(INFO) << "TIMINGS " << PrettyMethod(method_idx, *dex_file); in EndTiming() 555 static bool CanCompileMethod(uint32_t method_idx, const DexFile& dex_file, in CanCompileMethod() argument 570 const char* shorty = dex_file.GetMethodShorty(dex_file.GetMethodId(method_idx)); in CanCompileMethod() 604 const char* invoke_method_shorty = dex_file.GetMethodShorty( in CanCompileMethod() 605 dex_file.GetMethodId(invoke_method_idx)); in CanCompileMethod() 608 << PrettyMethod(invoke_method_idx, dex_file) in CanCompileMethod() 623 jobject class_loader, const DexFile& dex_file, in CompileMethod() argument 625 VLOG(compiler) << "Compiling " << PrettyMethod(method_idx, dex_file) << "..."; in CompileMethod() 634 << " in " << PrettyMethod(method_idx, dex_file); in CompileMethod() [all …]
|
/art/compiler/dex/quick/ |
D | dex_file_to_method_inliner_map.cc | 40 DexFileMethodInliner* DexFileToMethodInlinerMap::GetMethodInliner(const DexFile* dex_file) { in GetMethodInliner() argument 44 auto it = inliners_.find(dex_file); in GetMethodInliner() 59 DexFileMethodInliner** inliner = &inliners_[dex_file]; // inserts new entry if not found in GetMethodInliner() 68 locked_inliner->FindIntrinsics(dex_file); in GetMethodInliner()
|
D | dex_file_method_inliner.cc | 575 uint32_t DexFileMethodInliner::FindClassIndex(const DexFile* dex_file, IndexCache* cache, in FindClassIndex() argument 582 const DexFile::StringId* string_id = dex_file->FindStringId(kClassCacheNames[index]); in FindClassIndex() 587 uint32_t string_index = dex_file->GetIndexForStringId(*string_id); in FindClassIndex() 589 const DexFile::TypeId* type_id = dex_file->FindTypeId(string_index); in FindClassIndex() 594 *class_index = dex_file->GetIndexForTypeId(*type_id); in FindClassIndex() 598 uint32_t DexFileMethodInliner::FindNameIndex(const DexFile* dex_file, IndexCache* cache, in FindNameIndex() argument 605 const DexFile::StringId* string_id = dex_file->FindStringId(kNameCacheNames[index]); in FindNameIndex() 610 *name_index = dex_file->GetIndexForStringId(*string_id); in FindNameIndex() 614 uint32_t DexFileMethodInliner::FindProtoIndex(const DexFile* dex_file, IndexCache* cache, in FindProtoIndex() argument 622 uint32_t return_index = FindClassIndex(dex_file, cache, proto_def.return_type); in FindProtoIndex() [all …]
|
/art/runtime/native/ |
D | java_lang_DexCache.cc | 30 const DexFile* dex_file = dex_cache->GetDexFile(); in DexCache_getDexNative() local 31 if (dex_file == NULL) { in DexCache_getDexNative() 34 void* address = const_cast<void*>(reinterpret_cast<const void*>(dex_file->Begin())); in DexCache_getDexNative() 35 jobject byte_buffer = env->NewDirectByteBuffer(address, dex_file->Size()); in DexCache_getDexNative()
|
D | dalvik_system_VMRuntime.cc | 234 const DexFile* dex_file = dex_cache->GetDexFile(); in PreloadDexCachesResolveString() local 235 const char* utf8 = dex_file->StringDataByIdx(string_idx); in PreloadDexCachesResolveString() 251 const DexFile* dex_file = dex_cache->GetDexFile(); in PreloadDexCachesResolveType() local 252 const char* class_name = dex_file->StringByTypeIdx(type_idx); in PreloadDexCachesResolveType() 280 const DexFile* dex_file = dex_cache->GetDexFile(); in PreloadDexCachesResolveField() local 281 const DexFile::FieldId& field_id = dex_file->GetFieldId(field_idx); in PreloadDexCachesResolveField() 308 const DexFile* dex_file = dex_cache->GetDexFile(); in PreloadDexCachesResolveMethod() local 309 const DexFile::MethodId& method_id = dex_file->GetMethodId(method_idx); in PreloadDexCachesResolveMethod() 366 const DexFile* dex_file = boot_class_path[i]; in PreloadDexCachesStatsTotal() local 367 CHECK(dex_file != NULL); in PreloadDexCachesStatsTotal() [all …]
|
/art/compiler/llvm/ |
D | compiler_llvm.cc | 46 const DexFile& dex_file, 210 const art::DexFile& dex_file) { in ArtCompileMethod() argument 215 NULL, class_loader, class_linker, dex_file, code_item, in ArtCompileMethod() 216 class_def_idx, method_idx, access_flags, driver->GetVerifiedMethod(&dex_file, method_idx)); in ArtCompileMethod() 224 const art::DexFile& dex_file) { in ArtLLVMJniCompileMethod() argument 228 nullptr, nullptr, class_linker, dex_file, nullptr, in ArtLLVMJniCompileMethod()
|