Home
last modified time | relevance | path

Searched refs:DexFile (Results 1 – 25 of 102) sorted by relevance

12345

/art/runtime/
Ddex_file_verifier.cc32 case DexFile::kDexTypeHeaderItem: return 1 << 0; in MapTypeToBitMask()
33 case DexFile::kDexTypeStringIdItem: return 1 << 1; in MapTypeToBitMask()
34 case DexFile::kDexTypeTypeIdItem: return 1 << 2; in MapTypeToBitMask()
35 case DexFile::kDexTypeProtoIdItem: return 1 << 3; in MapTypeToBitMask()
36 case DexFile::kDexTypeFieldIdItem: return 1 << 4; in MapTypeToBitMask()
37 case DexFile::kDexTypeMethodIdItem: return 1 << 5; in MapTypeToBitMask()
38 case DexFile::kDexTypeClassDefItem: return 1 << 6; in MapTypeToBitMask()
39 case DexFile::kDexTypeMapList: return 1 << 7; in MapTypeToBitMask()
40 case DexFile::kDexTypeTypeList: return 1 << 8; in MapTypeToBitMask()
41 case DexFile::kDexTypeAnnotationSetRefList: return 1 << 9; in MapTypeToBitMask()
[all …]
Ddex_file_test.cc28 const DexFile* dex(OpenTestDexFile("Nested")); in TEST_F()
58 static const DexFile* OpenDexFileBase64(const char* base64, in OpenDexFileBase64()
76 const DexFile* dex_file = DexFile::Open(location, location); in OpenDexFileBase64()
85 UniquePtr<const DexFile> raw(OpenDexFileBase64(kRawDex, tmp.GetFilename())); in TEST_F()
88 const DexFile::Header& header = raw->GetHeader(); in TEST_F()
116 const DexFile* raw(OpenTestDexFile("Main")); in TEST_F()
123 EXPECT_TRUE(DexFile::GetChecksum(GetLibCoreDexFileName(), &checksum)); in TEST_F()
129 const DexFile* raw(OpenTestDexFile("Nested")); in TEST_F()
133 const DexFile::ClassDef& c0 = raw->GetClassDef(0); in TEST_F()
136 const DexFile::ClassDef& c1 = raw->GetClassDef(1); in TEST_F()
[all …]
Ddex_file.cc48 const byte DexFile::kDexMagic[] = { 'd', 'e', 'x', '\n' };
49 const byte DexFile::kDexMagicVersion[] = { '0', '3', '5', '\0' };
51 DexFile::ClassPathEntry DexFile::FindInClassPath(const char* descriptor, in FindInClassPath()
54 const DexFile* dex_file = class_path[i]; in FindInClassPath()
55 const DexFile::ClassDef* dex_class_def = dex_file->FindClassDef(descriptor); in FindInClassPath()
61 return ClassPathEntry(reinterpret_cast<const DexFile*>(NULL), in FindInClassPath()
62 reinterpret_cast<const DexFile::ClassDef*>(NULL)); in FindInClassPath()
84 bool DexFile::GetChecksum(const std::string& filename, uint32_t* checksum) { in GetChecksum()
105 UniquePtr<const DexFile> dex_file(DexFile::OpenFile(fd, filename, false)); in GetChecksum()
116 const DexFile* DexFile::Open(const std::string& filename, in Open()
[all …]
Ddex_method_iterator_test.cc27 std::vector<const DexFile*> dex_files; in TEST_F()
28 dex_files.push_back(DexFile::Open(GetDexFileName("core"), GetDexFileName("core"))); in TEST_F()
29 dex_files.push_back(DexFile::Open(GetDexFileName("conscrypt"), GetDexFileName("conscrypt"))); in TEST_F()
30 dex_files.push_back(DexFile::Open(GetDexFileName("okhttp"), GetDexFileName("okhttp"))); in TEST_F()
31 dex_files.push_back(DexFile::Open(GetDexFileName("core-junit"), GetDexFileName("core-junit"))); in TEST_F()
32 …dex_files.push_back(DexFile::Open(GetDexFileName("bouncycastle"), GetDexFileName("bouncycastle"))); in TEST_F()
35 const DexFile& dex_file = it.GetDexFile(); in TEST_F()
Dobject_utils.h108 const DexFile& dex_file = GetDexFile(); in GetDescriptor()
109 const DexFile::TypeId& type_id = dex_file.GetTypeId(GetClassDef()->class_idx_); in GetDescriptor()
125 const DexFile::ClassDef* GetClassDef() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in GetClassDef()
128 if (class_def_idx == DexFile::kDexNoIndex16) { in GetClassDef()
143 const DexFile::TypeList* interfaces = GetInterfaceTypeList(); in NumDirectInterfaces()
186 const DexFile& dex_file = GetDexFile(); in GetSourceFile()
187 const DexFile::ClassDef* dex_class_def = GetClassDef(); in GetSourceFile()
202 const DexFile& GetDexFile() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in GetDexFile()
220 const DexFile::TypeList* GetInterfaceTypeList() in GetInterfaceTypeList()
222 const DexFile::TypeList* result = interface_type_list_; in GetInterfaceTypeList()
[all …]
Dclass_linker.h55 static ClassLinker* CreateFromCompiler(const std::vector<const DexFile*>& boot_class_path,
77 const DexFile& dex_file, const DexFile::ClassDef& dex_class_def)
119 mirror::String* ResolveString(const DexFile& dex_file, uint32_t string_idx,
126 mirror::Class* ResolveType(const DexFile& dex_file, uint16_t type_idx, in ResolveType()
148 mirror::Class* ResolveType(const DexFile& dex_file,
159 mirror::ArtMethod* ResolveMethod(const DexFile& dex_file,
180 mirror::ArtField* ResolveField(const DexFile& dex_file,
191 mirror::ArtField* ResolveFieldJLS(const DexFile& dex_file,
211 void RegisterDexFile(const DexFile& dex_file)
214 void RegisterDexFile(const DexFile& dex_file, SirtRef<mirror::DexCache>& dex_cache)
[all …]
Dmethod_reference.h22 class DexFile; variable
25 typedef std::pair<const DexFile*, uint32_t> ClassReference;
29 MethodReference(const DexFile* file, uint32_t index) : dex_file(file), dex_method_index(index) { in MethodReference()
31 const DexFile* dex_file;
Ddex_file-inl.h27 inline int32_t DexFile::GetStringLength(const StringId& string_id) const { in GetStringLength()
32 inline const char* DexFile::GetStringDataAndLength(const StringId& string_id, uint32_t* length) con… in GetStringDataAndLength()
39 inline const DexFile::TryItem* DexFile::GetTryItems(const CodeItem& code_item, uint32_t offset) { in GetTryItems()
Ddex_file.h46 class DexFile {
338 typedef std::pair<const DexFile*, const DexFile::ClassDef*> ClassPathEntry;
339 typedef std::vector<const DexFile*> ClassPath;
353 static const DexFile* Open(const std::string& filename,
357 static const DexFile* Open(const uint8_t* base, size_t size, in Open()
364 static const DexFile* Open(const ZipArchive& zip_archive, const std::string& location);
367 virtual ~DexFile();
504 const FieldId* FindFieldId(const DexFile::TypeId& declaring_klass,
505 const DexFile::StringId& name,
506 const DexFile::TypeId& type) const;
[all …]
Ddex_method_iterator.h28 explicit DexMethodIterator(const std::vector<const DexFile*>& dex_files) in DexMethodIterator()
106 const DexFile& GetDexFile() { in GetDexFile()
128 const DexFile& GetDexFileInternal() const { in GetDexFileInternal()
130 const DexFile* dex_file = dex_files_[dex_file_index_]; in GetDexFileInternal()
135 const std::vector<const DexFile*>& dex_files_;
141 const DexFile::ClassDef* class_def_;
Ddex_file_verifier.h27 static bool Verify(const DexFile* dex_file, const byte* begin, size_t size);
30 DexFileVerifier(const DexFile* dex_file, const byte* begin, size_t size) in DexFileVerifier()
45 bool CheckAndGetHandlerOffsets(const DexFile::CodeItem* code_item,
85 const DexFile* dex_file_;
88 const DexFile::Header* header_;
Dclass_reference.h24 class DexFile; variable
27 typedef std::pair<const DexFile*, uint32_t> ClassReference;
/art/compiler/driver/
Ddex_compilation_unit.h38 const DexFile& dex_file, const DexFile::CodeItem* code_item,
53 const DexFile* GetDexFile() const { in GetDexFile()
65 const DexFile::CodeItem* GetCodeItem() const { in GetCodeItem()
70 const DexFile::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in GetShorty()
75 const DexFile::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in GetShorty()
108 const DexFile* const dex_file_;
110 const DexFile::CodeItem* const code_item_;
Dcompiler_driver.h99 void CompileAll(jobject class_loader, const std::vector<const DexFile*>& dex_files,
148 void AddRequiresConstructorBarrier(Thread* self, const DexFile* dex_file,
150 bool RequiresConstructorBarrier(Thread* self, const DexFile* dex_file, uint16_t class_def_index);
154 bool CanAssumeTypeIsPresentInDexCache(const DexFile& dex_file, uint32_t type_idx)
157 bool CanAssumeStringIsPresentInDexCache(const DexFile& dex_file, uint32_t string_idx)
161 bool CanAccessTypeWithoutChecks(uint32_t referrer_idx, const DexFile& dex_file,
168 bool CanAccessInstantiableTypeWithoutChecks(uint32_t referrer_idx, const DexFile& dex_file,
194 void AddCodePatch(const DexFile* dex_file,
202 void AddMethodPatch(const DexFile* dex_file,
227 const std::vector<const DexFile*>& dex_files,
[all …]
Dcompiler_driver.cc293 const art::DexFile::CodeItem* code_item,
299 const art::DexFile& dex_file);
301 const art::DexFile::CodeItem* code_item,
307 const art::DexFile& dex_file);
310 const art::DexFile::CodeItem* code_item,
316 const art::DexFile& dex_file);
319 const art::DexFile::CodeItem* code_item,
325 const art::DexFile& dex_file);
329 const art::DexFile& dex_file);
333 const art::DexFile& dex_file);
[all …]
/art/runtime/native/
Ddalvik_system_DexFile.cc100 if (!DexFile::GetChecksum(dex_location, &dex_location_checksum)) { in DexFile_openDexFileNative()
109 const DexFile* dex_file; in DexFile_openDexFileNative()
126 static const DexFile* toDexFile(int dex_file_address) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in toDexFile()
127 …const DexFile* dex_file = reinterpret_cast<const DexFile*>(static_cast<uintptr_t>(dex_file_address… in toDexFile()
135 const DexFile* dex_file; in DexFile_closeDexFile()
152 const DexFile* dex_file = toDexFile(cookie); in DexFile_defineClassNative()
163 const DexFile::ClassDef* dex_class_def = dex_file->FindClassDef(descriptor.c_str()); in DexFile_defineClassNative()
178 const DexFile* dex_file; in DexFile_getClassNameList()
189 const DexFile::ClassDef& class_def = dex_file->GetClassDef(i); in DexFile_getClassNameList()
218 const std::vector<const DexFile*>& boot_class_path = class_linker->GetBootClassPath(); in DexFile_isDexOptNeeded()
[all …]
/art/compiler/
Doat_writer.h65 OatWriter(const std::vector<const DexFile*>& dex_files,
94 const DexFile& dex_file)
98 const DexFile& dex_file,
99 const DexFile::ClassDef& class_def)
103 uint32_t method_idx, const DexFile*)
110 size_t& oat_class_index, const DexFile& dex_file);
112 size_t oat_class_index, const DexFile& dex_file,
113 const DexFile::ClassDef& class_def);
116 uint32_t method_idx, const DexFile& dex_file);
118 void ReportWriteFailure(const char* what, uint32_t method_idx, const DexFile& dex_file,
[all …]
Delf_writer_mclinker.h44 const std::vector<const DexFile*>& dex_files,
52 const std::vector<const DexFile*>& dex_files,
63 void AddMethodInputs(const std::vector<const DexFile*>& dex_files);
68 void FixupOatMethodOffsets(const std::vector<const DexFile*>& dex_files)
/art/compiler/sea_ir/
Dfrontend.cc42 const DexFile::CodeItem* code_item, in CompileMethodWithSeaIr()
45 jobject class_loader, const DexFile& dex_file in CompileMethodWithSeaIr()
69 const DexFile::CodeItem* code_item, in SeaIrCompileOneMethod()
75 const DexFile& dex_file, in SeaIrCompileOneMethod()
87 const art::DexFile::CodeItem* code_item, in SeaIrCompileMethod()
90 const art::DexFile& dex_file) { in SeaIrCompileMethod()
/art/compiler/sea_ir/ir/
Dsea.h262 static SeaGraph* GetGraph(const art::DexFile&);
265 const art::DexFile::CodeItem* code_item, uint16_t class_def_idx,
266 uint32_t method_idx, uint32_t method_access_flags, const art::DexFile& dex_file);
280 const art::DexFile* GetDexFile() const { in GetDexFile()
296 explicit SeaGraph(const art::DexFile& df);
313 void BuildMethodSeaGraph(const art::DexFile::CodeItem* code_item,
314 const art::DexFile& dex_file, uint16_t class_def_idx,
342 CodeGenData* GenerateLLVM(const std::string& function_name, const art::DexFile& dex_file);
344 void InsertSignatureNodes(const art::DexFile::CodeItem* code_item, Region* r);
349 const art::DexFile& dex_file_;
[all …]
/art/runtime/verifier/
Dmethod_verifier.h151 static FailureKind VerifyClass(const DexFile* dex_file, mirror::DexCache* dex_cache,
153 const DexFile::ClassDef* class_def,
157 static void VerifyMethodAndDump(std::ostream& os, uint32_t method_idx, const DexFile* dex_file,
159 const DexFile::ClassDef* class_def,
160 const DexFile::CodeItem* code_item,
226 MethodVerifier(const DexFile* dex_file, mirror::DexCache* dex_cache,
227 mirror::ClassLoader* class_loader, const DexFile::ClassDef* class_def,
228 const DexFile::CodeItem* code_item,
265 static FailureKind VerifyMethod(uint32_t method_idx, const DexFile* dex_file,
268 const DexFile::ClassDef* class_def_idx,
[all …]
/art/runtime/interpreter/
Dinterpreter.h46 const DexFile::CodeItem* code_item,
51 const DexFile::CodeItem* code_item,
58 const DexFile::CodeItem* code_item,
/art/runtime/mirror/
Ddex_cache.h29 class DexFile; variable
45 void Init(const DexFile* dex_file,
158 const DexFile* GetDexFile() const { in GetDexFile()
159 return GetFieldPtr<const DexFile*>(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), false); in GetDexFile()
162 void SetDexFile(const DexFile* dex_file) { in SetDexFile()
/art/runtime/entrypoints/portable/
Dportable_throw_entrypoints.cc83 const DexFile::CodeItem* code_item = mh.GetCodeItem(); in art_portable_find_catch_block_from_code()
85 const DexFile::TryItem* try_item = DexFile::GetTryItems(*code_item, ti_offset); in art_portable_find_catch_block_from_code()
94 if (iter_type_idx == DexFile::kDexNoIndex16) { in art_portable_find_catch_block_from_code()
/art/runtime/entrypoints/interpreter/
Dinterpreter_entrypoints.h38 const DexFile::CodeItem* code_item,
41 const DexFile::CodeItem* code_item,

12345