/art/tools/veridex/ |
H A D | resolver.h | 20 #include "dex/dex_file.h" 29 * Map from the start of a dex file (ie DexFile::Begin()), to 46 // Run on the defined classes of that dex file and populate our 51 VeriClass* GetVeriClass(dex::TypeIndex index); 77 // The dex file this resolver is associated to.
|
H A D | resolver.cc | 19 #include "dex/dex_file-inl.h" 20 #include "dex/primitive.h" 83 VeriClass* VeridexResolver::GetVeriClass(dex::TypeIndex index) { 88 // Class is defined in another dex file. Lookup in the global cache. 126 // Check the class def pointer is indeed in the mapped dex file range. 181 dex::TypeIndex idx = interfaces->GetTypeItem(i).type_idx_; 228 dex::TypeIndex idx = interfaces->GetTypeItem(i).type_idx_; 283 // Method is defined in another dex file. 301 // Field is defined in another dex file. 318 if (GetVeriClass(dex [all...] |
/art/dex2oat/ |
H A D | dex2oat_test.cc | 33 #include "dex/art_dex_file_loader.h" 34 #include "dex/base64_test_util.h" 35 #include "dex/bytecode_utils.h" 36 #include "dex/code_item_accessors-inl.h" 37 #include "dex/dex_file-inl.h" 38 #include "dex/dex_file_loader.h" 51 static const char* kDisableCompactDex = "--compact-dex-level=none"; 74 // Add dex file args. 76 args.push_back("--dex-file=" + dex_location); 363 RunTest(false /* use_fd */, false /* expect_use */, { "--swap-dex [all...] |
/art/libdexfile/dex/ |
H A D | dex_file-inl.h | 48 inline const char* DexFile::StringDataAndUtf16LengthByIdx(dex::StringIndex idx, 58 inline const char* DexFile::StringDataByIdx(dex::StringIndex idx) const { 63 inline const char* DexFile::StringByTypeIdx(dex::TypeIndex idx, uint32_t* unicode_length) const { 71 inline const char* DexFile::StringByTypeIdx(dex::TypeIndex idx) const { 141 static inline bool DexFileStringEquals(const DexFile* df1, dex::StringIndex sidx1, 142 const DexFile* df2, dex::StringIndex sidx2) { 318 uint32_t signature_idx = dex::kDexNoIndex; 409 return StringDataByIdx(dex::StringIndex(idx)); 412 return StringByTypeIdx(dex::TypeIndex( 493 return StringDataByIdx(dex [all...] |
H A D | dex_file_verifier.cc | 102 const char* DexFileVerifier::CheckLoadStringByIdx(dex::StringIndex idx, const char* error_string) { 169 const char* DexFileVerifier::CheckLoadStringByTypeIdx(dex::TypeIndex type_idx, 637 dex::TypeIndex class_type_index, 645 dex::TypeIndex my_class_index = 675 dex::TypeIndex class_type_index, 686 dex::TypeIndex my_class_index = 947 dex::TypeIndex* class_type_index, 994 dex::TypeIndex* class_type_index, 1115 dex::TypeIndex* class_type_index, 1118 // These calls use the raw access flags to check whether the whole dex fiel [all...] |
/art/runtime/ |
H A D | art_method-inl.h | 27 #include "dex/code_item_accessors-inl.h" 28 #include "dex/dex_file-inl.h" 29 #include "dex/dex_file_annotations.h" 30 #include "dex/dex_file_types.h" 31 #include "dex/invoke_type.h" 32 #include "dex/primitive.h" 107 inline ObjPtr<mirror::Class> ArtMethod::LookupResolvedClassFromTypeIndex(dex::TypeIndex type_idx) { 115 inline ObjPtr<mirror::Class> ArtMethod::ResolveClassFromTypeIndex(dex::TypeIndex type_idx) { 176 // It is safe to avoid the read barrier here since the dex file is constant, so if we read the 177 // from-space dex fil [all...] |
H A D | class_linker-inl.h | 64 inline ObjPtr<mirror::Class> ClassLinker::ResolveType(dex::TypeIndex type_idx, 87 inline ObjPtr<mirror::Class> ClassLinker::ResolveType(dex::TypeIndex type_idx, 107 inline ObjPtr<mirror::Class> ClassLinker::ResolveType(dex::TypeIndex type_idx, 119 inline ObjPtr<mirror::Class> ClassLinker::LookupResolvedType(dex::TypeIndex type_idx, 131 inline ObjPtr<mirror::Class> ClassLinker::LookupResolvedType(dex::TypeIndex type_idx, 144 dex::TypeIndex type_idx, 163 // We have to check whether the method id really belongs to an interface (dex static bytecode 183 // a non-interface class (dex static bytecode constraint A24, A25).
|
H A D | art_field.cc | 22 #include "dex/descriptors_names.h" 56 dex::StringIndex string_idx,
|
/art/runtime/jit/ |
H A D | profile_compilation_info.h | 28 #include "dex/dex_cache_resolved_classes.h" 29 #include "dex/dex_file.h" 30 #include "dex/dex_file_types.h" 31 #include "dex/method_reference.h" 32 #include "dex/type_reference.h" 81 // A dex location together with its checksum. 105 // The owning dex file is encoded as the index (dex_profile_index) it has in the 113 // data from multiple splits. This means that a profile may contain a classes2.dex from split-A 116 ClassReference(uint8_t dex_profile_idx, const dex::TypeIndex type_idx) : 128 uint8_t dex_profile_index; // the index of the owning dex i [all...] |
/art/dexlayout/ |
H A D | dexlayout_test.cc | 27 #include "dex/art_dex_file_loader.h" 28 #include "dex/base64_test_util.h" 29 #include "dex/code_item_accessors-inl.h" 30 #include "dex/dex_file-inl.h" 31 #include "dex/dex_file_loader.h" 51 // Constructed by building a dex file with try/catch blocks and hex editing. 71 // Constructed by building a dex file with try/catch blocks and hex editing. 91 // Constructed by building a dex file with try/catch blocks and hex editing. 137 // Constructed by building a dex file with annotations and hex editing. 159 // Constructing by building a dex fil [all...] |
/art/runtime/mirror/ |
H A D | dex_cache-inl.h | 29 #include "dex/dex_file.h" 57 inline uint32_t DexCache::StringSlotIndex(dex::StringIndex string_idx) { 64 inline String* DexCache::GetResolvedString(dex::StringIndex string_idx) { 69 inline void DexCache::SetResolvedString(dex::StringIndex string_idx, ObjPtr<String> resolved) { 82 inline void DexCache::ClearString(dex::StringIndex string_idx) { 93 inline uint32_t DexCache::TypeSlotIndex(dex::TypeIndex type_idx) { 100 inline Class* DexCache::GetResolvedType(dex::TypeIndex type_idx) { 107 inline void DexCache::SetResolvedType(dex::TypeIndex type_idx, ObjPtr<Class> resolved) { 119 inline void DexCache::ClearResolvedType(dex::TypeIndex type_idx) {
|
H A D | dex_cache.h | 23 #include "dex/dex_file_types.h" 49 // We maintain the invariant that once a dex cache entry is populated, 60 // that a valid object is stored at that index for a dex section id of 0. 145 // Size of type dex cache. Needs to be a power of 2 for entrypoint assumptions to hold. 148 "Type dex cache size is not a power of 2."); 150 // Size of string dex cache. Needs to be a power of 2 for entrypoint assumptions to hold. 153 "String dex cache size is not a power of 2."); 155 // Size of field dex cache. Needs to be a power of 2 for entrypoint assumptions to hold. 158 "Field dex cache size is not a power of 2."); 160 // Size of method dex cach [all...] |
/art/build/ |
H A D | Android.oat.mk | 45 # NB depending on HOST_CORE_DEX_LOCATIONS so we are sure to have the dex files in frameworks for 107 --image-classes=$$(PRELOADED_CLASSES) $$(addprefix --dex-file=,$$(HOST_CORE_DEX_FILES)) \ 108 $$(addprefix --dex-location=,$$(HOST_CORE_DEX_LOCATIONS)) --oat-file=$$(PRIVATE_CORE_OAT_NAME) \ 210 --image-classes=$$(PRELOADED_CLASSES) $$(addprefix --dex-file=,$$(TARGET_CORE_DEX_FILES)) \ 211 $$(addprefix --dex-location=,$$(TARGET_CORE_DEX_LOCATIONS)) --oat-file=$$(PRIVATE_CORE_OAT_NAME) \
|
/art/compiler/dex/ |
H A D | verified_method.cc | 24 #include "dex/code_item_accessors-inl.h" 25 #include "dex/dex_file.h" 26 #include "dex/dex_instruction-inl.h" 82 method_verifier->ResolveCheckedClass(dex::TypeIndex(inst.VRegB_21c()));
|
/art/compiler/linker/ |
H A D | linker_patch.h | 26 #include "dex/method_reference.h" 206 dex::TypeIndex TargetTypeIndex() const { 210 return dex::TypeIndex(type_idx_); 220 dex::StringIndex TargetStringIndex() const { 224 return dex::StringIndex(string_idx_);
|
/art/runtime/interpreter/mterp/arm/ |
H A D | entry.S | 49 /* Remember the dex instruction pointer */ 58 add rPC, r1, r0, lsl #1 @ Create direct pointer to 1st dex opcode
|
/art/runtime/utils/ |
H A D | dex_cache_arrays_layout.h | 20 #include "dex/dex_file.h" 21 #include "dex/dex_file_types.h" 44 // Construct a layout for a particular dex file header. 49 // Construct a layout for a particular dex file. 68 size_t TypeOffset(dex::TypeIndex type_idx) const;
|
/art/compiler/ |
H A D | verifier_deps_test.cc | 24 #include "dex/dex_file-inl.h" 25 #include "dex/dex_file_types.h" 26 #include "dex/verification_results.h" 27 #include "dex/verified_method.h" 231 const std::set<dex::TypeIndex>& unverified_classes = deps.GetUnverifiedClasses(*dex_file); 255 dex::TypeIndex index = dex_file.GetIndexForTypeId(*type_id); 257 for (dex::TypeIndex entry : dex_dep.second->unverified_classes_) { 463 dex::StringIndex id_Main1 = verifier_deps_->GetIdFromString(*primary_dex_file_, "LMain;"); 467 dex::StringIndex id_Main2 = verifier_deps_->GetIdFromString(*primary_dex_file_, "LMain;"); 471 dex [all...] |
/art/profman/ |
H A D | profman.cc | 44 #include "dex/art_dex_file_loader.h" 45 #include "dex/bytecode_utils.h" 46 #include "dex/code_item_accessors-inl.h" 47 #include "dex/dex_file.h" 48 #include "dex/dex_file_loader.h" 49 #include "dex/dex_file_types.h" 50 #include "dex/type_reference.h" 124 UsageError(" --generate-test-profile-num-dex=<number>: number of dex files that should be"); 136 UsageError(" --dex [all...] |
/art/compiler/optimizing/ |
H A D | scheduler_test.cc | 102 dex::TypeIndex(0), 209 dex::TypeIndex(0), 213 dex::TypeIndex(1), 217 dex::TypeIndex(1), 221 dex::TypeIndex(0),
|
H A D | stack_map_stream.cc | 21 #include "dex/dex_file_types.h" 42 current_entry_.dex_method_index = dex::kDexNoIndex; 59 if (dex_pc != dex::kDexNoIndex && (dex_pc_max_ == dex::kDexNoIndex || dex_pc_max_ < dex_pc)) { 238 if (entry.dex_method_index != dex::kDexNoIndex) { 252 uint32_t dex_pc_max = dex::kDexNoIndex; 268 if (inline_entry.dex_pc != dex::kDexNoIndex && 269 (dex_pc_max == dex::kDexNoIndex || dex_pc_max < inline_entry.dex_pc)) { 284 // No dex register map needed. 374 if (entry.dex_method_index != dex [all...] |
H A D | load_store_analysis_test.cc | 48 graph_->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); 50 graph_->GetDexFile(), dex::TypeIndex(1), 1, DataType::Type::kInt32); 121 dex::TypeIndex(0), 191 graph_->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); 193 graph_->GetDexFile(), dex::TypeIndex(1), 1, DataType::Type::kInt32); 281 graph_->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); 283 graph_->GetDexFile(), dex::TypeIndex(1), 1, DataType::Type::kInt32); 486 graph_->GetDexFile(), dex::TypeIndex(0), 0, DataType::Type::kReference); 488 graph_->GetDexFile(), dex::TypeIndex(1), 1, DataType::Type::kInt32); 608 dex [all...] |
H A D | code_generator_mips.h | 21 #include "dex/dex_file_types.h" 22 #include "dex/string_reference.h" 23 #include "dex/type_reference.h" 623 dex::TypeIndex type_index, 626 dex::TypeIndex type_index, 629 dex::StringIndex string_index, 632 dex::StringIndex string_index, 660 dex::StringIndex string_index, 663 dex::TypeIndex type_index,
|
/art/runtime/verifier/ |
H A D | method_verifier.h | 28 #include "dex/code_item_accessors.h" 29 #include "dex/dex_file.h" 30 #include "dex/dex_file_types.h" 31 #include "dex/method_reference.h" 67 // A mapping from a dex pc to the register line statuses as they are immediately prior to the 156 // The dex PC of the monitor-enter instruction. 163 // Fills 'monitor_enter_dex_pcs' with the dex pcs of the monitor-enter instructions corresponding 183 // Describe VRegs at the given dex pc. 210 const RegType& ResolveCheckedClass(dex::TypeIndex class_idx) 420 bool CheckNewInstance(dex [all...] |
/art/compiler/debug/ |
H A D | elf_debug_info_writer.h | 30 #include "dex/code_item_accessors-inl.h" 31 #include "dex/dex_file-inl.h" 32 #include "dex/dex_file.h" 61 names.push_back(mi->dex_file->StringDataByIdx(dex::StringIndex(id))); 165 const DexFile* dex = mi->dex_file; local 166 CodeItemDebugInfoAccessor accessor(*dex, mi->code_item, mi->dex_method_index); 167 const DexFile::MethodId& dex_method = dex->GetMethodId(mi->dex_method_index); 168 const DexFile::ProtoId& dex_proto = dex->GetMethodPrototype(dex_method); 169 const DexFile::TypeList* dex_params = dex->GetProtoParameters(dex_proto); 170 const char* dex_class_desc = dex [all...] |