/art/runtime/ |
D | dex_file_verifier.cc | 364 uint32_t expected_size = header_->file_size_; in CheckHeader() 372 if (adler_checksum != header_->checksum_) { in CheckHeader() 374 ErrorStringPrintf("Bad checksum (%08x, expected %08x)", adler_checksum, header_->checksum_); in CheckHeader() 378 "Ignoring bad checksum (%08x, expected %08x)", adler_checksum, header_->checksum_); in CheckHeader() 383 if (header_->endian_tag_ != DexFile::kDexEndianConstant) { in CheckHeader() 384 ErrorStringPrintf("Unexpected endian_tag: %x", header_->endian_tag_); in CheckHeader() 388 if (header_->header_size_ != sizeof(DexFile::Header)) { in CheckHeader() 389 ErrorStringPrintf("Bad header size: %ud", header_->header_size_); in CheckHeader() 395 CheckValidOffsetAndSize(header_->link_off_, in CheckHeader() 396 header_->link_size_, in CheckHeader() [all …]
|
D | dex_file.h | 525 DCHECK(header_ != nullptr) << GetLocation(); in GetHeader() 526 return *header_; in GetHeader() 542 DCHECK(header_ != nullptr) << GetLocation(); in NumStringIds() 543 return header_->string_ids_size_; in NumStringIds() 554 CHECK_LT(&string_id, string_ids_ + header_->string_ids_size_) << GetLocation(); in GetIndexForStringId() 582 DCHECK(header_ != nullptr) << GetLocation(); in NumTypeIds() 583 return header_->type_ids_size_; in NumTypeIds() 598 CHECK_LT(&type_id, type_ids_ + header_->type_ids_size_) << GetLocation(); in GetIndexForTypeId() 617 DCHECK(header_ != nullptr) << GetLocation(); in NumFieldIds() 618 return header_->field_ids_size_; in NumFieldIds() [all …]
|
D | elf_file.cc | 46 header_(nullptr), in ElfFileImpl() 139 size_t program_header_size = header_->e_phoff + (header_->e_phentsize * header_->e_phnum); in Setup() 432 header_ = reinterpret_cast<Elf_Ehdr*>(map_->Begin()); in SetMap() 433 if ((ELFMAG0 != header_->e_ident[EI_MAG0]) in SetMap() 434 || (ELFMAG1 != header_->e_ident[EI_MAG1]) in SetMap() 435 || (ELFMAG2 != header_->e_ident[EI_MAG2]) in SetMap() 436 || (ELFMAG3 != header_->e_ident[EI_MAG3])) { in SetMap() 440 header_->e_ident[EI_MAG0], in SetMap() 441 header_->e_ident[EI_MAG1], in SetMap() 442 header_->e_ident[EI_MAG2], in SetMap() [all …]
|
D | dex_file.cc | 533 header_(reinterpret_cast<const Header*>(base)), in DexFile() 534 string_ids_(reinterpret_cast<const StringId*>(base + header_->string_ids_off_)), in DexFile() 535 type_ids_(reinterpret_cast<const TypeId*>(base + header_->type_ids_off_)), in DexFile() 536 field_ids_(reinterpret_cast<const FieldId*>(base + header_->field_ids_off_)), in DexFile() 537 method_ids_(reinterpret_cast<const MethodId*>(base + header_->method_ids_off_)), in DexFile() 538 proto_ids_(reinterpret_cast<const ProtoId*>(base + header_->proto_ids_off_)), in DexFile() 539 class_defs_(reinterpret_cast<const ClassDef*>(base + header_->class_defs_off_)), in DexFile() 570 if (!IsMagicValid(header_->magic_)) { in CheckMagicAndVersion() 573 << " " << header_->magic_[0] in CheckMagicAndVersion() 574 << " " << header_->magic_[1] in CheckMagicAndVersion() [all …]
|
D | dex_file_verifier.h | 54 header_(&dex_file->GetHeader()), in DexFileVerifier() 206 const DexFile::Header* const header_; variable
|
D | elf_file_impl.h | 201 Elf_Ehdr* header_; variable
|
D | class_linker.cc | 1119 explicit FixupArtMethodArrayVisitor(const ImageHeader& header) : header_(header) {} in FixupArtMethodArrayVisitor() 1128 in_image_space = header_.GetImageSection(ImageHeader::kSectionDexCacheArrays).Contains( in Visit() 1129 reinterpret_cast<const uint8_t*>(resolved_methods) - header_.GetImageBegin()); in Visit() 1134 << reinterpret_cast<void*>(header_.GetImageBegin()); in Visit() 1143 const ImageHeader& header_; member in art::FixupArtMethodArrayVisitor
|
/art/compiler/ |
D | elf_builder.h | 106 header_(), in Section() 115 header_.sh_type = type; in Section() 116 header_.sh_flags = flags; in Section() 117 header_.sh_info = info; in Section() 118 header_.sh_addralign = align; in Section() 119 header_.sh_entsize = entsize; in Section() 135 if (header_.sh_flags != sections.back()->header_.sh_flags) { in Start() 136 header_.sh_addralign = kPageSize; in Start() 140 if (header_.sh_type != SHT_NOBITS) { in Start() 141 header_.sh_offset = owner_->AlignFileOffset(header_.sh_addralign); in Start() [all …]
|
/art/dexlayout/ |
D | dex_writer.cc | 247 for (std::unique_ptr<dex_ir::StringId>& string_id : header_->GetCollections().StringIds()) { in WriteStrings() 252 for (auto& string_data_pair : header_->GetCollections().StringDatas()) { in WriteStrings() 262 for (std::unique_ptr<dex_ir::TypeId>& type_id : header_->GetCollections().TypeIds()) { in WriteTypes() 271 for (auto& type_list_pair : header_->GetCollections().TypeLists()) { in WriteTypeLists() 285 for (std::unique_ptr<dex_ir::ProtoId>& proto_id : header_->GetCollections().ProtoIds()) { in WriteProtos() 295 for (std::unique_ptr<dex_ir::FieldId>& field_id : header_->GetCollections().FieldIds()) { in WriteFields() 306 for (std::unique_ptr<dex_ir::MethodId>& method_id : header_->GetCollections().MethodIds()) { in WriteMethods() 316 for (auto& encoded_array_pair : header_->GetCollections().EncodedArrayItems()) { in WriteEncodedArrays() 324 for (auto& annotation_pair : header_->GetCollections().AnnotationItems()) { in WriteAnnotations() 336 for (auto& annotation_set_pair : header_->GetCollections().AnnotationSetItems()) { in WriteAnnotationSets() [all …]
|
D | dexlayout.cc | 596 dex_ir::Collections& collections = header_->GetCollections(); in DumpFileHeader() 598 Asciify(sanitized, header_->Magic(), 8); in DumpFileHeader() 600 fprintf(out_file_, "checksum : %08x\n", header_->Checksum()); in DumpFileHeader() 602 header_->Signature()[0], header_->Signature()[1], in DumpFileHeader() 603 header_->Signature()[DexFile::kSha1DigestSize - 2], in DumpFileHeader() 604 header_->Signature()[DexFile::kSha1DigestSize - 1]); in DumpFileHeader() 605 fprintf(out_file_, "file_size : %d\n", header_->FileSize()); in DumpFileHeader() 606 fprintf(out_file_, "header_size : %d\n", header_->HeaderSize()); in DumpFileHeader() 607 fprintf(out_file_, "link_size : %d\n", header_->LinkSize()); in DumpFileHeader() 609 header_->LinkOffset(), header_->LinkOffset()); in DumpFileHeader() [all …]
|
D | dexlayout.h | 77 : options_(options), info_(info), out_file_(out_file), header_(header) { } in options_() 82 dex_ir::Header* GetHeader() const { return header_; } in GetHeader() 83 void SetHeader(dex_ir::Header* header) { header_ = header; } in SetHeader() 134 dex_ir::Header* header_; variable
|
D | dex_writer.h | 31 DexWriter(dex_ir::Header* header, MemMap* mem_map) : header_(header), mem_map_(mem_map) { } in DexWriter() 67 dex_ir::Header* const header_; variable
|
/art/compiler/optimizing/ |
D | nodes.cc | 461 os << "header: " << header_->GetBlockId() << std::endl; in Dump() 466 for (HBasicBlock* block : header_->GetPredecessors()) { in Dump() 657 HGraph* graph = header_->GetGraph(); in Populate() 658 blocks_.SetBit(header_->GetBlockId()); in Populate() 659 header_->SetInLoop(this); in Populate() 669 visited.SetBit(header_->GetBlockId()); in Populate() 706 HBasicBlock* block = header_->GetPredecessors()[0]; in GetPreHeader() 707 DCHECK(irreducible_ || (block == header_->GetDominator())); in GetPreHeader() 716 return other.blocks_.IsBitSet(header_->GetBlockId()); in IsIn() 734 if (!header_->Dominates(back_edge)) { in HasBackEdgeNotDominatedByHeader()
|
D | nodes.h | 749 : header_(header), in HLoopInformation() 765 return header_; in GetHeader() 769 header_ = block; in SetHeader() 844 HBasicBlock* header_; variable
|