Lines Matching refs:ImageHeader
204 oat_file_option_string += ImageHeader::GetOatLocationFromImageLocation(image_filename); in GenerateImage()
274 static bool ReadSpecificImageHeader(const char* filename, ImageHeader* image_header) { in ReadSpecificImageHeader()
279 const bool success = image_file->ReadFully(image_header, sizeof(ImageHeader)); in ReadSpecificImageHeader()
304 input_oat_location_arg += ImageHeader::GetOatLocationFromImageLocation(image_location); in RelocateImage()
307 output_oat_filename_arg += ImageHeader::GetOatLocationFromImageLocation(dest_filename); in RelocateImage()
333 static ImageHeader* ReadSpecificImageHeader(const char* filename, std::string* error_msg) { in ReadSpecificImageHeader()
334 std::unique_ptr<ImageHeader> hdr(new ImageHeader); in ReadSpecificImageHeader()
342 ImageHeader* ImageSpace::ReadImageHeaderOrDie(const char* image_location, in ReadImageHeaderOrDie()
345 ImageHeader* image_header = ReadImageHeader(image_location, image_isa, &error_msg); in ReadImageHeaderOrDie()
352 ImageHeader* ImageSpace::ReadImageHeader(const char* image_location, in ReadImageHeader()
365 std::unique_ptr<ImageHeader> sys_hdr(new ImageHeader); in ReadImageHeader()
366 std::unique_ptr<ImageHeader> cache_hdr(new ImageHeader); in ReadImageHeader()
395 std::unique_ptr<ImageHeader> system(ReadSpecificImageHeader(system_filename.c_str(), in ReadImageHeader()
397 std::unique_ptr<ImageHeader> cache(ReadSpecificImageHeader(cache_filename.c_str(), in ReadImageHeader()
418 ImageHeader hdr_a; in ChecksumsMatch()
419 ImageHeader hdr_b; in ChecksumsMatch()
648 uint8_t* current = Begin() + RoundUp(sizeof(ImageHeader), kObjectAlignment); in VerifyImageAllocations()
677 ImageHeader image_header; in Init()
693 for (size_t i = 0; i < ImageHeader::kSectionCount; ++i) { in Init()
694 const auto section_idx = static_cast<ImageHeader::ImageSections>(i); in Init()
702 const auto& bitmap_section = image_header.GetImageSection(ImageHeader::kSectionImageBitmap); in Init()
720 DCHECK_EQ(0, memcmp(&image_header, map->Begin(), sizeof(ImageHeader))); in Init()
743 map->Begin() + image_header.GetImageSection(ImageHeader::kSectionObjects).End(); in Init()
768 runtime->SetResolutionMethod(image_header.GetImageMethod(ImageHeader::kResolutionMethod)); in Init()
769 runtime->SetImtConflictMethod(image_header.GetImageMethod(ImageHeader::kImtConflictMethod)); in Init()
771 image_header.GetImageMethod(ImageHeader::kImtUnimplementedMethod)); in Init()
773 image_header.GetImageMethod(ImageHeader::kCalleeSaveMethod), Runtime::kSaveAll); in Init()
775 image_header.GetImageMethod(ImageHeader::kRefsOnlySaveMethod), Runtime::kRefsOnly); in Init()
777 image_header.GetImageMethod(ImageHeader::kRefsAndArgsSaveMethod), Runtime::kRefsAndArgs); in Init()
787 const ImageHeader& image_header = GetImageHeader(); in OpenOatFile()
788 std::string oat_filename = ImageHeader::GetOatLocationFromImageLocation(image_path); in OpenOatFile()