/art/libelffile/elf/ |
D | elf_debug_reader.h | 64 header_ = Read<Elf_Ehdr>(/*offset=*/ 0); in ElfDebugReader() 65 CHECK_EQ(header_->e_ident[0], ELFMAG0); in ElfDebugReader() 66 CHECK_EQ(header_->e_ident[1], ELFMAG1); in ElfDebugReader() 67 CHECK_EQ(header_->e_ident[2], ELFMAG2); in ElfDebugReader() 68 CHECK_EQ(header_->e_ident[3], ELFMAG3); in ElfDebugReader() 69 CHECK_EQ(header_->e_ident[4], sizeof(Elf_Addr) / sizeof(uint32_t)); in ElfDebugReader() 70 CHECK_EQ(header_->e_ehsize, sizeof(Elf_Ehdr)); in ElfDebugReader() 73 CHECK_EQ(header_->e_shentsize, sizeof(Elf_Shdr)); in ElfDebugReader() 74 sections_ = Read<Elf_Shdr>(header_->e_shoff, header_->e_shnum); in ElfDebugReader() 76 const char* name = Read<char>(sections_[header_->e_shstrndx].sh_offset + section.sh_name); in ElfDebugReader() [all …]
|
D | elf_builder.h | 100 header_(), in Section() 107 header_.sh_type = type; in Section() 108 header_.sh_flags = flags; in Section() 109 header_.sh_info = info; in Section() 110 header_.sh_addralign = align; in Section() 111 header_.sh_entsize = entsize; in Section() 122 CHECK_NE(header_.sh_flags & SHF_ALLOC, 0u); in AllocateVirtualMemory() 124 CHECK_EQ(header_.sh_addr, 0u); in AllocateVirtualMemory() 125 header_.sh_addr = RoundUp(addr, align); in AllocateVirtualMemory() 126 CHECK(header_.sh_size == 0u || header_.sh_size == size); in AllocateVirtualMemory() [all …]
|
/art/libdexfile/dex/ |
D | dex_file_verifier.cc | 134 header_(&dex_file->GetHeader()), in DexFileVerifier() 181 DCHECK_LT(string_idx.index_, header_->string_ids_size_); in GetString() 183 OffsetToPtr<dex::StringId>(header_->string_ids_off_)[string_idx.index_]; in GetString() 194 CHECK_LT(class_idx.index_, header_->type_ids_size_); in GetClass() 196 const dex::TypeId& type_id = OffsetToPtr<dex::TypeId>(header_->type_ids_off_)[class_idx.index_]; in GetClass() 206 CHECK_LT(idx, header_->field_ids_size_); in GetFieldDescription() 208 const dex::FieldId& field_id = OffsetToPtr<dex::FieldId>(header_->field_ids_off_)[idx]; in GetFieldDescription() 218 CHECK_LT(idx, header_->method_ids_size_); in GetMethodDescription() 220 const dex::MethodId& method_id = OffsetToPtr<dex::MethodId>(header_->method_ids_off_)[idx]; in GetMethodDescription() 406 const DexFile::Header* const header_; member in art::dex::DexFileVerifier [all …]
|
D | dex_file.cc | 146 const uint8_t* data = reinterpret_cast<const uint8_t*>(header_); in GetSection() 162 header_(reinterpret_cast<const Header*>(base)), in DexFile() 163 string_ids_(GetSection<StringId>(&header_->string_ids_off_, container.get())), in DexFile() 164 type_ids_(GetSection<TypeId>(&header_->type_ids_off_, container.get())), in DexFile() 165 field_ids_(GetSection<FieldId>(&header_->field_ids_off_, container.get())), in DexFile() 166 method_ids_(GetSection<MethodId>(&header_->method_ids_off_, container.get())), in DexFile() 167 proto_ids_(GetSection<ProtoId>(&header_->proto_ids_off_, container.get())), in DexFile() 168 class_defs_(GetSection<ClassDef>(&header_->class_defs_off_, container.get())), in DexFile() 200 CHECK_GE(container_->End(), reinterpret_cast<const uint8_t*>(header_)); in Init() 201 size_t container_size = container_->End() - reinterpret_cast<const uint8_t*>(header_); in Init() [all …]
|
D | dex_file.h | 283 Sha1 GetSha1() const { return header_->signature_; } in GetSha1() 286 DCHECK(header_ != nullptr) << GetLocation(); in GetHeader() 287 return *header_; in GetHeader() 302 return {Begin() - header_->HeaderOffset(), header_->ContainerSize()}; in GetDexContainerRange() 327 DCHECK(header_ != nullptr) << GetLocation(); in NumStringIds() 328 return header_->string_ids_size_; in NumStringIds() 339 CHECK_LT(&string_id, string_ids_ + header_->string_ids_size_) << GetLocation(); in GetIndexForStringId() 364 DCHECK(header_ != nullptr) << GetLocation(); in NumTypeIds() 365 return header_->type_ids_size_; in NumTypeIds() 380 CHECK_LT(&type_id, type_ids_ + header_->type_ids_size_) << GetLocation(); in GetIndexForTypeId() [all …]
|
D | standard_dex_file.cc | 73 return IsMagicValid(header_->magic_); in IsMagicValid() 76 bool StandardDexFile::IsVersionValid() const { return IsVersionValid(header_->magic_.data()); } in IsVersionValid()
|
D | compact_dex_file.cc | 45 return IsMagicValid(header_->magic_); in IsMagicValid() 48 bool CompactDexFile::IsVersionValid() const { return IsVersionValid(header_->magic_.data()); } in IsVersionValid()
|
/art/runtime/oat/ |
D | elf_file.cc | 43 header_(nullptr), in ElfFileImpl() 133 size_t program_header_size = header_->e_phoff + (header_->e_phentsize * header_->e_phnum); in Setup() 425 header_ = reinterpret_cast<Elf_Ehdr*>(map_.Begin()); in SetMap() 426 if ((ELFMAG0 != header_->e_ident[EI_MAG0]) in SetMap() 427 || (ELFMAG1 != header_->e_ident[EI_MAG1]) in SetMap() 428 || (ELFMAG2 != header_->e_ident[EI_MAG2]) in SetMap() 429 || (ELFMAG3 != header_->e_ident[EI_MAG3])) { in SetMap() 433 header_->e_ident[EI_MAG0], in SetMap() 434 header_->e_ident[EI_MAG1], in SetMap() 435 header_->e_ident[EI_MAG2], in SetMap() [all …]
|
D | elf_file_impl.h | 200 Elf_Ehdr* header_; variable
|
/art/runtime/ |
D | runtime_image.cc | 151 header_ = ImageHeader( in Generate() 170 header_.data_size_ = sections_end - sizeof(ImageHeader); in Generate() 185 auto objects_section = header_.GetImageSection(ImageHeader::kSectionObjects); in FillData() 188 auto fields_section = header_.GetImageSection(ImageHeader::kSectionArtFields); in FillData() 191 auto methods_section = header_.GetImageSection(ImageHeader::kSectionArtMethods); in FillData() 194 auto im_tables_section = header_.GetImageSection(ImageHeader::kSectionImTables); in FillData() 197 auto intern_section = header_.GetImageSection(ImageHeader::kSectionInternedStrings); in FillData() 200 auto class_table_section = header_.GetImageSection(ImageHeader::kSectionClassTable); in FillData() 204 header_.GetImageSection(ImageHeader::kSectionStringReferenceOffsets); in FillData() 209 auto dex_cache_section = header_.GetImageSection(ImageHeader::kSectionDexCacheArrays); in FillData() [all …]
|
/art/compiler/optimizing/ |
D | nodes.cc | 681 os << "header: " << header_->GetBlockId() << std::endl; in Dump() 686 for (HBasicBlock* block : header_->GetPredecessors()) { in Dump() 878 HGraph* graph = header_->GetGraph(); in Populate() 879 blocks_.SetBit(header_->GetBlockId()); in Populate() 880 header_->SetInLoop(this); in Populate() 892 visited.SetBit(header_->GetBlockId()); in Populate() 938 HBasicBlock* block = header_->GetPredecessors()[0]; in GetPreHeader() 939 DCHECK(irreducible_ || (block == header_->GetDominator())); in GetPreHeader() 948 return other.blocks_.IsBitSet(header_->GetBlockId()); in IsIn() 966 if (!header_->Dominates(back_edge)) { in HasBackEdgeNotDominatedByHeader()
|
D | nodes.h | 923 : header_(header), in HLoopInformation() 942 return header_; in GetHeader() 946 header_ = block; in SetHeader() 1031 HBasicBlock* header_; variable
|