Home
last modified time | relevance | path

Searched refs:dex_file_ (Results 1 – 25 of 44) sorted by relevance

12

/art/libdexfile/dex/
Dsignature-inl.h27 if (dex_file_ == nullptr) {
28 return rhs.dex_file_ == nullptr;
30 if (rhs.dex_file_ == nullptr) {
33 if (dex_file_ == rhs.dex_file_) {
37 const char* lhs_shorty_data = dex_file_->StringDataAndUtf16LengthByIdx(proto_id_->shorty_idx_,
43 rhs.dex_file_->StringDataAndUtf16LengthByIdx(rhs.proto_id_->shorty_idx_,
51 const dex::TypeId& return_type_id = dex_file_->GetTypeId(proto_id_->return_type_idx_);
53 rhs.dex_file_->GetTypeId(rhs.proto_id_->return_type_idx_);
54 if (!DexFile::StringEquals(dex_file_, return_type_id.descriptor_idx_,
55 rhs.dex_file_, rhs_return_type_id.descriptor_idx_)) {
[all …]
Ddex_file_tracking_registrar.cc84 if (kDexFileAccessTracking && dex_file_ != nullptr) { in SetDexSections()
86 LOG(ERROR) << "RegisterDexFile: " << dex_file_->GetLocation() + " @ " << std::hex in SetDexSections()
87 << reinterpret_cast<uintptr_t>(dex_file_->Begin()); in SetDexSections()
153 const void* dex_file_begin = reinterpret_cast<const void*>(dex_file_->Begin()); in SetDexFileRegistration()
154 size_t dex_file_size = dex_file_->Size(); in SetDexFileRegistration()
159 for (ClassAccessor accessor : dex_file_->GetClasses()) { in SetAllCodeItemRegistration()
164 size_t code_item_size = dex_file_->GetCodeItemSize(*code_item); in SetAllCodeItemRegistration()
172 for (ClassAccessor class_accessor : dex_file_->GetClasses()) { in SetAllCodeItemStartRegistration()
178 CodeItemInstructionAccessor accessor(*dex_file_, code_item); in SetAllCodeItemStartRegistration()
190 for (ClassAccessor class_accessor : dex_file_->GetClasses()) { in SetAllInsnsRegistration()
[all …]
Dsignature.cc31 if (dex_file_ == nullptr) { in ToString()
35 const TypeList* params = dex_file_->GetProtoParameters(*proto_id_); in ToString()
42 result += dex_file_->StringByTypeIdx(params->GetTypeItem(i).type_idx_); in ToString()
46 result += dex_file_->StringByTypeIdx(proto_id_->return_type_idx_); in ToString()
51 const TypeList* params = dex_file_->GetProtoParameters(*proto_id_); in GetNumberOfParameters()
56 const char* return_type = dex_file_->GetReturnTypeDescriptor(*proto_id_); in IsVoid()
61 if (dex_file_ == nullptr) { in operator ==()
69 const TypeList* params = dex_file_->GetProtoParameters(*proto_id_); in operator ==()
72 std::string_view param(dex_file_->StringByTypeIdx(params->GetTypeItem(i).type_idx_)); in operator ==()
83 return tail == dex_file_->StringByTypeIdx(proto_id_->return_type_idx_); in operator ==()
Dclass_accessor-inl.h33 : ClassAccessor(data.dex_file_, data.class_def_idx_) {} in ClassAccessor()
50 : dex_file_(dex_file), in ClassAccessor()
77 return MethodReference(&dex_file_, GetIndex()); in GetReference()
110 Field field(dex_file_, ptr_pos_, hiddenapi_ptr_pos_); in VisitFieldsAndMethods()
115 Method method(dex_file_, field.ptr_pos_, field.hiddenapi_ptr_pos_, /*is_static_or_direct*/ true); in VisitFieldsAndMethods()
142 return dex_file_.GetCodeItem(method.GetCodeItemOffset()); in GetCodeItem()
146 return CodeItemInstructionAccessor(dex_file_, dex_file_.GetCodeItem(GetCodeItemOffset())); in GetInstructions()
150 return CodeItemDataAccessor(dex_file_, dex_file_.GetCodeItem(GetCodeItemOffset())); in GetInstructionsAndData()
154 return dex_file_.StringByTypeIdx(GetClassIdx()); in GetDescriptor()
158 return dex_file_.GetCodeItem(code_off_); in GetCodeItem()
[all …]
Dclass_iterator.h32 : dex_file_(dex_file), in ClassIteratorData()
36 const DexFile& dex_file_;
70 DCHECK_EQ(&data_.dex_file_, &rhs.data_.dex_file_) << "Comparing different dex files.";
79 DCHECK_EQ(&data_.dex_file_, &rhs.data_.dex_file_) << "Comparing different dex files.";
Dclass_accessor.h46 : dex_file_(dex_file), ptr_pos_(ptr_pos), hiddenapi_ptr_pos_(hiddenapi_ptr_pos) {} in BaseItem()
65 return dex_file_; in GetDexFile()
82 const DexFile& dex_file_;
219 DCHECK_EQ(&data_.dex_file_, &rhs.data_.dex_file_) << "Comparing different dex files.";
228 DCHECK_EQ(&data_.dex_file_, &rhs.data_.dex_file_) << "Comparing different dex files.";
355 return dex_file_; in GetDexFile()
385 const DexFile& dex_file_; variable
Dcode_item_accessors-inl.h174 debug_info_offset_ = down_cast<const CompactDexFile*>(dex_file_)->GetDebugInfoOffset(
193 dex_file_ = &dex_file; in Init()
207 return dex_file_->DecodeDebugLocalInfo(RegistersSize(), in DecodeDebugLocalInfo()
218 const uint8_t* stream = dex_file_->GetDebugInfoStream(DebugInfoOffset()); in VisitParameterNames()
238 return dex_file_->DecodeDebugPositionInfo( in DecodeDebugPositionInfo()
239 dex_file_->GetDebugInfoStream(DebugInfoOffset()), in DecodeDebugPositionInfo()
241 return dex_file_->StringDataByIdx(dex::StringIndex(idx)); in DecodeDebugPositionInfo()
Ddex_file_tracking_registrar.h37 : dex_file_(dex_file) { in DexFileTrackingRegistrar()
71 const DexFile* const dex_file_; variable
Ddex_file_verifier.cc199 : dex_file_(dex_file), in DexFileVerifier()
375 const DexFile* const dex_file_; member in art::dex::DexFileVerifier
458 const char* descriptor = dex_file_->StringByTypeIdx(idx); in VerifyTypeDescriptor()
465 const char* descriptor = dex_file_->StringByTypeIdx(idx); in VerifyTypeDescriptor()
584 uint32_t adler_checksum = dex_file_->CalculateChecksum(); in CheckHeader()
602 const uint32_t expected_header_size = dex_file_->IsCompactDexFile() in CheckHeader()
791 CodeItemDataAccessor accessor(*dex_file_, code_item); in CheckAndGetHandlerOffsets()
1079 if (!CheckIndex(idx, dex_file_->NumMethodHandles(), "method_handle value")) { in CheckEncodedValue()
1135 ClassAccessor accessor(*dex_file_, ptr_); in CheckStaticFieldTypes()
1136 EncodedStaticFieldValueIterator array_it(*dex_file_, class_def); in CheckStaticFieldTypes()
[all …]
Dsignature.h55 Signature(const DexFile* dex, const dex::ProtoId& proto) : dex_file_(dex), proto_id_(&proto) { in Signature()
62 const DexFile* const dex_file_ = nullptr; variable
/art/dexlist/
Ddexlist_test.cc39 dex_file_ = GetLibCoreDexFileNames()[0]; in SetUp()
51 std::string dex_file_; member in art::DexListTest
62 ASSERT_FALSE(Exec({"-o", "/non/existent/path", dex_file_}, &error_msg)) << error_msg; in TEST_F()
67 ASSERT_FALSE(Exec({"-m", "joho", dex_file_}, &error_msg)) << error_msg; in TEST_F()
72 ASSERT_TRUE(Exec({"-o", "/dev/null", dex_file_}, &error_msg)) << error_msg; in TEST_F()
78 dex_file_}, &error_msg)) << error_msg; in TEST_F()
/art/dexdump/
Ddexdump_test.cc37 dex_file_ = GetLibCoreDexFileNames()[0]; in SetUp()
49 std::string dex_file_; member in art::DexDumpTest
60 ASSERT_FALSE(Exec({"-o", "/non/existent/path", dex_file_}, &error_msg)) << error_msg; in TEST_F()
65 ASSERT_FALSE(Exec({"-c", "-i", dex_file_}, &error_msg)) << error_msg; in TEST_F()
71 dex_file_}, &error_msg)) << error_msg; in TEST_F()
77 dex_file_}, &error_msg)) << error_msg; in TEST_F()
/art/tools/veridex/
Dresolver.cc29 for (ClassAccessor accessor : dex_file_.GetClasses()) { in Run()
74 CHECK_LT(index.index_, dex_file_.NumTypeIds()); in GetVeriClass()
79 std::string name(dex_file_.StringByTypeIdx(index)); in GetVeriClass()
117 const DexFile& dex_file = resolver_it->second->dex_file_; in GetResolverOf()
140 const DexFile& other_dex_file = resolver->dex_file_; in LookupMethodIn()
195 const DexFile& other_dex_file = resolver->dex_file_; in LookupFieldIn()
245 const DexFile& other_dex_file = resolver->dex_file_; in LookupDeclaredMethodIn()
262 const dex::MethodId& method_id = dex_file_.GetMethodId(method_index); in GetMethod()
269 dex_file_.GetMethodName(method_id), in GetMethod()
270 dex_file_.GetMethodSignature(method_id)); in GetMethod()
[all …]
Dresolver.h39 : dex_file_(dex_file), in VeridexResolver()
79 return dex_file_; in GetDexFile()
83 return GetResolverOf(kls)->dex_file_; in GetDexFileOf()
90 const DexFile& dex_file_; variable
/art/compiler/optimizing/
Dbuilder.cc49 dex_file_(&graph->GetDexFile()), in HGraphBuilder()
65 dex_file_(&graph->GetDexFile()), in HGraphBuilder()
89 << dex_file_->PrettyMethod(dex_compilation_unit_->GetDexMethodIndex()) in SkipCompilation()
98 << dex_file_->PrettyMethod(dex_compilation_unit_->GetDexMethodIndex()) in SkipCompilation()
118 HBasicBlockBuilder block_builder(graph_, dex_file_, code_item_accessor_, &local_allocator); in BuildGraph()
127 dex_file_, in BuildGraph()
171 const char* shorty = dex_file_->GetMethodShorty(dex_file_->GetMethodId(method_idx)); in BuildIntrinsicGraph()
187 dex_file_, in BuildIntrinsicGraph()
198 dex_file_, in BuildIntrinsicGraph()
Dblock_builder.h77 const DexFile* const dex_file_; variable
/art/compiler/driver/
Ddex_compilation_unit.h58 return dex_file_; in GetDexFile()
74 const dex::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in GetShorty()
75 return dex_file_->GetMethodShorty(method_id); in GetShorty()
79 const dex::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in GetShorty()
80 return dex_file_->GetMethodShorty(method_id, shorty_len); in GetShorty()
165 const DexFile* const dex_file_; variable
Ddex_compilation_unit.cc42 dex_file_(&dex_file), in DexCompilationUnit()
55 symbol_ += MangleForJni(dex_file_->PrettyMethod(dex_method_idx_)); in GetSymbol()
/art/libdexfile/external/
Ddex_file_ext.cc112 std::unique_ptr<const art::DexFile> dex_file_; member
114 : dex_file_(std::move(dex_file)) {} in ExtDexFile()
123 for (; class_def_index_ < dex_file_->NumClassDefs(); class_def_index_++) { in GetMethodCacheEntryForOffset()
124 art::ClassAccessor accessor(*dex_file_, class_def_index_); in GetMethodCacheEntryForOffset()
132 int32_t offset = reinterpret_cast<const uint8_t*>(code.Insns()) - dex_file_->Begin(); in GetMethodCacheEntryForOffset()
290 if (!ext_dex_file->dex_file_->IsInDataSection(ext_dex_file->dex_file_->Begin() + dex_offset)) { in ExtDexFileGetMethodInfoForOffset()
294 if (ext_dex_file->dex_file_->IsCompactDexFile()) { in ExtDexFileGetMethodInfoForOffset()
298 ext_dex_file->dex_file_->AsCompactDexFile()->GetHeader(); in ExtDexFileGetMethodInfoForOffset()
311 new ExtDexFileString{ext_dex_file->dex_file_->PrettyMethod(entry->index, with_signature)}; in ExtDexFileGetMethodInfoForOffset()
322 for (art::ClassAccessor accessor : ext_dex_file->dex_file_->GetClasses()) { in ExtDexFileGetAllMethodInfos()
[all …]
/art/openjdkjvmti/
Dfixed_up_dex_file.h56 return *dex_file_; in GetDexFile()
70 : dex_file_(std::move(fixed_up_dex_file)), in FixedUpDexFile()
74 std::unique_ptr<const art::DexFile> dex_file_; variable
Dti_redefine.h132 dex_file_ = std::move(other.dex_file_);
143 dex_file_(std::move(other.dex_file_)), in ClassRedefinition()
158 return *dex_file_; in GetDexFile()
288 std::unique_ptr<const art::DexFile> dex_file_; variable
Dti_redefine.cc538 dex_file_(redefined_dex_file), in ClassRedefinition()
755 cl->GetInternTable()->InternStrong(dex_file_->GetLocation().c_str()))); in CreateNewDexCache()
764 dex_file_.get(), in CreateNewDexCache()
934 DCHECK_EQ(dex_file_->NumClassDefs(), 1u); in CheckMethods()
937 art::ClassAccessor accessor(*dex_file_, dex_file_->GetClassDef(0)); in CheckMethods()
963 MethodNameAndSignature new_method_id(dex_file_.get(), new_method.GetIndex()); in CheckMethods()
1016 DCHECK_EQ(dex_file_->NumClassDefs(), 1u); in CheckFields()
1017 art::ClassAccessor new_accessor(*dex_file_, dex_file_->GetClassDef(0)); in CheckFields()
1027 FieldNameAndSignature new_field_id(dex_file_.get(), new_field.GetIndex()); in CheckFields()
1075 if (dex_file_->NumClassDefs() != 1) { in CheckClass()
[all …]
/art/runtime/verifier/
Dmethod_verifier.cc331 uint32_t limit = dex_file_->NumCallSiteIds(); in CheckCallSiteIndex()
343 if (UNLIKELY(idx >= dex_file_->GetHeader().field_ids_size_)) { in CheckFieldIndex()
345 << dex_file_->GetHeader().field_ids_size_ << ")"; in CheckFieldIndex()
354 if (UNLIKELY(idx >= dex_file_->GetHeader().method_ids_size_)) { in CheckMethodIndex()
356 << dex_file_->GetHeader().method_ids_size_ << ")"; in CheckMethodIndex()
365 uint32_t limit = dex_file_->NumMethodHandles(); in CheckMethodHandleIndex()
381 if (UNLIKELY(idx >= dex_file_->GetHeader().proto_ids_size_)) { in CheckPrototypeIndex()
383 << dex_file_->GetHeader().proto_ids_size_ << ")"; in CheckPrototypeIndex()
391 if (UNLIKELY(idx >= dex_file_->GetHeader().string_ids_size_)) { in CheckStringIndex()
393 << dex_file_->GetHeader().string_ids_size_ << ")"; in CheckStringIndex()
[all …]
Dmethod_verifier-inl.h34 return MethodReference(dex_file_, dex_method_idx_); in GetMethodReference()
/art/runtime/
Dhidden_api.h66 dex_file_(nullptr), in AccessContext()
73 dex_file_(GetDexFileFromDexCache(dex_cache)), in AccessContext()
74 domain_(ComputeDomain(class_loader, dex_file_)) {} in AccessContext()
79 dex_file_(dex_file), in AccessContext()
80 domain_(ComputeDomain(class_loader, dex_file_)) {} in AccessContext()
86 dex_file_(GetDexFileFromDexCache(klass->GetDexCache())), in AccessContext()
87 domain_(ComputeDomain(klass, dex_file_)) {} in AccessContext()
90 const DexFile* GetDexFile() const { return dex_file_; } in GetDexFile()
139 const DexFile* const dex_file_; variable

12