/art/runtime/ |
D | dex_file_tracking_registrar.cc | 81 if (kDexFileAccessTracking && dex_file_ != nullptr) { in SetDexSections() 83 LOG(ERROR) << "RegisterDexFile: " << dex_file_->GetLocation() + " @ " << std::hex in SetDexSections() 84 << reinterpret_cast<uintptr_t>(dex_file_->Begin()); in SetDexSections() 149 const void* dex_file_begin = reinterpret_cast<const void*>(dex_file_->Begin()); in SetDexFileRegistration() 150 size_t dex_file_size = dex_file_->Size(); in SetDexFileRegistration() 155 for (size_t classdef_ctr = 0; classdef_ctr < dex_file_->NumClassDefs(); ++classdef_ctr) { in SetAllCodeItemRegistration() 156 const DexFile::ClassDef& cd = dex_file_->GetClassDef(classdef_ctr); in SetAllCodeItemRegistration() 157 const uint8_t* class_data = dex_file_->GetClassData(cd); in SetAllCodeItemRegistration() 159 ClassDataItemIterator cdit(*dex_file_, class_data); in SetAllCodeItemRegistration() 175 for (size_t classdef_ctr = 0; classdef_ctr < dex_file_->NumClassDefs(); ++classdef_ctr) { in SetAllCodeItemStartRegistration() [all …]
|
D | dex_file-inl.h | 149 if (dex_file_ == nullptr) { 150 return rhs.dex_file_ == nullptr; 152 if (rhs.dex_file_ == nullptr) { 155 if (dex_file_ == rhs.dex_file_) { 159 const char* lhs_shorty_data = dex_file_->StringDataAndUtf16LengthByIdx(proto_id_->shorty_idx_, 165 rhs.dex_file_->StringDataAndUtf16LengthByIdx(rhs.proto_id_->shorty_idx_, 173 const DexFile::TypeId& return_type_id = dex_file_->GetTypeId(proto_id_->return_type_idx_); 175 rhs.dex_file_->GetTypeId(rhs.proto_id_->return_type_idx_); 176 if (!DexFileStringEquals(dex_file_, return_type_id.descriptor_idx_, 177 rhs.dex_file_, rhs_return_type_id.descriptor_idx_)) { [all …]
|
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 | 103 if (UNLIKELY(!CheckIndex(idx.index_, dex_file_->NumStringIds(), error_string))) { in CheckLoadStringByIdx() 106 return dex_file_->StringDataByIdx(idx); in CheckLoadStringByIdx() 171 if (UNLIKELY(!CheckIndex(type_idx.index_, dex_file_->NumTypeIds(), error_string))) { in CheckLoadStringByTypeIdx() 174 return CheckLoadStringByIdx(dex_file_->GetTypeId(type_idx).descriptor_idx_, error_string); in CheckLoadStringByTypeIdx() 178 if (UNLIKELY(!CheckIndex(idx, dex_file_->NumFieldIds(), error_string))) { in CheckLoadFieldId() 181 return &dex_file_->GetFieldId(idx); in CheckLoadFieldId() 185 if (UNLIKELY(!CheckIndex(idx, dex_file_->NumMethodIds(), err_string))) { in CheckLoadMethodId() 188 return &dex_file_->GetMethodId(idx); in CheckLoadMethodId() 192 if (UNLIKELY(!CheckIndex(idx, dex_file_->NumProtoIds(), err_string))) { in CheckLoadProtoId() 195 return &dex_file_->GetProtoId(idx); in CheckLoadProtoId() [all …]
|
D | oat_file_manager.cc | 192 dex_file_(dex_file), in DexFileAndClassPair() 193 cached_descriptor_(dex_file_->StringByTypeIdx(dex::TypeIndex(*type_info->GetIterator()))), in DexFileAndClassPair() 213 return dex_file_ < rhs.dex_file_; in operator <() 221 cached_descriptor_ = dex_file_->StringByTypeIdx(dex::TypeIndex(*type_info_->GetIterator())); in Next() 230 return dex_file_; in GetDexFile() 235 const DexFile* dex_file_; member in art::DexFileAndClassPair
|
D | dex_file.h | 1253 : dex_file_(dex_file), size_(0), pos_(0) { in DexFileParameterIterator() 1254 type_list_ = dex_file_.GetProtoParameters(proto_id); in DexFileParameterIterator() 1266 return dex_file_.StringByTypeIdx(dex::TypeIndex(GetTypeIdx())); in GetDescriptor() 1269 const DexFile& dex_file_; 1296 Signature(const DexFile* dex, const DexFile::ProtoId& proto) : dex_file_(dex), proto_id_(&proto) { in Signature() 1299 Signature() : dex_file_(nullptr), proto_id_(nullptr) { in Signature() 1304 const DexFile* const dex_file_; variable 1313 : dex_file_(dex_file), pos_(0), ptr_pos_(raw_class_data_item), last_idx_(0) { in ClassDataItemIterator() 1449 return dex_file_.GetCodeItem(method_.code_off_); in GetMethodCodeItem() 1517 const DexFile& dex_file_; variable [all …]
|
D | dex_file.cc | 1355 if (dex_file_ == nullptr) { in ToString() 1359 const DexFile::TypeList* params = dex_file_->GetProtoParameters(*proto_id_); in ToString() 1366 result += dex_file_->StringByTypeIdx(params->GetTypeItem(i).type_idx_); in ToString() 1370 result += dex_file_->StringByTypeIdx(proto_id_->return_type_idx_); in ToString() 1375 const DexFile::TypeList* params = dex_file_->GetProtoParameters(*proto_id_); in GetNumberOfParameters() 1380 const char* return_type = dex_file_->GetReturnTypeDescriptor(*proto_id_); in IsVoid() 1385 if (dex_file_ == nullptr) { in operator ==() 1393 const DexFile::TypeList* params = dex_file_->GetProtoParameters(*proto_id_); in operator ==() 1396 StringPiece param(dex_file_->StringByTypeIdx(params->GetTypeItem(i).type_idx_)); in operator ==() 1407 return tail == dex_file_->StringByTypeIdx(proto_id_->return_type_idx_); in operator ==() [all …]
|
D | dex_file_verifier.h | 49 : dex_file_(dex_file), in DexFileVerifier() 201 const DexFile* const dex_file_; variable
|
/art/dexdump/ |
D | dexdump_test.cc | 38 dex_file_ = GetLibCoreDexFileNames()[0]; in SetUp() 51 std::string dex_file_; member in art::DexDumpTest 62 ASSERT_FALSE(Exec({"-o", "/joho", dex_file_}, &error_msg)) << error_msg; in TEST_F() 67 ASSERT_FALSE(Exec({"-c", "-i", dex_file_}, &error_msg)) << error_msg; in TEST_F() 73 dex_file_}, &error_msg)) << error_msg; in TEST_F() 79 dex_file_}, &error_msg)) << error_msg; in TEST_F()
|
/art/dexlist/ |
D | dexlist_test.cc | 40 dex_file_ = GetLibCoreDexFileNames()[0]; in SetUp() 53 std::string dex_file_; member in art::DexListTest 64 ASSERT_FALSE(Exec({"-o", "/joho", dex_file_}, &error_msg)) << error_msg; in TEST_F() 69 ASSERT_FALSE(Exec({"-m", "joho", dex_file_}, &error_msg)) << error_msg; in TEST_F() 74 ASSERT_TRUE(Exec({"-o", "/dev/null", dex_file_}, &error_msg)) << error_msg; in TEST_F() 80 dex_file_}, &error_msg)) << error_msg; in TEST_F()
|
/art/compiler/driver/ |
D | dex_compilation_unit.h | 56 return dex_file_; in GetDexFile() 72 const DexFile::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in GetShorty() 73 return dex_file_->GetMethodShorty(method_id); in GetShorty() 77 const DexFile::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in GetShorty() 78 return dex_file_->GetMethodShorty(method_id, shorty_len); in GetShorty() 120 const DexFile* const dex_file_; variable
|
D | dex_compilation_unit.cc | 35 dex_file_(&dex_file), in DexCompilationUnit() 47 symbol_ += MangleForJni(dex_file_->PrettyMethod(dex_method_idx_)); in GetSymbol()
|
/art/runtime/openjdkjvmti/ |
D | fixed_up_dex_file.h | 55 return *dex_file_; in GetDexFile() 69 : dex_file_(std::move(fixed_up_dex_file)), in FixedUpDexFile() 73 std::unique_ptr<const art::DexFile> dex_file_; variable
|
D | ti_redefine.cc | 298 dex_file_(redefined_dex_file), in ClassRedefinition() 468 cl->GetInternTable()->InternStrong(dex_file_->GetLocation().c_str()))); in CreateNewDexCache() 477 dex_file_.get(), in CreateNewDexCache() 590 DCHECK_EQ(dex_file_->NumClassDefs(), 1u); in CheckSameMethods() 592 art::ClassDataItemIterator new_iter(*dex_file_, in CheckSameMethods() 593 dex_file_->GetClassData(dex_file_->GetClassDef(0))); in CheckSameMethods() 614 const art::DexFile::MethodId& new_method_id = dex_file_->GetMethodId(new_iter.GetMemberIndex()); in CheckSameMethods() 615 const char* new_method_name = dex_file_->GetMethodName(new_method_id); in CheckSameMethods() 616 art::Signature new_method_signature = dex_file_->GetMethodSignature(new_method_id); in CheckSameMethods() 646 DCHECK_EQ(dex_file_->NumClassDefs(), 1u); in CheckSameFields() [all …]
|
D | ti_redefine.h | 118 dex_file_(std::move(other.dex_file_)), in ClassRedefinition() 128 return *dex_file_; in GetDexFile() 208 std::unique_ptr<const art::DexFile> dex_file_; variable
|
/art/runtime/verifier/ |
D | method_verifier.cc | 562 dex_file_(dex_file), in MethodVerifier() 734 const DexFile::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in Verify() 735 const char* method_name = dex_file_->StringDataByIdx(method_id.name_idx_); in Verify() 748 LOG(WARNING) << "Method " << dex_file_->PrettyMethod(dex_method_idx_) in Verify() 847 if (dex_file_->GetVersion() >= DexFile::kDefaultMethodsVersion) { in Verify() 964 std::string location(StringPrintf("%s: [0x%X] ", dex_file_->PrettyMethod(dex_method_idx_).c_str(), in Fail() 972 return info_messages_ << "VFY: " << dex_file_->PrettyMethod(dex_method_idx_) in LogVerifyInfo() 1092 mirror::Class* exception_type = linker->ResolveType(*dex_file_, in ScanTryCatchBlocks() 1279 if (UNLIKELY(idx >= dex_file_->GetHeader().field_ids_size_)) { in CheckFieldIndex() 1281 << dex_file_->GetHeader().field_ids_size_ << ")"; in CheckFieldIndex() [all …]
|
D | method_verifier-inl.h | 58 return MethodReference(dex_file_, dex_method_idx_); in GetMethodReference()
|
D | method_verifier.h | 125 DCHECK(dex_file_ != nullptr); in GetDexFile() 126 return *dex_file_; in GetDexFile() 130 return dex_file_->GetVersion(); in DexFileVersion() 722 const DexFile* const dex_file_; // The dex file containing the method. variable
|
/art/compiler/optimizing/ |
D | builder.h | 51 dex_file_(dex_file), in HGraphBuilder() 82 dex_file_(nullptr), in graph_() 116 const DexFile* const dex_file_; variable
|
D | builder.cc | 54 << dex_file_->PrettyMethod(dex_compilation_unit_->GetDexMethodIndex()) in SkipCompilation() 64 << dex_file_->PrettyMethod(dex_compilation_unit_->GetDexMethodIndex()) in SkipCompilation()
|
D | block_builder.h | 34 dex_file_(dex_file), in HBasicBlockBuilder() 77 const DexFile* const dex_file_; variable
|
D | instruction_builder.cc | 373 dex_file_->DecodeDebugPositionInfo(&code_item_, Callback::Position, locations); in FindNativeDebugInfoLocations() 457 dex_file_->GetMethodId(dex_compilation_unit_->GetDexMethodIndex()); in InitializeParameters() 460 HParameterValue* parameter = new (arena_) HParameterValue(*dex_file_, in InitializeParameters() 473 const DexFile::ProtoId& proto = dex_file_->GetMethodPrototype(referrer_method_id); in InitializeParameters() 474 const DexFile::TypeList* arg_types = dex_file_->GetProtoParameters(proto); in InitializeParameters() 477 *dex_file_, in InitializeParameters() 806 const char* descriptor = dex_file_->GetMethodShorty(method_idx); in BuildInvoke() 844 MethodReference target_method(dex_file_, method_idx); in BuildInvoke() 940 const char* descriptor = dex_file_->GetShorty(proto_idx); in BuildInvokePolymorphic() 1123 << dex_file_->PrettyMethod(dex_compilation_unit_->GetDexMethodIndex()) in SetupInvokeArguments() [all …]
|
D | instruction_builder.h | 57 dex_file_(dex_file), in HInstructionBuilder() 322 const DexFile* const dex_file_; variable
|
/art/dexoptanalyzer/ |
D | dexoptanalyzer.cc | 149 dex_file_ = option.substr(strlen("--dex-file=")).ToString(); in ParseArgs() 218 if (!OS::FileExists(dex_file_.c_str())) { in GetDexOptNeeded() 226 OatFileAssistant oat_file_assistant(dex_file_.c_str(), isa_, /*load_executable*/ false); in GetDexOptNeeded() 255 std::string dex_file_; member in art::FINAL
|
/art/compiler/ |
D | oat_writer.cc | 667 dex_file_(nullptr), in DexMethodVisitor() 671 DCHECK(dex_file_ == nullptr); in StartClass() 673 dex_file_ = dex_file; in StartClass() 682 dex_file_ = nullptr; in EndClass() 701 const DexFile* dex_file_; member in art::OatWriter::DexMethodVisitor 752 MethodReference(dex_file_, it.GetMemberIndex())); in VisitMethod() 818 writer_->compiler_driver_->GetCompiledMethod(MethodReference(dex_file_, method_idx)); in VisitMethod() 827 ClassReference class_ref(dex_file_, class_def_index_); in EndClass() 894 MethodReference method_ref(dex_file_, it.GetMemberIndex()); in VisitMethod() 982 info.dex_file = dex_file_; in VisitMethod() [all …]
|