Searched refs:dex_file (Results 1 - 25 of 131) sorted by relevance

123456

/art/compiler/utils/
H A Dstring_reference.h31 StringReference(const DexFile* file, uint32_t index) : dex_file(file), string_index(index) { }
33 const DexFile* dex_file; member in struct:art::StringReference
45 if (sr1.dex_file == sr2.dex_file) {
50 sr1.dex_file->GetStringData(sr1.dex_file->GetStringId(sr1.string_index)),
51 sr1.dex_file->GetStringData(sr2.dex_file->GetStringId(sr2.string_index))) < 0);
56 sr1.dex_file->GetStringData(sr1.dex_file
[all...]
H A Dtest_dex_file_builder_test.cc19 #include "dex_file-inl.h"
33 std::unique_ptr<const DexFile> dex_file(builder.Build(dex_location));
34 ASSERT_TRUE(dex_file != nullptr);
35 EXPECT_STREQ(dex_location, dex_file->GetLocation().c_str());
50 ASSERT_EQ(arraysize(expected_strings), dex_file->NumStringIds());
52 EXPECT_STREQ(expected_strings[i], dex_file->GetStringData(dex_file->GetStringId(i))) << i;
63 ASSERT_EQ(arraysize(expected_types), dex_file->NumTypeIds());
65 EXPECT_STREQ(expected_types[i], dex_file->GetTypeDescriptor(dex_file
[all...]
/art/runtime/
H A Dmethod_reference.h28 MethodReference(const DexFile* file, uint32_t index) : dex_file(file), dex_method_index(index) {
30 const DexFile* dex_file; member in struct:art::MethodReference
36 if (mr1.dex_file == mr2.dex_file) {
39 return mr1.dex_file < mr2.dex_file;
H A Ddex_file_verifier_test.cc28 #include "dex_file-inl.h"
61 static void MakeDexVersion37(DexFile* dex_file) { argument
63 CHECK_EQ(*(dex_file->Begin() + offset), '5');
64 *(const_cast<uint8_t*>(dex_file->Begin()) + offset) = '7';
113 static void FixUpChecksum(uint8_t* dex_file) { argument
114 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(dex_file);
118 const uint8_t* non_sum_ptr = dex_file + non_sum;
132 // Note: `dex_file` will be destroyed before `dex_bytes`.
133 std::unique_ptr<DexFile> dex_file(
135 f(dex_file
181 std::unique_ptr<const DexFile> dex_file = std::move(tmp[0]); local
290 FindMethodData(const DexFile* dex_file, const char* name, uint32_t* method_idx = nullptr) argument
333 SetMethodFlags(DexFile* dex_file, const char* method, uint32_t mask) argument
350 GetMethodFlags(DexFile* dex_file, const char* method) argument
357 ApplyMaskToMethodFlags(DexFile* dex_file, const char* method, uint32_t mask) argument
364 OrMaskToMethodFlags(DexFile* dex_file, const char* method, uint32_t mask) argument
371 RemoveCode(DexFile* dex_file, const char* method) argument
907 FindFieldData(const DexFile* dex_file, const char* name) argument
939 SetFieldFlags(DexFile* dex_file, const char* field, uint32_t mask) argument
956 GetFieldFlags(DexFile* dex_file, const char* field) argument
963 ApplyMaskToFieldFlags(DexFile* dex_file, const char* field, uint32_t mask) argument
970 OrMaskToFieldFlags(DexFile* dex_file, const char* field, uint32_t mask) argument
[all...]
H A Dtype_lookup_table.cc20 #include "dex_file-inl.h"
45 uint32_t TypeLookupTable::RawDataLength(const DexFile& dex_file) { argument
46 return RawDataLength(dex_file.NumClassDefs());
61 TypeLookupTable* TypeLookupTable::Create(const DexFile& dex_file, uint8_t* storage) { argument
62 const uint32_t num_class_defs = dex_file.NumClassDefs();
64 ? new TypeLookupTable(dex_file, storage)
68 TypeLookupTable* TypeLookupTable::Open(const uint8_t* raw_data, const DexFile& dex_file) { argument
69 return new TypeLookupTable(raw_data, dex_file);
72 TypeLookupTable::TypeLookupTable(const DexFile& dex_file, uint8_t* storage) argument
73 : dex_file_(dex_file),
109 TypeLookupTable(const uint8_t* raw_data, const DexFile& dex_file) argument
[all...]
H A Ddex_method_iterator_test.cc39 const DexFile& dex_file = it.GetDexFile(); local
43 LOG(INFO) << invoke_type << " " << PrettyMethod(method_idx, dex_file);
H A Dtype_lookup_table_test.cc21 #include "dex_file-inl.h"
35 std::unique_ptr<const DexFile> dex_file(OpenTestDexFile("Lookup"));
36 std::unique_ptr<TypeLookupTable> table(TypeLookupTable::Create(*dex_file));
44 std::unique_ptr<const DexFile> dex_file(OpenTestDexFile("Lookup"));
45 std::unique_ptr<TypeLookupTable> table(TypeLookupTable::Create(*dex_file));
H A Dart_method-inl.h26 #include "dex_file.h"
27 #include "dex_file-inl.h"
284 const DexFile* dex_file = GetDexFile(); local
285 return dex_file->GetMethodDeclaringClassDescriptor(dex_file->GetMethodId(dex_method_idx));
290 const DexFile* dex_file = GetDexFile(); local
291 return dex_file->GetMethodShorty(dex_file->GetMethodId(GetDexMethodIndex()), out_length);
298 const DexFile* dex_file = GetDexFile(); local
299 return dex_file
308 const DexFile* dex_file = GetDexFile(); local
346 const DexFile* dex_file = GetDexFile(); local
352 const DexFile* dex_file = GetDexFile(); local
375 const DexFile* dex_file = GetDexFile(); local
384 const DexFile* dex_file = GetDexFile(); local
429 const DexFile* dex_file = GetDexFile(); local
[all...]
H A Dtype_lookup_table.h20 #include "dex_file.h"
63 static TypeLookupTable* Create(const DexFile& dex_file, uint8_t* storage = nullptr);
66 static TypeLookupTable* Open(const uint8_t* raw_data, const DexFile& dex_file);
77 static uint32_t RawDataLength(const DexFile& dex_file);
119 explicit TypeLookupTable(const DexFile& dex_file, uint8_t* storage);
122 TypeLookupTable(const uint8_t* raw_data, const DexFile& dex_file);
H A Dclass_linker-inl.h71 const DexFile& dex_file = *dex_cache->GetDexFile(); local
72 resolved_string = ResolveString(dex_file, string_idx, dex_cache);
87 const DexFile& dex_file = *dex_cache->GetDexFile(); local
88 resolved_type = ResolveType(dex_file, type_idx, dex_cache, class_loader);
103 const DexFile& dex_file = *dex_cache->GetDexFile(); local
104 resolved_type = ResolveType(dex_file, type_idx, dex_cache, class_loader);
131 const DexFile* dex_file = dex_cache->GetDexFile(); local
132 const DexFile::MethodId& method = dex_file->GetMethodId(method_idx);
135 resolved_type = ResolveType(*dex_file, method.class_idx_, dex_cache, class_loader);
151 const DexFile* dex_file local
181 const DexFile& dex_file = *dex_cache->GetDexFile(); local
[all...]
H A Ddex_method_iterator.h22 #include "dex_file.h"
130 const DexFile* dex_file = dex_files_[dex_file_index_]; local
131 CHECK(dex_file != nullptr);
132 return *dex_file;
/art/compiler/optimizing/
H A Ddex_cache_array_fixups_arm.cc52 const DexFile& dex_file = load_string->GetDexFile(); variable
53 HArmDexCacheArraysBase* base = GetOrCreateDexCacheArrayBase(dex_file);
55 DexCacheArraysLayout layout(kArmPointerSize, &dex_file);
68 HArmDexCacheArraysBase* base = GetOrCreateDexCacheArrayBase(*target_method.dex_file);
70 DexCacheArraysLayout layout(kArmPointerSize, target_method.dex_file);
78 HArmDexCacheArraysBase* GetOrCreateDexCacheArrayBase(const DexFile& dex_file) { argument
80 auto lb = dex_cache_array_bases_.lower_bound(&dex_file);
82 !dex_cache_array_bases_.key_comp()(&dex_file, lb->first)) {
88 HArmDexCacheArraysBase* base = new (GetGraph()->GetArena()) HArmDexCacheArraysBase(dex_file);
91 dex_cache_array_bases_.PutBefore(lb, &dex_file, bas
[all...]
H A Dnodes_arm.h24 explicit HArmDexCacheArraysBase(const DexFile& dex_file) argument
26 dex_file_(&dex_file),
H A Dsharpening.cc91 if (target_method.dex_file == &outer_graph->GetDexFile() &&
98 ContainsElement(compiler_driver_->GetDexFilesForOatFile(), target_method.dex_file);
110 DCHECK_EQ(target_method.dex_file, &graph_->GetDexFile());
160 const DexFile& dex_file = load_string->GetDexFile(); local
171 Handle<mirror::DexCache> dex_cache = IsSameDexFile(dex_file, *compilation_unit_.GetDexFile())
173 : hs.NewHandle(class_linker->FindDexCache(soa.Self(), dex_file));
178 mirror::String* string = class_linker->ResolveString(dex_file, string_index, dex_cache);
184 DCHECK(ContainsElement(compiler_driver_->GetDexFilesForOatFile(), &dex_file));
209 mirror::String* string = class_linker->LookupString(dex_file, string_index, dex_cache);
214 desired_load_kind = ContainsElement(compiler_driver_->GetDexFilesForOatFile(), &dex_file)
[all...]
H A Dbuilder.h23 #include "dex_file.h"
24 #include "dex_file-inl.h"
40 const DexFile* dex_file,
48 dex_file_(dex_file),
53 block_builder_(graph, dex_file, code_item),
58 dex_file,
85 /* dex_file */ nullptr,
37 HGraphBuilder(HGraph* graph, DexCompilationUnit* dex_compilation_unit, const DexCompilationUnit* const outer_compilation_unit, const DexFile* dex_file, const DexFile::CodeItem& code_item, CompilerDriver* driver, OptimizingCompilerStats* compiler_stats, const uint8_t* interpreter_metadata, Handle<mirror::DexCache> dex_cache, StackHandleScopeCollection* handles) argument
/art/compiler/
H A Dcompiler.cc41 const DexFile& dex_file) {
50 << " in " << PrettyMethod(method_idx, dex_file);
55 << code_item.registers_size_ << " in " << PrettyMethod(method_idx, dex_file);
39 IsPathologicalCase(const DexFile::CodeItem& code_item, uint32_t method_idx, const DexFile& dex_file) argument
H A Dcompiler.h20 #include "dex_file.h"
47 virtual bool CanCompileMethod(uint32_t method_idx, const DexFile& dex_file) const = 0;
55 const DexFile& dex_file,
60 const DexFile& dex_file) const = 0;
96 const DexFile& dex_file);
/art/compiler/dex/quick/
H A Ddex_file_to_method_inliner_map.cc40 DexFileMethodInliner* DexFileToMethodInlinerMap::GetMethodInliner(const DexFile* dex_file) { argument
44 auto it = inliners_.find(dex_file);
59 DexFileMethodInliner** inliner = &inliners_[dex_file]; // inserts new entry if not found
68 locked_inliner->FindIntrinsics(dex_file);
H A Ddex_file_to_method_inliner_map.h43 DexFileMethodInliner* GetMethodInliner(const DexFile* dex_file) NO_THREAD_SAFETY_ANALYSIS;
/art/compiler/jni/quick/
H A Djni_compiler.h20 #include "dex_file.h"
28 uint32_t method_idx, const DexFile& dex_file);
/art/compiler/driver/
H A Ddex_compilation_unit.cc27 const DexFile& dex_file,
36 dex_file_(&dex_file),
25 DexCompilationUnit(jobject class_loader, ClassLinker* class_linker, const DexFile& dex_file, const DexFile::CodeItem* code_item, uint16_t class_def_idx, uint32_t method_idx, uint32_t access_flags, const VerifiedMethod* verified_method, Handle<mirror::DexCache> dex_cache) argument
H A Dcompiler_driver.cc40 #include "dex_file-inl.h"
340 explicit DexFileMethodSet(const DexFile& dex_file) argument
341 : dex_file_(dex_file),
342 method_indexes_(dex_file.NumMethodIds(), false, Allocator::GetMallocAllocator()) {
498 const DexFile& dex_file, const DexFile::ClassDef& class_def)
505 const char* descriptor = dex_file.GetClassDescriptor(class_def);
536 const DexFile& dex_file,
542 return GetDexToDexCompilationLevel(self, driver, class_loader, dex_file, class_def);
568 const DexFile& dex_file,
576 MethodReference method_ref(&dex_file, method_id
532 GetDexToDexCompilationLevel( Thread* self, const CompilerDriver& driver, jobject jclass_loader, const DexFile& dex_file, const DexFile::ClassDef& class_def) argument
674 const DexFile* dex_file; local
768 const DexFile* dex_file = dex_files[i]; local
784 ResolveConstStrings(CompilerDriver* driver, const DexFile& dex_file, const DexFile::CodeItem* code_item) argument
988 ShouldVerifyClassBasedOnProfile(const DexFile& dex_file, uint16_t class_idx) const argument
1114 const DexFile* dex_file = exception_type.second; local
1373 CanAssumeStringIsPresentInDexCache(const DexFile& dex_file, uint32_t string_idx) argument
1465 CanEmbedTypeInCode(const DexFile& dex_file, uint32_t type_idx, bool* is_type_initialized, bool* use_direct_type_ptr, uintptr_t* direct_type_ptr, bool* out_is_finalizable) argument
1561 GetDexCacheArraysLayout(const DexFile* dex_file) argument
1831 GetVerifiedMethod(const DexFile* dex_file, uint32_t method_idx) const argument
1860 ParallelCompilationManager(ClassLinker* class_linker, jobject class_loader, CompilerDriver* compiler, const DexFile* dex_file, const std::vector<const DexFile*>& dex_files, ThreadPool* thread_pool) argument
2008 RequiresConstructorBarrier(const DexFile& dex_file, uint16_t class_def_idx) const argument
2039 const DexFile& dex_file = *manager_->GetDexFile(); variable
2152 const DexFile& dex_file = *manager_->GetDexFile(); variable
2177 ResolveDexFile(jobject class_loader, const DexFile& dex_file, const std::vector<const DexFile*>& dex_files, ThreadPool* thread_pool, size_t thread_count, TimingLogger* timings) argument
2243 const DexFile& dex_file = *manager_->GetDexFile(); variable
2311 VerifyDexFile(jobject class_loader, const DexFile& dex_file, const std::vector<const DexFile*>& dex_files, ThreadPool* thread_pool, size_t thread_count, TimingLogger* timings) argument
2335 const DexFile& dex_file = *manager_->GetDexFile(); variable
2375 SetVerifiedDexFile(jobject class_loader, const DexFile& dex_file, const std::vector<const DexFile*>& dex_files, ThreadPool* thread_pool, size_t thread_count, TimingLogger* timings) argument
2396 const DexFile& dex_file = *manager_->GetDexFile(); variable
2487 InitializeClasses(jobject jni_class_loader, const DexFile& dex_file, const std::vector<const DexFile*>& dex_files, TimingLogger* timings) argument
2553 const DexFile* dex_file = dex_files[i]; local
2625 const DexFile& dex_file = *manager_->GetDexFile(); variable
2721 CompileDexFile(jobject class_loader, const DexFile& dex_file, const std::vector<const DexFile*>& dex_files, ThreadPool* thread_pool, size_t thread_count, TimingLogger* timings) argument
2840 SetRequiresConstructorBarrier(Thread* self, const DexFile* dex_file, uint16_t class_def_index, bool requires) argument
2848 RequiresConstructorBarrier(Thread* self, const DexFile* dex_file, uint16_t class_def_index) argument
2882 IsStringTypeIndex(uint16_t type_index, const DexFile* dex_file) argument
2887 IsStringInit(uint32_t method_index, const DexFile* dex_file, int32_t* offset) argument
[all...]
/art/compiler/dex/
H A Dquick_compiler_callbacks.cc28 method_inliner_map_->GetMethodInliner(ref.dex_file)->AnalyseMethodCode(verifier);
/art/compiler/debug/
H A Dmethod_debug_info.h21 #include "dex_file.h"
28 const DexFile* dex_file; // Native methods (trampolines) do not reference dex file. member in struct:art::debug::MethodDebugInfo
/art/runtime/mirror/
H A Ddex_cache.cc34 void DexCache::Init(const DexFile* dex_file, argument
45 CHECK(dex_file != nullptr);
52 SetDexFile(dex_file);

Completed in 820 milliseconds

123456