/art/runtime/verifier/ |
H A D | method_verifier.cc | 36 #include "dex/descriptors_names.h" 37 #include "dex/dex_file-inl.h" 38 #include "dex/dex_file_exception_helpers.h" 39 #include "dex/dex_instruction-inl.h" 40 #include "dex/dex_instruction_utils.h" 168 failure_message = " that isn't present in dex file " + dex_file.GetLocation(); 231 // smali can create dex files with two encoded_methods sharing the same method_idx 349 tmp = tmp + "\nCommon causes for lock verification issues are non-optimized dex code\n" 436 // There's a strong assumption that the entire boot image is verified and all its dex 567 work_insn_idx_(dex [all...] |
/art/compiler/optimizing/ |
H A D | code_generator_arm64.h | 23 #include "dex/dex_file_types.h" 24 #include "dex/string_reference.h" 25 #include "dex/type_reference.h" 583 dex::TypeIndex type_index, 591 dex::TypeIndex type_index, 599 dex::StringIndex string_index, 607 dex::StringIndex string_index, 616 dex::StringIndex string_index, 619 dex::TypeIndex string_index,
|
H A D | code_generator_arm_vixl.h | 23 #include "dex/string_reference.h" 24 #include "dex/type_reference.h" 568 // Target dex file or null for .data.bmig.rel.ro patches. 579 PcRelativePatchInfo* NewBootImageTypePatch(const DexFile& dex_file, dex::TypeIndex type_index); 580 PcRelativePatchInfo* NewTypeBssEntryPatch(const DexFile& dex_file, dex::TypeIndex type_index); 582 dex::StringIndex string_index); 584 dex::StringIndex string_index); 592 dex::StringIndex string_index, 595 dex::TypeIndex type_index,
|
H A D | instruction_builder.cc | 25 #include "dex/bytecode_utils.h" 26 #include "dex/dex_instruction-inl.h" 321 // at start of java statement) rather than before every dex instruction. 601 // Store the parameter value in the local that the dex code will use 860 // make this an invoke-unresolved to handle cross-dex invokes or abstract super methods, both of 895 // TODO: The actual method could still be referenced in the current dex file, so we 1082 HNewInstance* HInstructionBuilder::BuildNewInstance(dex::TypeIndex type_index, uint32_t dex_pc) { 1236 // dex registers given. If the instruction was seen as dead by the verifier, 1250 << " because of non-sequential dex register pair in wide argument"; 1483 bool HInstructionBuilder::IsOutermostCompilingClass(dex [all...] |
H A D | nodes_vector_test.cc | 44 dex::TypeIndex(1), 49 dex::TypeIndex(2), 54 dex::TypeIndex(0),
|
H A D | inliner.h | 20 #include "dex/dex_file_types.h" 21 #include "dex/invoke_type.h" 231 dex::TypeIndex class_index,
|
H A D | licm_test.cc | 77 dex::TypeIndex(0),
|
H A D | optimizing_unit_test.h | 26 #include "dex/code_item_accessors-inl.h" 27 #include "dex/dex_file.h" 28 #include "dex/dex_instruction.h" 29 #include "dex/standard_dex_file.h" 124 // Reserve a big array of 0s so the dex file constructor can offsets from the header. 128 // Create the dex file based on the fake data. Call the constructor so that we can use virtual 129 // functions. Don't use the arena for the StandardDexFile otherwise the dex location leaks. 170 /* method_idx */ dex::kDexNoIndex,
|
H A D | prepare_for_register_allocation.cc | 19 #include "dex/dex_file_types.h" 64 /* dex_pc */ dex::kDexNoIndex, 232 // Determine if input and user come from the same dex instruction, so that we can move 237 // Start with a quick dex pc check.
|
/art/runtime/ |
H A D | class_loader_context_test.cc | 26 #include "dex/dex_file.h" 205 ClassLoaderContext::Create("PCL[a.dex]"); 207 VerifyClassLoaderPCL(context.get(), 0, "a.dex"); 212 ClassLoaderContext::Create("DLC[a.dex]"); 214 VerifyClassLoaderDLC(context.get(), 0, "a.dex"); 219 ClassLoaderContext::Create("PCL[a.dex:b.dex];DLC[c.dex:d.dex];PCL[e.dex]"); [all...] |
H A D | class_linker.h | 30 #include "dex/dex_cache_resolved_classes.h" 31 #include "dex/dex_file.h" 32 #include "dex/dex_file_types.h" 160 // Initialize class linker by bootstraping from dex files. 171 // Add an image space to the class linker, may fix up classloader fields and dex cache fields. 172 // The dex files that were newly opened for the space are placed in the out argument 250 ObjPtr<mirror::String> ResolveString(dex::StringIndex string_idx, 256 ObjPtr<mirror::String> LookupString(dex::StringIndex string_idx, 263 ObjPtr<mirror::Class> ResolveType(dex::TypeIndex type_idx, ObjPtr<mirror::Class> referrer) 270 ObjPtr<mirror::Class> ResolveType(dex [all...] |
H A D | art_method.h | 31 #include "dex/code_item_accessors.h" 32 #include "dex/dex_file.h" 33 #include "dex/dex_instruction_iterator.h" 34 #include "dex/modifiers.h" 35 #include "dex/primitive.h" 398 // Lookup the Class* from the type index into this method's dex cache. 399 ObjPtr<mirror::Class> LookupResolvedClassFromTypeIndex(dex::TypeIndex type_idx) 401 // Resolve the Class* from the type index into this method's dex cache. 402 ObjPtr<mirror::Class> ResolveClassFromTypeIndex(dex::TypeIndex type_idx) 413 // return dex [all...] |
H A D | class_linker_test.cc | 29 #include "dex/dex_file_types.h" 30 #include "dex/standard_dex_file.h" 423 void AssertDexFile(const DexFile& dex, mirror::ClassLoader* class_loader) 426 for (size_t i = 0; i < dex.NumClassDefs(); i++) { 427 const DexFile::ClassDef& class_def = dex.GetClassDef(i); 428 const char* descriptor = dex.GetClassDescriptor(class_def); 432 for (size_t i = 0; i < dex.NumTypeIds(); i++) { 433 const DexFile::TypeId& type_id = dex.GetTypeId(dex::TypeIndex(i)); 434 const char* descriptor = dex [all...] |
H A D | quick_exception_handler.cc | 23 #include "dex/dex_file_types.h" 24 #include "dex/dex_instruction.h" 103 uint32_t dex_pc = dex::kDexNoIndex; 107 if (dex_pc != dex::kDexNoIndex) { 113 if (found_dex_pc != dex::kDexNoIndex) {
|
H A D | instrumentation.cc | 28 #include "dex/dex_file-inl.h" 29 #include "dex/dex_file_types.h" 30 #include "dex/dex_instruction-inl.h" 253 uint32_t dex_pc = dex::kDexNoIndex; 280 uint32_t dex_pc = dex::kDexNoIndex; 289 << " dex pc: " << dex_pc; 314 uint32_t dex_pc = dex::kDexNoIndex; 1244 // Certain methods have strict requirement on whether the dex instruction 1340 // value either since the dex instruction will be re-executed by the 1366 // TODO: improve the dex p [all...] |
/art/libdexfile/dex/ |
H A D | dex_file_verifier_test.cc | 102 // read dex 121 // smali assemble -o classes.dex class1.smali [class2.smali ...] 122 // base64 classes.dex >classes.dex.base64 154 method_id->class_idx_ = dex::TypeIndex(0xFF); 174 method_id->name_idx_ = dex::StringIndex(0xFF); 245 dex::StringIndex name_index = dex_file->GetMethodId(method_index).name_idx_; 634 // Set of dex files for interface method tests. As it's not as easy to mutate method names, it's 701 nullptr); // Should be allowed in older dex versions for backwards compatibility. 751 nullptr); // Should be allowed in older dex version [all...] |
H A D | dex_file_tracking_registrar.cc | 24 // For dex tracking through poisoning. Note: Requires forcing sanitization. This is the reason for 37 namespace dex { namespace in namespace:art 40 // If true, poison dex files to track accesses. 271 } // namespace dex
|
/art/test/ti-stress/ |
H A D | stress.cc | 66 dex::Reader reader(in_data, in_len); 67 dex::u4 class_idx = reader.FindClassIndex(descriptor.c_str()); 68 if (class_idx != dex::kNoIndex) { 86 dex::Writer writer(dex_ir); 88 struct Allocator : public dex::Writer::Allocator {
|
/art/tools/veridex/ |
H A D | flow_analysis.cc | 19 #include "dex/bytecode_utils.h" 20 #include "dex/code_item_accessors-inl.h" 21 #include "dex/dex_instruction-inl.h" 22 #include "dex/dex_file-inl.h" 23 #include "dex/dex_file_exception_helpers.h" 59 // TODO: We need to mark the range of dex pcs as flowing in the handlers. 497 VeriClass* cls = resolver_->GetVeriClass(dex::TypeIndex(instruction.VRegB_21c())); 503 dex::TypeIndex type_index(instruction.VRegC_22c()); 510 dex::TypeIndex type_index(instruction.VRegB_35c()); 517 dex [all...] |
/art/runtime/interpreter/mterp/ |
H A D | mterp.cc | 368 ObjPtr<mirror::String> s = ResolveString(self, *shadow_frame, dex::StringIndex(index)); 381 ObjPtr<mirror::Class> c = ResolveVerifyAndClinit(dex::TypeIndex(index), 424 ObjPtr<mirror::Class> c = ResolveVerifyAndClinit(dex::TypeIndex(index), 446 ObjPtr<mirror::Class> c = ResolveVerifyAndClinit(dex::TypeIndex(index), 468 ObjPtr<mirror::Class> c = ResolveVerifyAndClinit(dex::TypeIndex(inst->VRegB_21c()), 561 dex::TypeIndex(inst->VRegC_22c()), length, shadow_frame->GetMethod(), self, 592 // Save invalid dex pc to force segfault if improperly used.
|
/art/dex2oat/linker/ |
H A D | oat_writer.h | 31 #include "dex/compact_dex_level.h" 32 #include "dex/method_reference.h" 33 #include "dex/string_reference.h" 34 #include "dex/type_reference.h" 83 // MethodBssMapping one variable sized MethodBssMapping for each dex file, optional. 142 // Add dex file source(s) from a file, either a plain dex file or 143 // a zip file with one or more dex files. 148 // Add dex file source(s) from a zip file specified by a file handle. 153 // Add dex fil [all...] |
/art/runtime/native/ |
H A D | dalvik_system_VMRuntime.cc | 35 #include "dex/dex_file-inl.h" 36 #include "dex/dex_file_types.h" 345 ObjPtr<mirror::DexCache> dex_cache, dex::StringIndex string_idx, StringTable& strings) 365 dex::TypeIndex type_idx) 438 // Call FindResolvedMethod to populate the dex cache. 496 DCHECK(dex_cache != nullptr); // Boot class path dex caches are never unloaded. 562 CHECK(dex_cache != nullptr); // Boot class path dex caches are never unloaded. 565 PreloadDexCachesResolveString(dex_cache, dex::StringIndex(j), strings); 571 PreloadDexCachesResolveType(soa.Self(), dex_cache, dex::TypeIndex(j));
|
/art/runtime/utils/ |
H A D | dex_cache_arrays_layout-inl.h | 25 #include "dex/primitive.h" 78 inline size_t DexCacheArraysLayout::TypeOffset(dex::TypeIndex type_idx) const {
|
/art/tools/runtime_memusage/ |
H A D | sanitizer_logcat_analysis.sh | 34 echo " Forces all pids associated with registered dex" 41 echo " default: first baksmali dump in order of dex" 269 # Step 4.5 - Obtain Dex File Format of dex file related to package 274 baksmali_dmp_arg="--dex-file "${baksmali_dmp_files[$BAKSMALI_NUM]} 287 apk_oat_files=$(adb shell find "$apk_directory" -name "*.?dex" -type f \ 295 --export-dex-to="$intermediates_dir" --output=/dev/null 297 exported_dex_file=$intermediates_dir/$dex_file"_export.dex" 309 baksmali_dmp_arg="--dex-file "${baksmali_dmp_files[$BAKSMALI_NUM]}
|
/art/runtime/interpreter/ |
H A D | interpreter_switch_impl.cc | 21 #include "dex/dex_file_types.h" 40 shadow_frame.SetDexPC(dex::kDexNoIndex); \ 67 // Code to run before each dex instruction. 98 shadow_frame.SetDexPC(dex::kDexNoIndex); \ 123 /* Record new dex pc early to have consistent suspend point at loop header. */ \ 153 // We got a new exception in the dex-pc-moved event. We just let this exception replace the old 324 shadow_frame.SetDexPC(dex::kDexNoIndex); 347 shadow_frame.SetDexPC(dex::kDexNoIndex); 371 shadow_frame.SetDexPC(dex::kDexNoIndex); 394 shadow_frame.SetDexPC(dex [all...] |