/art/libdexfile/dex/ |
D | signature-inl.h | 27 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 …]
|
D | dex_file_tracking_registrar.cc | 84 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 …]
|
D | signature.cc | 31 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 ==()
|
D | class_accessor-inl.h | 33 : 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 …]
|
D | class_iterator.h | 32 : 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.";
|
D | class_accessor.h | 46 : 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
|
D | code_item_accessors-inl.h | 174 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()
|
D | dex_file_tracking_registrar.h | 37 : dex_file_(dex_file) { in DexFileTrackingRegistrar() 71 const DexFile* const dex_file_; variable
|
D | dex_file_verifier.cc | 199 : 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 …]
|
D | signature.h | 55 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/ |
D | dexlist_test.cc | 39 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/ |
D | dexdump_test.cc | 37 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/ |
D | resolver.cc | 29 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 …]
|
D | resolver.h | 39 : 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/ |
D | builder.cc | 49 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()
|
D | block_builder.h | 77 const DexFile* const dex_file_; variable
|
/art/compiler/driver/ |
D | dex_compilation_unit.h | 58 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
|
D | dex_compilation_unit.cc | 42 dex_file_(&dex_file), in DexCompilationUnit() 55 symbol_ += MangleForJni(dex_file_->PrettyMethod(dex_method_idx_)); in GetSymbol()
|
/art/libdexfile/external/ |
D | dex_file_ext.cc | 112 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/ |
D | fixed_up_dex_file.h | 56 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
|
D | ti_redefine.h | 132 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
|
D | ti_redefine.cc | 538 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/ |
D | method_verifier.cc | 331 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 …]
|
D | method_verifier-inl.h | 34 return MethodReference(dex_file_, dex_method_idx_); in GetMethodReference()
|
/art/runtime/ |
D | hidden_api.h | 66 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
|