/art/runtime/ |
D | image.cc | 28 const uint8_t ImageHeader::kImageMagic[] = { 'a', 'r', 't', '\n' }; 29 const uint8_t ImageHeader::kImageVersion[] = { '0', '5', '6', '\0' }; // ReachabilityFence. 31 ImageHeader::ImageHeader(uint32_t image_begin, in ImageHeader() function in art::ImageHeader 80 void ImageHeader::RelocateImage(off_t delta) { in RelocateImage() 91 void ImageHeader::RelocateImageObjects(off_t delta) { in RelocateImageObjects() 96 void ImageHeader::RelocateImageMethods(off_t delta) { in RelocateImageMethods() 102 bool ImageHeader::IsValid() const { in IsValid() 128 const char* ImageHeader::GetMagic() const { in GetMagic() 133 ArtMethod* ImageHeader::GetImageMethod(ImageMethod index) const { in GetImageMethod() 138 void ImageHeader::SetImageMethod(ImageMethod index, ArtMethod* method) { in SetImageMethod() [all …]
|
D | image-inl.h | 30 inline mirror::Object* ImageHeader::GetImageRoot(ImageRoot image_root) const { in GetImageRoot() 36 inline mirror::ObjectArray<mirror::Object>* ImageHeader::GetImageRoots() const { in GetImageRoots() 51 inline void ImageHeader::VisitPackedImTables(const Visitor& visitor, in VisitPackedImTables() 69 inline void ImageHeader::VisitPackedImtConflictTables(const Visitor& visitor, in VisitPackedImtConflictTables()
|
D | image.h | 86 class PACKED(4) ImageHeader { 96 ImageHeader() in ImageHeader() function 116 ImageHeader(uint32_t image_begin, 245 return GetImageSection(ImageHeader::kSectionArtFields); in GetFieldsSection() 456 std::ostream& operator<<(std::ostream& os, const ImageHeader::ImageMethod& policy); 457 std::ostream& operator<<(std::ostream& os, const ImageHeader::ImageRoot& policy); 458 std::ostream& operator<<(std::ostream& os, const ImageHeader::ImageSections& section); 460 std::ostream& operator<<(std::ostream& os, const ImageHeader::StorageMode& mode);
|
D | dexopt_test.cc | 121 std::unique_ptr<ImageHeader> image_header( in GenerateOatForTest()
|
D | runtime.cc | 994 ImageHeader::GetVdexLocationFromImageLocation(system_filename.c_str()); in OpenDexFilesFromImage() 996 ImageHeader::GetOatLocationFromImageLocation(system_filename.c_str()); in OpenDexFilesFromImage() 998 ImageHeader::GetOatLocationFromImageLocation(image_locations[index].c_str()); in OpenDexFilesFromImage() 2053 auto* obj = image_header.GetImageRoot(static_cast<ImageHeader::ImageRoot>(i)); in VisitImageRoots()
|
D | intern_table.cc | 183 const ImageHeader* const header = &image_space->GetImageHeader(); in AddImagesStringsToTable()
|
D | class_linker.cc | 1017 spaces[0]->GetImageHeader().GetImageRoot(ImageHeader::kClassRoots))); in InitFromBootImage() 1285 const ImageHeader& header = space->GetImageHeader(); in Update() 1417 const ImageHeader& header = space->GetImageHeader(); in OpenImageDexFiles() 1418 ObjPtr<mirror::Object> dex_caches_object = header.GetImageRoot(ImageHeader::kDexCaches); in OpenImageDexFiles() 1581 static void VerifyAppImage(const ImageHeader& header, in VerifyAppImage() 1649 const ImageHeader& header = space->GetImageHeader(); in AddImageSpace() 1650 ObjPtr<mirror::Object> dex_caches_object = header.GetImageRoot(ImageHeader::kDexCaches); in AddImageSpace() 1662 size_t expected_image_roots = ImageHeader::NumberOfImageRoots(app_image); in AddImageSpace() 1673 header.GetImageRoot(ImageHeader::kClassRoots)->AsObjectArray<mirror::Class>())); in AddImageSpace() 1674 static_assert(ImageHeader::kClassLoader + 1u == ImageHeader::kImageRootsMax, in AddImageSpace() [all …]
|
D | oat_file_assistant.cc | 938 std::unique_ptr<ImageHeader> image_header( in GetRuntimeImageInfo()
|
/art/dex2oat/linker/ |
D | image_write_read_test.cc | 23 TestWriteRead(ImageHeader::kStorageModeUncompressed); in TEST_F() 27 TestWriteRead(ImageHeader::kStorageModeLZ4); in TEST_F() 31 TestWriteRead(ImageHeader::kStorageModeLZ4HC); in TEST_F()
|
D | image_test.cc | 35 Compile(ImageHeader::kStorageModeUncompressed, helper, "ImageLayoutA", {"LMyClass;"}); in TEST_F() 44 Compile(ImageHeader::kStorageModeUncompressed, helper, "ImageLayoutB", {"LMyClass;"}); in TEST_F() 67 ImageSection sections[ImageHeader::kSectionCount]; in TEST_F() 68 ImageHeader image_header(image_begin, in TEST_F() 84 ImageHeader::kDefaultStorageMode, in TEST_F() 103 Compile(ImageHeader::kStorageModeUncompressed, in TEST_F()
|
D | image_writer.cc | 115 const ImageHeader& image_header = boot_image_space->GetImageHeader(); in IsInBootOatFile() 232 ImageHeader* const image_header = reinterpret_cast<ImageHeader*>(image_info.image_->Begin()); in Write() 233 const size_t image_data_size = image_header->GetImageSize() - sizeof(ImageHeader); in Write() 234 char* image_data = reinterpret_cast<char*>(image_info.image_->Begin()) + sizeof(ImageHeader); in Write() 241 case ImageHeader::kStorageModeLZ4HC: // Fall-through. in Write() 242 case ImageHeader::kStorageModeLZ4: { in Write() 246 reinterpret_cast<char*>(image_info.image_->Begin()) + sizeof(ImageHeader), in Write() 266 case ImageHeader::kStorageModeUncompressed: { in Write() 295 if (!image_file->PwriteFully(image_data_to_write, data_size, sizeof(ImageHeader))) { in Write() 305 size_t bitmap_position_in_file = RoundUp(sizeof(ImageHeader) + data_size, kPageSize); in Write() [all …]
|
D | image_test.h | 66 ImageHeader::StorageMode storage_mode); 80 void TestWriteRead(ImageHeader::StorageMode storage_mode); 82 void Compile(ImageHeader::StorageMode storage_mode, 135 ImageHeader image_header; in GetImageObjectSectionSizes() 144 ImageHeader::StorageMode storage_mode) { in Compile() 370 inline void ImageTest::Compile(ImageHeader::StorageMode storage_mode, in Compile() 397 inline void ImageTest::TestWriteRead(ImageHeader::StorageMode storage_mode) { in TestWriteRead() 404 ImageHeader image_header; in TestWriteRead() 470 if (storage_mode == ImageHeader::kStorageModeUncompressed) { in TestWriteRead()
|
D | image_writer.h | 79 ImageHeader::StorageMode image_storage_mode, 313 size_t image_end_ = RoundUp(sizeof(ImageHeader), kObjectAlignment); 620 ArtMethod* image_methods_[ImageHeader::kImageMethodsCount]; 635 const ImageHeader::StorageMode image_storage_mode_;
|
/art/runtime/gc/space/ |
D | image_space.cc | 131 oat_file_option_string += ImageHeader::GetOatLocationFromImageLocation(image_filename); in GenerateImage() 229 static bool ReadSpecificImageHeader(const char* filename, ImageHeader* image_header) { in ReadSpecificImageHeader() 234 const bool success = image_file->ReadFully(image_header, sizeof(ImageHeader)); in ReadSpecificImageHeader() 310 static ImageHeader* ReadSpecificImageHeader(const char* filename, std::string* error_msg) { in ReadSpecificImageHeader() 311 std::unique_ptr<ImageHeader> hdr(new ImageHeader); in ReadSpecificImageHeader() 319 ImageHeader* ImageSpace::ReadImageHeader(const char* image_location, in ReadImageHeader() 332 std::unique_ptr<ImageHeader> sys_hdr(new ImageHeader); in ReadImageHeader() 333 std::unique_ptr<ImageHeader> cache_hdr(new ImageHeader); in ReadImageHeader() 362 std::unique_ptr<ImageHeader> system(ReadSpecificImageHeader(system_filename.c_str(), in ReadImageHeader() 364 std::unique_ptr<ImageHeader> cache(ReadSpecificImageHeader(cache_filename.c_str(), in ReadImageHeader() [all …]
|
D | image_space.h | 59 static ImageHeader* ReadImageHeader(const char* image_location, 73 const ImageHeader& GetImageHeader() const { in GetImageHeader() 74 return *reinterpret_cast<ImageHeader*>(Begin()); in GetImageHeader()
|
/art/patchoat/ |
D | patchoat.h | 35 class ImageHeader; variable 82 static bool IsImagePic(const ImageHeader& image_header, const std::string& image_path); 104 void PatchArtFields(const ImageHeader* image_header) REQUIRES_SHARED(Locks::mutator_lock_); 105 void PatchArtMethods(const ImageHeader* image_header) REQUIRES_SHARED(Locks::mutator_lock_); 106 void PatchImTables(const ImageHeader* image_header) REQUIRES_SHARED(Locks::mutator_lock_); 107 void PatchImtConflictTables(const ImageHeader* image_header) 109 void PatchInternedStrings(const ImageHeader* image_header) 111 void PatchClassTable(const ImageHeader* image_header)
|
D | patchoat.cc | 198 const ImageHeader& relocated_header = in GeneratePatch() 199 *reinterpret_cast<const ImageHeader*>(relocated.Begin()); in GeneratePatch() 338 const ImageHeader& image_header = *reinterpret_cast<const ImageHeader*>(image.get()); in CheckImageIdenticalToOriginalExceptForRelocation() 410 return VerifySymlink(ImageHeader::GetVdexLocationFromImageLocation(input_image_filename), in VerifyVdexAndOatSymlinks() 411 ImageHeader::GetVdexLocationFromImageLocation(output_image_filename)) in VerifyVdexAndOatSymlinks() 412 && VerifySymlink(ImageHeader::GetOatLocationFromImageLocation(input_image_filename), in VerifyVdexAndOatSymlinks() 413 ImageHeader::GetOatLocationFromImageLocation(output_image_filename)); in VerifyVdexAndOatSymlinks() 419 ImageHeader::GetVdexLocationFromImageLocation(input_image_filename); in CreateVdexAndOatSymlinks() 421 ImageHeader::GetOatLocationFromImageLocation(input_image_filename); in CreateVdexAndOatSymlinks() 450 ImageHeader::GetVdexLocationFromImageLocation(output_image_filename); in CreateVdexAndOatSymlinks() [all …]
|
D | patchoat_test.cc | 232 ImageHeader src_header; in CopyImageChecksumAndSetPatchDelta() 244 ImageHeader dest_header; in CopyImageChecksumAndSetPatchDelta() 570 ASSERT_EQ(truncate(relocated_image_filename.c_str(), sizeof(ImageHeader)), 0) in TEST_F()
|
/art/dex2oat/ |
D | dex2oat_options.cc | 135 .WithType<ImageHeader::StorageMode>() in AddImageMappings() 136 .WithValueMap({{"lz4", ImageHeader::kStorageModeLZ4}, in AddImageMappings() 137 {"lz4hc", ImageHeader::kStorageModeLZ4HC}, in AddImageMappings() 138 {"uncompressed", ImageHeader::kStorageModeUncompressed}}) in AddImageMappings()
|
D | dex2oat_options.def | 58 DEX2OAT_OPTIONS_KEY (ImageHeader::StorageMode, ImageFormat)
|
D | dex2oat_test.cc | 729 ImageHeader image_header; in GetImageObjectSectionSize() 858 ImageHeader image_header; in CheckResult() 2130 ImageHeader header = {}; in TEST_F() 2135 EXPECT_GT(header.GetImageSection(ImageHeader::kSectionObjects).Size(), 0u); in TEST_F() 2136 EXPECT_EQ(header.GetImageSection(ImageHeader::kSectionArtMethods).Size(), 0u); in TEST_F() 2137 EXPECT_EQ(header.GetImageSection(ImageHeader::kSectionArtFields).Size(), 0u); in TEST_F()
|
/art/imgdiag/ |
D | imgdiag.cc | 190 const ImageHeader& image_header) { in RemoteContentsPointerToLocal() 223 const ImageHeader& image_header) : in RegionCommon() 299 const ImageHeader& image_header_; 371 const ImageHeader& image_header, in RegionSpecializedBase() 697 const ImageHeader& image_header, in RegionSpecializedBase() 937 const ImageHeader& image_header, in RegionData() 1103 const ImageHeader& image_header, in ImgDiagDumper() 1311 std::vector<size_t> private_dirty_pages_for_section(ImageHeader::kSectionCount, 0u); in ComputeDirtyBytes() 1365 for (size_t i = 0; i < ImageHeader::kSectionCount; ++i) { in ComputeDirtyBytes() 1366 const ImageHeader::ImageSections section = static_cast<ImageHeader::ImageSections>(i); in ComputeDirtyBytes() [all …]
|
/art/runtime/gc/collector/ |
D | immune_spaces_test.cc | 113 ImageSection sections[ImageHeader::kSectionCount]; in CreateImageSpace() 114 new (map->Begin()) ImageHeader( in CreateImageSpace() 132 ImageHeader::kStorageModeUncompressed, in CreateImageSpace() 221 const ImageHeader& image_header = image_space->GetImageHeader(); in TEST_F()
|
/art/oatdump/ |
D | oatdump.cc | 1978 const ImageHeader& image_header, in ImageDumper() 1999 for (size_t i = 0; i < ImageHeader::kSectionCount; ++i) { in Dump() 2000 auto section = static_cast<ImageHeader::ImageSections>(i); in Dump() 2021 static_cast<size_t>(ImageHeader::kImageRootsMax), "sizes must match"); in Dump() 2022 DCHECK_LE(image_header_.GetImageRoots()->GetLength(), ImageHeader::kImageRootsMax); in Dump() 2024 ImageHeader::ImageRoot image_root = static_cast<ImageHeader::ImageRoot>(i); in Dump() 2061 static_cast<size_t>(ImageHeader::kImageMethodsCount), "sizes must match"); in Dump() 2062 for (int i = 0; i < ImageHeader::kImageMethodsCount; i++) { in Dump() 2063 auto image_root = static_cast<ImageHeader::ImageMethod>(i); in Dump() 2074 std::string oat_location = ImageHeader::GetOatLocationFromImageLocation(image_filename); in Dump() [all …]
|
/art/runtime/native/ |
D | dalvik_system_VMRuntime.cc | 658 std::unique_ptr<ImageHeader> image_header(gc::space::ImageSpace::ReadImageHeader( in VMRuntime_isBootClassPathOnDisk()
|