Home
last modified time | relevance | path

Searched refs:dex_file (Results 1 – 25 of 107) sorted by relevance

12345

/art/compiler/sea_ir/
Dfrontend.cc45 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/
Dmethod_reference.h28 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()
Dmethod_helper-inl.h30 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()
Ddex_file_verifier_test.cc129 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 …]
Dclass_linker.cc351 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 …]
Dclass_linker.h101 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 …]
Dclass_linker-inl.h66 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()
Ddex_file.cc110 …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/
Dcompiler_driver.cc330 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 …]
Dcompiler_driver.h193 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 …]
Ddex_compilation_unit.cc30 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()
Dcompiler_driver-inl.h127 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()
Dcompiler_driver_test.cc72 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/
Dcompiler.cc36 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 …]
Dcompilers.cc35 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()
Doat_test.cc40 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 …]
Dcompilers.h38 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/
Dart_method-inl.h422 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 …]
Ddex_cache.cc34 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/
Dfrontend.cc482 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/
Ddex_file_to_method_inliner_map.cc40 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()
Ddex_file_method_inliner.cc575 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/
Djava_lang_DexCache.cc30 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()
Ddalvik_system_VMRuntime.cc234 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/
Dcompiler_llvm.cc46 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()

12345