Home
last modified time | relevance | path

Searched refs:header_ (Results 1 – 16 of 16) sorted by relevance

/art/dexlayout/
Ddex_writer.cc113 : 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 …]
Dcompact_dex_writer.cc44 std::vector<uint32_t> debug_info_offsets(header_->MethodIds().Size(), 0u); in WriteDebugInfoOffsetTable()
52 for (auto& class_def : header_->ClassDefs()) { in WriteDebugInfoOffsetTable()
240 for (auto& class_def : header_->ClassDefs()) { in SortDebugInfosByMethodIndex()
258 std::sort(header_->DebugInfoItems().begin(), in SortDebugInfosByMethodIndex()
259 header_->DebugInfoItems().end(), in SortDebugInfosByMethodIndex()
274 header.checksum_ = header_->Checksum(); in WriteHeader()
275 std::copy_n(header_->Signature(), DexFile::kSha1DigestSize, header.signature_); in WriteHeader()
276 header.file_size_ = header_->FileSize(); in WriteHeader()
280 header.endian_tag_ = header_->EndianTag(); in WriteHeader()
281 header.link_size_ = header_->LinkSize(); in WriteHeader()
[all …]
Ddex_ir_builder.cc143 : 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 …]
Ddexlayout.cc587 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 …]
Ddexlayout.h112 header_(header) { } in DexLayout()
121 dex_ir::Header* GetHeader() const { return header_; } in GetHeader()
122 void SetHeader(dex_ir::Header* header) { header_ = header; } in SetHeader()
192 dex_ir::Header* header_; variable
Ddex_writer.h276 dex_ir::Header* const header_; variable
/art/libdexfile/dex/
Ddex_file_verifier.cc204 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()
578 uint32_t expected_size = header_->file_size_; in CheckHeader()
586 if (adler_checksum != header_->checksum_) { in CheckHeader()
588 ErrorStringPrintf("Bad checksum (%08x, expected %08x)", adler_checksum, header_->checksum_); in CheckHeader()
592 "Ignoring bad checksum (%08x, expected %08x)", adler_checksum, header_->checksum_); in CheckHeader()
597 if (header_->endian_tag_ != DexFile::kDexEndianConstant) { in CheckHeader()
598 ErrorStringPrintf("Unexpected endian_tag: %x", header_->endian_tag_); in CheckHeader()
606 if (header_->header_size_ != expected_header_size) { in CheckHeader()
[all …]
Ddex_file.cc112 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 …]
Ddex_file.h211 DCHECK(header_ != nullptr) << GetLocation(); in GetHeader()
212 return *header_; in GetHeader()
238 DCHECK(header_ != nullptr) << GetLocation(); in NumStringIds()
239 return header_->string_ids_size_; in NumStringIds()
250 CHECK_LT(&string_id, string_ids_ + header_->string_ids_size_) << GetLocation(); in GetIndexForStringId()
277 DCHECK(header_ != nullptr) << GetLocation(); in NumTypeIds()
278 return header_->type_ids_size_; in NumTypeIds()
293 CHECK_LT(&type_id, type_ids_ + header_->type_ids_size_) << GetLocation(); in GetIndexForTypeId()
312 DCHECK(header_ != nullptr) << GetLocation(); in NumFieldIds()
313 return header_->field_ids_size_; in NumFieldIds()
[all …]
Dstandard_dex_file.cc71 return IsMagicValid(header_->magic_); in IsMagicValid()
75 return IsVersionValid(header_->magic_); in IsVersionValid()
Dcompact_dex_file.cc46 return IsMagicValid(header_->magic_); in IsMagicValid()
50 return IsVersionValid(header_->magic_); in IsVersionValid()
/art/libelffile/elf/
Delf_debug_reader.h63 header_ = Read<Elf_Ehdr>(/*offset=*/ 0); in ElfDebugReader()
64 CHECK_EQ(header_->e_ident[0], ELFMAG0); in ElfDebugReader()
65 CHECK_EQ(header_->e_ident[1], ELFMAG1); in ElfDebugReader()
66 CHECK_EQ(header_->e_ident[2], ELFMAG2); in ElfDebugReader()
67 CHECK_EQ(header_->e_ident[3], ELFMAG3); in ElfDebugReader()
68 CHECK_EQ(header_->e_ehsize, sizeof(Elf_Ehdr)); in ElfDebugReader()
69 CHECK_EQ(header_->e_shentsize, sizeof(Elf_Shdr)); in ElfDebugReader()
72 sections_ = Read<Elf_Shdr>(header_->e_shoff, header_->e_shnum); in ElfDebugReader()
74 const char* name = Read<char>(sections_[header_->e_shstrndx].sh_offset + section.sh_name); in ElfDebugReader()
91 const Elf_Ehdr* GetHeader() { return header_; } in GetHeader()
[all …]
Delf_builder.h100 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/
Delf_file.cc43 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 …]
Delf_file_impl.h203 Elf_Ehdr* header_; variable
/art/compiler/optimizing/
Dnodes.cc623 os << "header: " << header_->GetBlockId() << std::endl; in Dump()
628 for (HBasicBlock* block : header_->GetPredecessors()) { in Dump()
820 HGraph* graph = header_->GetGraph(); in Populate()
821 blocks_.SetBit(header_->GetBlockId()); in Populate()
822 header_->SetInLoop(this); in Populate()
835 visited.SetBit(header_->GetBlockId()); in Populate()
881 HBasicBlock* block = header_->GetPredecessors()[0]; in GetPreHeader()
882 DCHECK(irreducible_ || (block == header_->GetDominator())); in GetPreHeader()
891 return other.blocks_.IsBitSet(header_->GetBlockId()); in IsIn()
909 if (!header_->Dominates(back_edge)) { in HasBackEdgeNotDominatedByHeader()