/art/dexlayout/ |
D | dex_writer.cc | 113 : header_(dex_layout->GetHeader()), in DexWriter() 234 for (auto& string_id : header_->StringIds()) { in WriteStringIds() 244 header_->StringIds().SetOffset(start); in WriteStringIds() 259 for (auto& string_data : header_->StringDatas()) { in WriteStringDatas() 263 header_->StringDatas().SetOffset(start); in WriteStringDatas() 270 for (auto& type_id : header_->TypeIds()) { in WriteTypeIds() 277 header_->TypeIds().SetOffset(start); in WriteTypeIds() 285 for (auto& type_list : header_->TypeLists()) { in WriteTypeLists() 296 header_->TypeLists().SetOffset(start); in WriteTypeLists() 303 for (auto& proto_id : header_->ProtoIds()) { in WriteProtoIds() [all …]
|
D | compact_dex_writer.cc | 43 std::vector<uint32_t> debug_info_offsets(header_->MethodIds().Size(), 0u); in WriteDebugInfoOffsetTable() 51 for (auto& class_def : header_->ClassDefs()) { in WriteDebugInfoOffsetTable() 238 for (auto& class_def : header_->ClassDefs()) { in SortDebugInfosByMethodIndex() 256 std::sort(header_->DebugInfoItems().begin(), in SortDebugInfosByMethodIndex() 257 header_->DebugInfoItems().end(), in SortDebugInfosByMethodIndex() 272 header.checksum_ = header_->Checksum(); in WriteHeader() 273 std::copy_n(header_->Signature(), DexFile::kSha1DigestSize, header.signature_); in WriteHeader() 274 header.file_size_ = header_->FileSize(); in WriteHeader() 278 header.endian_tag_ = header_->EndianTag(); in WriteHeader() 279 header.link_size_ = header_->LinkSize(); in WriteHeader() [all …]
|
D | dex_ir_builder.cc | 143 : header_(header), eagerly_assign_offsets_(eagerly_assign_offsets) { } in BuilderMaps() 227 Header* header_; member in art::dex_ir::BuilderMaps 345 CHECK_EQ(item->size_, header_->StringIds().Size()); in CheckAndSetRemainingOffsets() 346 CHECK_EQ(item->offset_, header_->StringIds().GetOffset()); in CheckAndSetRemainingOffsets() 349 CHECK_EQ(item->size_, header_->TypeIds().Size()); in CheckAndSetRemainingOffsets() 350 CHECK_EQ(item->offset_, header_->TypeIds().GetOffset()); in CheckAndSetRemainingOffsets() 353 CHECK_EQ(item->size_, header_->ProtoIds().Size()); in CheckAndSetRemainingOffsets() 354 CHECK_EQ(item->offset_, header_->ProtoIds().GetOffset()); in CheckAndSetRemainingOffsets() 357 CHECK_EQ(item->size_, header_->FieldIds().Size()); in CheckAndSetRemainingOffsets() 358 CHECK_EQ(item->offset_, header_->FieldIds().GetOffset()); in CheckAndSetRemainingOffsets() [all …]
|
D | dexlayout.cc | 587 Asciify(sanitized, header_->Magic(), 8); in DumpFileHeader() 589 fprintf(out_file_, "checksum : %08x\n", header_->Checksum()); in DumpFileHeader() 591 header_->Signature()[0], header_->Signature()[1], in DumpFileHeader() 592 header_->Signature()[DexFile::kSha1DigestSize - 2], in DumpFileHeader() 593 header_->Signature()[DexFile::kSha1DigestSize - 1]); in DumpFileHeader() 594 fprintf(out_file_, "file_size : %d\n", header_->FileSize()); in DumpFileHeader() 595 fprintf(out_file_, "header_size : %d\n", header_->HeaderSize()); in DumpFileHeader() 596 fprintf(out_file_, "link_size : %d\n", header_->LinkSize()); in DumpFileHeader() 598 header_->LinkOffset(), header_->LinkOffset()); in DumpFileHeader() 599 fprintf(out_file_, "string_ids_size : %d\n", header_->StringIds().Size()); in DumpFileHeader() [all …]
|
D | dexlayout.h | 111 header_(header) { } in DexLayout() 120 dex_ir::Header* GetHeader() const { return header_; } in GetHeader() 121 void SetHeader(dex_ir::Header* header) { header_ = header; } in SetHeader() 191 dex_ir::Header* header_; variable
|
D | dex_writer.h | 276 dex_ir::Header* const header_; variable
|
/art/libdexfile/dex/ |
D | dex_file_verifier.cc | 204 header_(&dex_file->GetHeader()), in DexFileVerifier() 380 const DexFile::Header* const header_; member in art::dex::DexFileVerifier 449 DCHECK_LT(idx.index_, header_->type_ids_size_); in VerifyTypeDescriptor() 574 uint32_t expected_size = header_->file_size_; in CheckHeader() 582 if (adler_checksum != header_->checksum_) { in CheckHeader() 584 ErrorStringPrintf("Bad checksum (%08x, expected %08x)", adler_checksum, header_->checksum_); in CheckHeader() 588 "Ignoring bad checksum (%08x, expected %08x)", adler_checksum, header_->checksum_); in CheckHeader() 593 if (header_->endian_tag_ != DexFile::kDexEndianConstant) { in CheckHeader() 594 ErrorStringPrintf("Unexpected endian_tag: %x", header_->endian_tag_); in CheckHeader() 602 if (header_->header_size_ != expected_header_size) { in CheckHeader() [all …]
|
D | dex_file.cc | 112 header_(reinterpret_cast<const Header*>(base)), in DexFile() 113 string_ids_(reinterpret_cast<const StringId*>(base + header_->string_ids_off_)), in DexFile() 114 type_ids_(reinterpret_cast<const TypeId*>(base + header_->type_ids_off_)), in DexFile() 115 field_ids_(reinterpret_cast<const FieldId*>(base + header_->field_ids_off_)), in DexFile() 116 method_ids_(reinterpret_cast<const MethodId*>(base + header_->method_ids_off_)), in DexFile() 117 proto_ids_(reinterpret_cast<const ProtoId*>(base + header_->proto_ids_off_)), in DexFile() 118 class_defs_(reinterpret_cast<const ClassDef*>(base + header_->class_defs_off_)), in DexFile() 156 << " " << header_->magic_[0] in CheckMagicAndVersion() 157 << " " << header_->magic_[1] in CheckMagicAndVersion() 158 << " " << header_->magic_[2] in CheckMagicAndVersion() [all …]
|
D | dex_file.h | 212 DCHECK(header_ != nullptr) << GetLocation(); in GetHeader() 213 return *header_; in GetHeader() 239 DCHECK(header_ != nullptr) << GetLocation(); in NumStringIds() 240 return header_->string_ids_size_; in NumStringIds() 251 CHECK_LT(&string_id, string_ids_ + header_->string_ids_size_) << GetLocation(); in GetIndexForStringId() 281 DCHECK(header_ != nullptr) << GetLocation(); in NumTypeIds() 282 return header_->type_ids_size_; in NumTypeIds() 297 CHECK_LT(&type_id, type_ids_ + header_->type_ids_size_) << GetLocation(); in GetIndexForTypeId() 316 DCHECK(header_ != nullptr) << GetLocation(); in NumFieldIds() 317 return header_->field_ids_size_; in NumFieldIds() [all …]
|
D | standard_dex_file.cc | 71 return IsMagicValid(header_->magic_); in IsMagicValid() 75 return IsVersionValid(header_->magic_); in IsVersionValid()
|
D | compact_dex_file.cc | 46 return IsMagicValid(header_->magic_); in IsMagicValid() 50 return IsVersionValid(header_->magic_); in IsVersionValid()
|
/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/runtime/ |
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 | 196 Elf_Ehdr* header_; variable
|
/art/compiler/optimizing/ |
D | nodes.cc | 796 os << "header: " << header_->GetBlockId() << std::endl; in Dump() 801 for (HBasicBlock* block : header_->GetPredecessors()) { in Dump() 993 HGraph* graph = header_->GetGraph(); in Populate() 994 blocks_.SetBit(header_->GetBlockId()); in Populate() 995 header_->SetInLoop(this); in Populate() 1008 visited.SetBit(header_->GetBlockId()); in Populate() 1054 HBasicBlock* block = header_->GetPredecessors()[0]; in GetPreHeader() 1055 DCHECK(irreducible_ || (block == header_->GetDominator())); in GetPreHeader() 1064 return other.blocks_.IsBitSet(header_->GetBlockId()); in IsIn() 1082 if (!header_->Dominates(back_edge)) { in HasBackEdgeNotDominatedByHeader()
|
D | nodes.h | 896 : header_(header), in HLoopInformation() 915 return header_; in GetHeader() 919 header_ = block; in SetHeader() 1004 HBasicBlock* header_; variable
|