/art/compiler/dex/quick/ |
H A D | dex_file_to_method_inliner_map.h | 30 class DexFile; 33 * Map each DexFile to its DexFileMethodInliner. 36 * for a particular DexFile. 43 DexFileMethodInliner* GetMethodInliner(const DexFile* dex_file) NO_THREAD_SAFETY_ANALYSIS; 49 std::map<const DexFile*, DexFileMethodInliner*> inliners_ GUARDED_BY(lock_);
|
/art/runtime/ |
H A D | dex_file_verifier.cc | 33 case DexFile::kDexTypeHeaderItem: return 1 << 0; 34 case DexFile::kDexTypeStringIdItem: return 1 << 1; 35 case DexFile::kDexTypeTypeIdItem: return 1 << 2; 36 case DexFile::kDexTypeProtoIdItem: return 1 << 3; 37 case DexFile::kDexTypeFieldIdItem: return 1 << 4; 38 case DexFile::kDexTypeMethodIdItem: return 1 << 5; 39 case DexFile::kDexTypeClassDefItem: return 1 << 6; 40 case DexFile::kDexTypeMapList: return 1 << 7; 41 case DexFile::kDexTypeTypeList: return 1 << 8; 42 case DexFile [all...] |
H A D | method_reference.h | 24 class DexFile; 26 // A method is uniquely located by its DexFile and the method_ids_ table index into that DexFile 28 MethodReference(const DexFile* file, uint32_t index) : dex_file(file), dex_method_index(index) { 30 const DexFile* dex_file;
|
H A D | method_helper.cc | 29 const DexFile* dex_file = method_->GetDexFile(); 32 const DexFile::MethodId& method_id = dex_file->GetMethodId(dex_method_idx); 43 const DexFile::TypeList* types = method_->GetParameterTypeList(); 44 const DexFile::TypeList* other_types = other->method_->GetParameterTypeList(); 65 uint32_t MethodHelper::FindDexMethodIndexInOtherDexFile(const DexFile& other_dexfile) 68 const DexFile* dexfile = method->GetDexFile(); 72 const DexFile::MethodId& mid = dexfile->GetMethodId(method->GetDexMethodIndex()); 74 const DexFile::StringId* other_descriptor = 77 const DexFile::TypeId* other_type_id = 81 const DexFile [all...] |
H A D | class_reference.h | 25 class DexFile; 27 // A class is uniquely located by its DexFile and the class_defs_ table index into that DexFile 28 typedef std::pair<const DexFile*, uint32_t> ClassReference;
|
H A D | dex_file_test.cc | 34 const DexFile* dex(OpenTestDexFile("Nested")); 135 static const DexFile* OpenDexFileBase64(const char* base64, 157 std::vector<const DexFile*> tmp; 158 bool success = DexFile::Open(location, location, &error_msg, &tmp); 161 const DexFile* dex_file = tmp[0]; 169 std::unique_ptr<const DexFile> raw(OpenDexFileBase64(kRawDex, tmp.GetFilename().c_str())); 172 const DexFile::Header& header = raw->GetHeader(); 200 const DexFile* raw(OpenTestDexFile("Main")); 208 EXPECT_TRUE(DexFile::GetChecksum(GetLibCoreDexFileName().c_str(), &checksum, &error_msg)) 215 const DexFile* ra [all...] |
H A D | dex_file-inl.h | 28 inline int32_t DexFile::GetStringLength(const StringId& string_id) const { 33 inline const char* DexFile::GetStringDataAndUtf16Length(const StringId& string_id, 41 inline const Signature DexFile::GetMethodSignature(const MethodId& method_id) const { 45 inline const DexFile::TryItem* DexFile::GetTryItems(const CodeItem& code_item, uint32_t offset) { 51 static inline bool DexFileStringEquals(const DexFile* df1, uint32_t sidx1, 52 const DexFile* df2, uint32_t sidx2) { 85 const DexFile::TypeId& return_type_id = dex_file_->GetTypeId(proto_id_->return_type_idx_); 86 const DexFile::TypeId& rhs_return_type_id = 94 const DexFile [all...] |
H A D | dex_file.cc | 50 const byte DexFile::kDexMagic[] = { 'd', 'e', 'x', '\n' }; 51 const byte DexFile::kDexMagicVersion[] = { '0', '3', '5', '\0' }; 73 bool DexFile::GetChecksum(const char* filename, uint32_t* checksum, std::string* error_msg) { 82 if (DexFile::IsMultiDexLocation(filename)) { 110 std::unique_ptr<const DexFile> dex_file(DexFile::OpenFile(fd.release(), filename, false, error_msg)); 121 bool DexFile::Open(const char* filename, const char* location, std::string* error_msg, 122 std::vector<const DexFile*>* dex_files) { 130 return DexFile::OpenZip(fd.release(), location, error_msg, dex_files); 133 std::unique_ptr<const DexFile> dex_fil 343 DexFile::DexFile(const byte* base, size_t size, function in class:art::DexFile [all...] |
H A D | dex_method_iterator.h | 28 explicit DexMethodIterator(const std::vector<const DexFile*>& dex_files) 49 // End of this DexFile, advance and retry. 106 const DexFile& GetDexFile() { 128 const DexFile& GetDexFileInternal() const { 130 const DexFile* dex_file = dex_files_[dex_file_index_]; 135 const std::vector<const DexFile*>& dex_files_; 141 const DexFile::ClassDef* class_def_;
|
H A D | dex_method_iterator_test.cc | 31 std::vector<const DexFile*> dex_files; 38 const DexFile& dex_file = it.GetDexFile();
|
H A D | method_helper-inl.h | 30 const DexFile* dex_file = method_->GetDexFile(); 31 const DexFile::MethodId& mid = dex_file->GetMethodId(GetMethod()->GetDexMethodIndex()); 33 const DexFile::MethodId& other_mid = 37 const DexFile* other_dex_file = other->method_->GetDexFile(); 38 const DexFile::MethodId& other_mid = 58 const DexFile* dex_file = method->GetDexFile(); 59 const DexFile::MethodId& method_id = dex_file->GetMethodId(method->GetDexMethodIndex()); 60 const DexFile::ProtoId& proto_id = dex_file->GetMethodPrototype(method_id);
|
H A D | common_runtime_test.h | 33 class DexFile; 84 const DexFile* LoadExpectSingleDexFile(const char* location); 103 std::vector<const DexFile*> OpenTestDexFiles(const char* name) 106 const DexFile* OpenTestDexFile(const char* name) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); 112 const DexFile* java_lang_dex_file_; // owned by runtime_ 113 std::vector<const DexFile*> boot_class_path_; 120 std::vector<const DexFile*> opened_dex_files_;
|
H A D | dex_file_verifier_test.cc | 104 static const DexFile* OpenDexFileBase64(const char* base64, const char* location, 125 std::vector<const DexFile*> tmp; 126 bool success = DexFile::Open(location, location, error_msg, &tmp); 129 const DexFile* dex_file = tmp[0]; 154 std::unique_ptr<const DexFile> raw(OpenDexFileBase64(kGoodTestDex, tmp.GetFilename().c_str(), 160 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(dex_file); 163 const uint32_t non_sum = sizeof(DexFile::Header::magic_) + sizeof(DexFile::Header::checksum_); 169 static const DexFile* FixChecksumAndOpe [all...] |
H A D | dex_file_verifier.h | 29 static bool Verify(const DexFile* dex_file, const byte* begin, size_t size, 37 DexFileVerifier(const DexFile* dex_file, const byte* begin, size_t size, const char* location) 58 bool CheckAndGetHandlerOffsets(const DexFile::CodeItem* code_item, 108 const DexFile::FieldId* CheckLoadFieldId(uint32_t idx, const char* error_fmt); 109 const DexFile::MethodId* CheckLoadMethodId(uint32_t idx, const char* error_fmt); 114 const DexFile* const dex_file_; 118 const DexFile::Header* const header_; 127 std::unordered_set<decltype(DexFile::ClassDef::class_idx_)> defined_classes_;
|
H A D | field_helper.cc | 33 const DexFile* dex_file = field_->GetDexFile(); 34 const DexFile::FieldId& field_id = dex_file->GetFieldId(field_index);
|
/art/compiler/ |
H A D | compilers.h | 32 CompiledMethod* Compile(const DexFile::CodeItem* code_item, 38 const DexFile& dex_file) const OVERRIDE; 42 const DexFile& dex_file) const OVERRIDE; 49 const std::vector<const art::DexFile*>& dex_files, 78 CompiledMethod* Compile(const DexFile::CodeItem* code_item, 84 const DexFile& dex_file) const OVERRIDE; 86 CompiledMethod* TryCompile(const DexFile::CodeItem* code_item, 92 const DexFile& dex_file) const;
|
H A D | compiler.h | 50 virtual CompiledMethod* Compile(const DexFile::CodeItem* code_item, 56 const DexFile& dex_file) const = 0; 58 static CompiledMethod* TryCompileWithSeaIR(const art::DexFile::CodeItem* code_item, 64 const art::DexFile& dex_file); 68 const DexFile& dex_file) const = 0; 75 const std::vector<const art::DexFile*>& dex_files,
|
H A D | compiler.cc | 30 extern "C" art::CompiledMethod* SeaIrCompileMethod(const art::DexFile::CodeItem* code_item, 36 const art::DexFile& dex_file); 40 CompiledMethod* Compiler::TryCompileWithSeaIR(const art::DexFile::CodeItem* code_item, 46 const art::DexFile& dex_file) { 71 const art::DexFile::CodeItem* code_item, 77 const art::DexFile& dex_file); 81 const art::DexFile& dex_file); 99 CompiledMethod* Compile(const DexFile::CodeItem* code_item, 105 const DexFile& dex_file) const OVERRIDE { 129 const DexFile [all...] |
H A D | compilers.cc | 29 const art::DexFile::CodeItem* code_item, 35 const art::DexFile& dex_file); 39 const art::DexFile& dex_file); 52 CompiledMethod* QuickCompiler::Compile(const DexFile::CodeItem* code_item, 58 const DexFile& dex_file) const { 82 const DexFile& dex_file) const { 94 const std::vector<const art::DexFile*>& dex_files, 142 CompiledMethod* OptimizingCompiler::Compile(const DexFile::CodeItem* code_item, 148 const DexFile& dex_file) const {
|
H A D | elf_writer.h | 32 class DexFile; 55 const std::vector<const DexFile*>& dex_files,
|
/art/compiler/driver/ |
H A D | dex_compilation_unit.h | 39 const DexFile& dex_file, const DexFile::CodeItem* code_item, 55 const DexFile* GetDexFile() const { 67 const DexFile::CodeItem* GetCodeItem() const { 72 const DexFile::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); 77 const DexFile::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); 118 const DexFile* const dex_file_; 120 const DexFile::CodeItem* const code_item_;
|
H A D | compiler_driver.h | 118 void CompileAll(jobject class_loader, const std::vector<const DexFile*>& dex_files, 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, 246 mirror::ArtField* resolved_field, const DexFile** declaring_dex_fil [all...] |
/art/runtime/entrypoints/interpreter/ |
H A D | interpreter_entrypoints.h | 37 const DexFile::CodeItem* code_item, 40 const DexFile::CodeItem* code_item,
|
/art/compiler/sea_ir/ |
H A D | frontend.cc | 42 const DexFile::CodeItem* code_item, 45 jobject class_loader, const DexFile& dex_file, 66 const DexFile::CodeItem* code_item, 72 const DexFile& dex_file, 80 const art::DexFile::CodeItem* code_item, 83 const art::DexFile& dex_file) {
|
/art/runtime/verifier/ |
H A D | method_verifier_test.cc | 43 void VerifyDexFile(const DexFile* dex) 49 const DexFile::ClassDef& class_def = dex->GetClassDef(i);
|