Lines Matching refs:ImageHeader
110 oat_file_option_string += ImageHeader::GetOatLocationFromImageLocation(image_filename); in GenerateImage()
180 static bool ReadSpecificImageHeader(const char* filename, ImageHeader* image_header) { in ReadSpecificImageHeader()
185 const bool success = image_file->ReadFully(image_header, sizeof(ImageHeader)); in ReadSpecificImageHeader()
230 static ImageHeader* ReadSpecificImageHeader(const char* filename, std::string* error_msg) { in ReadSpecificImageHeader()
231 std::unique_ptr<ImageHeader> hdr(new ImageHeader); in ReadSpecificImageHeader()
239 ImageHeader* ImageSpace::ReadImageHeaderOrDie(const char* image_location, in ReadImageHeaderOrDie()
242 ImageHeader* image_header = ReadImageHeader(image_location, image_isa, &error_msg); in ReadImageHeaderOrDie()
249 ImageHeader* ImageSpace::ReadImageHeader(const char* image_location, in ReadImageHeader()
262 std::unique_ptr<ImageHeader> sys_hdr(new ImageHeader); in ReadImageHeader()
263 std::unique_ptr<ImageHeader> cache_hdr(new ImageHeader); in ReadImageHeader()
292 std::unique_ptr<ImageHeader> system(ReadSpecificImageHeader(system_filename.c_str(), in ReadImageHeader()
294 std::unique_ptr<ImageHeader> cache(ReadSpecificImageHeader(cache_filename.c_str(), in ReadImageHeader()
315 ImageHeader hdr_a; in ChecksumsMatch()
316 ImageHeader hdr_b; in ChecksumsMatch()
599 uint8_t* current = Begin() + RoundUp(sizeof(ImageHeader), kObjectAlignment); in VerifyImageAllocations()
958 static bool RelocateInPlace(ImageHeader& image_header, in RelocateInPlace()
1034 const ImageSection& objects_section = image_header.GetImageSection(ImageHeader::kSectionObjects); in RelocateInPlace()
1063 auto* dex_caches = image_header.GetImageRoot<kWithoutReadBarrier>(ImageHeader::kDexCaches)-> in RelocateInPlace()
1138 const auto& class_table_section = image_header.GetImageSection(ImageHeader::kSectionClassTable); in RelocateInPlace()
1177 ImageHeader temp_image_header; in Init()
1178 ImageHeader* image_header = &temp_image_header; in Init()
1189 if (image_file_size < sizeof(ImageHeader) + image_header->GetDataSize()) { in Init()
1192 sizeof(ImageHeader) + image_header->GetDataSize()); in Init()
1212 for (size_t i = 0; i < ImageHeader::kSectionCount; ++i) { in Init()
1213 const auto section_idx = static_cast<ImageHeader::ImageSections>(i); in Init()
1221 const auto& bitmap_section = image_header->GetImageSection(ImageHeader::kSectionImageBitmap); in Init()
1224 const size_t image_bitmap_offset = RoundUp(sizeof(ImageHeader) + image_header->GetDataSize(), in Init()
1250 const ImageHeader::StorageMode storage_mode = image_header->GetStorageMode(); in Init()
1251 if (storage_mode == ImageHeader::kStorageModeUncompressed) { in Init()
1263 if (storage_mode != ImageHeader::kStorageModeLZ4 && in Init()
1264 storage_mode != ImageHeader::kStorageModeLZ4HC) { in Init()
1279 const size_t decompress_offset = sizeof(ImageHeader); // Skip the header. in Init()
1280 std::unique_ptr<MemMap> temp_map(MemMap::MapFile(sizeof(ImageHeader) + stored_size, in Init()
1292 memcpy(map->Begin(), image_header, sizeof(ImageHeader)); in Init()
1297 reinterpret_cast<char*>(temp_map->Begin()) + sizeof(ImageHeader), in Init()
1302 if (decompressed_size + sizeof(ImageHeader) != image_header->GetImageSize()) { in Init()
1305 decompressed_size + sizeof(ImageHeader), in Init()
1321 DCHECK_EQ(0, memcmp(image_header, map->Begin(), sizeof(ImageHeader))); in Init()
1338 image_header = reinterpret_cast<ImageHeader*>(map->Begin()); in Init()
1344 const ImageSection& image_objects = image_header->GetImageSection(ImageHeader::kSectionObjects); in Init()
1410 image_header->GetImageMethod(ImageHeader::kResolutionMethod)); in Init()
1412 image_header->GetImageMethod(ImageHeader::kImtConflictMethod)); in Init()
1414 image_header->GetImageMethod(ImageHeader::kImtUnimplementedMethod)); in Init()
1416 image_header->GetImageMethod(ImageHeader::kCalleeSaveMethod)); in Init()
1418 image_header->GetImageMethod(ImageHeader::kRefsOnlySaveMethod)); in Init()
1420 image_header->GetImageMethod(ImageHeader::kRefsAndArgsSaveMethod)); in Init()
1423 runtime->SetResolutionMethod(image_header->GetImageMethod(ImageHeader::kResolutionMethod)); in Init()
1424 runtime->SetImtConflictMethod(image_header->GetImageMethod(ImageHeader::kImtConflictMethod)); in Init()
1426 image_header->GetImageMethod(ImageHeader::kImtUnimplementedMethod)); in Init()
1428 image_header->GetImageMethod(ImageHeader::kCalleeSaveMethod), Runtime::kSaveAll); in Init()
1430 image_header->GetImageMethod(ImageHeader::kRefsOnlySaveMethod), Runtime::kRefsOnly); in Init()
1432 image_header->GetImageMethod(ImageHeader::kRefsAndArgsSaveMethod), Runtime::kRefsAndArgs); in Init()
1443 const ImageHeader& image_header = GetImageHeader(); in OpenOatFile()
1444 std::string oat_filename = ImageHeader::GetOatLocationFromImageLocation(image_path); in OpenOatFile()
1573 const ImageHeader& header = GetImageHeader(); in DumpSections()
1574 for (size_t i = 0; i < ImageHeader::kSectionCount; ++i) { in DumpSections()
1575 auto section_type = static_cast<ImageHeader::ImageSections>(i); in DumpSections()