/art/runtime/ |
D | image.cc | 26 const uint8_t ImageHeader::kImageMagic[] = { 'a', 'r', 't', '\n' }; 27 const uint8_t ImageHeader::kImageVersion[] = { '0', '2', '9', '\0' }; 29 ImageHeader::ImageHeader(uint32_t image_begin, in ImageHeader() function in art::ImageHeader 78 void ImageHeader::RelocateImage(off_t delta) { in RelocateImage() 89 void ImageHeader::RelocateImageObjects(off_t delta) { in RelocateImageObjects() 94 void ImageHeader::RelocateImageMethods(off_t delta) { in RelocateImageMethods() 100 bool ImageHeader::IsValid() const { in IsValid() 126 const char* ImageHeader::GetMagic() const { in GetMagic() 131 ArtMethod* ImageHeader::GetImageMethod(ImageMethod index) const { in GetImageMethod() 136 void ImageHeader::SetImageMethod(ImageMethod index, ArtMethod* method) { in SetImageMethod() [all …]
|
D | image.h | 73 class PACKED(4) ImageHeader { 83 ImageHeader() in ImageHeader() function 103 ImageHeader(uint32_t image_begin, 220 return GetImageSection(ImageHeader::kSectionArtFields); in GetFieldsSection() 358 std::ostream& operator<<(std::ostream& os, const ImageHeader::ImageMethod& policy); 359 std::ostream& operator<<(std::ostream& os, const ImageHeader::ImageRoot& policy); 360 std::ostream& operator<<(std::ostream& os, const ImageHeader::ImageSections& section); 362 std::ostream& operator<<(std::ostream& os, const ImageHeader::StorageMode& mode);
|
D | image-inl.h | 27 inline mirror::Object* ImageHeader::GetImageRoot(ImageRoot image_root) const { in GetImageRoot() 33 inline mirror::ObjectArray<mirror::Object>* ImageHeader::GetImageRoots() const { in GetImageRoots() 48 inline void ImageHeader::VisitPackedImtConflictTables(const Visitor& visitor, in VisitPackedImtConflictTables()
|
D | intern_table.cc | 179 const ImageHeader* const header = &image_space->GetImageHeader(); in AddImagesStringsToTable() 181 const ImageSection& section = header->GetImageSection(ImageHeader::kSectionInternedStrings); in AddImagesStringsToTable() 186 mirror::Object* root = header->GetImageRoot(ImageHeader::kDexCaches); in AddImagesStringsToTable() 217 mirror::Object* root = image_space->GetImageHeader().GetImageRoot(ImageHeader::kDexCaches); in LookupStringFromImage()
|
D | oat_file_assistant.cc | 978 const ImageHeader& image_header = image_spaces[0]->GetImageHeader(); in GetImageInfo() 984 std::unique_ptr<ImageHeader> image_header( in GetImageInfo() 1011 std::unique_ptr<ImageHeader> image_header( in CalculateCombinedImageChecksum()
|
D | runtime.cc | 815 ImageHeader::GetOatLocationFromImageLocation(system_filename.c_str()); in OpenDexFilesFromImage() 817 ImageHeader::GetOatLocationFromImageLocation(image_locations[index].c_str()); in OpenDexFilesFromImage() 1620 for (size_t i = 0; i < ImageHeader::kImageRootsMax; ++i) { in VisitImageRoots() 1621 auto* obj = image_header.GetImageRoot(static_cast<ImageHeader::ImageRoot>(i)); in VisitImageRoots()
|
D | class_linker.cc | 821 ImageHeader::kSectionDexCacheArrays).Contains(offset)) { in SanityCheckArtMethodPointerArray() 1009 spaces[0]->GetImageHeader().GetImageRoot(ImageHeader::kClassRoots))); in InitFromBootImage() 1148 explicit FixupArtMethodArrayVisitor(const ImageHeader& header) : header_(header) {} in FixupArtMethodArrayVisitor() 1156 in_image_space = header_.GetImageSection(ImageHeader::kSectionDexCacheArrays).Contains( in Visit() 1173 in_image_space = header_.GetImageSection(ImageHeader::kSectionDexCacheArrays).Contains( in Visit() 1189 const ImageHeader& header_; 1236 const ImageHeader& header = space->GetImageHeader(); in UpdateAppImageClassLoadersAndDexCaches() 1480 space_->GetImageHeader().GetImageSection(ImageHeader::kSectionDexCacheArrays).Contains( in operator ()() 1536 const ImageHeader& header = space->GetImageHeader(); in OpenImageDexFiles() 1537 mirror::Object* dex_caches_object = header.GetImageRoot(ImageHeader::kDexCaches); in OpenImageDexFiles() [all …]
|
D | oat_file_assistant_test.cc | 240 const ImageHeader& image_header = image_spaces[0]->GetImageHeader(); in GenerateOdexForTest()
|
/art/runtime/gc/space/ |
D | image_space.cc | 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() [all …]
|
D | image_space.h | 60 static ImageHeader* ReadImageHeaderOrDie(const char* image_location, 66 static ImageHeader* ReadImageHeader(const char* image_location, 80 const ImageHeader& GetImageHeader() const { in GetImageHeader() 81 return *reinterpret_cast<ImageHeader*>(Begin()); in GetImageHeader()
|
/art/compiler/ |
D | image_test.cc | 48 void TestWriteRead(ImageHeader::StorageMode storage_mode); 51 void ImageTest::TestWriteRead(ImageHeader::StorageMode storage_mode) { in TestWriteRead() 194 ImageHeader image_header; in TestWriteRead() 197 const auto& bitmap_section = image_header.GetImageSection(ImageHeader::kSectionImageBitmap); in TestWriteRead() 256 if (storage_mode == ImageHeader::kStorageModeUncompressed) { in TestWriteRead() 291 TestWriteRead(ImageHeader::kStorageModeUncompressed); in TEST_F() 295 TestWriteRead(ImageHeader::kStorageModeLZ4); in TEST_F() 299 TestWriteRead(ImageHeader::kStorageModeLZ4HC); in TEST_F() 312 ImageSection sections[ImageHeader::kSectionCount]; in TEST_F() 313 ImageHeader image_header(image_begin, in TEST_F() [all …]
|
D | image_writer.cc | 103 const ImageHeader& image_header = boot_image_space->GetImageHeader(); in IsInBootOatFile() 223 ImageHeader* const image_header = reinterpret_cast<ImageHeader*>(image_info.image_->Begin()); in Write() 224 const size_t image_data_size = image_header->GetImageSize() - sizeof(ImageHeader); in Write() 225 char* image_data = reinterpret_cast<char*>(image_info.image_->Begin()) + sizeof(ImageHeader); in Write() 232 case ImageHeader::kStorageModeLZ4HC: // Fall-through. in Write() 233 case ImageHeader::kStorageModeLZ4: { in Write() 237 reinterpret_cast<char*>(image_info.image_->Begin()) + sizeof(ImageHeader), in Write() 256 case ImageHeader::kStorageModeUncompressed: { in Write() 285 if (!image_file->PwriteFully(image_data_to_write, data_size, sizeof(ImageHeader))) { in Write() 294 ImageHeader::kSectionImageBitmap); in Write() [all …]
|
D | image_writer.h | 62 ImageHeader::StorageMode image_storage_mode, 259 size_t image_end_ = RoundUp(sizeof(ImageHeader), kObjectAlignment); 543 ArtMethod* image_methods_[ImageHeader::kImageMethodsCount]; 558 const ImageHeader::StorageMode image_storage_mode_;
|
/art/patchoat/ |
D | patchoat.h | 34 class ImageHeader; variable 81 static bool IsImagePic(const ImageHeader& image_header, const std::string& image_path); 118 void PatchArtFields(const ImageHeader* image_header) SHARED_REQUIRES(Locks::mutator_lock_); 119 void PatchArtMethods(const ImageHeader* image_header) SHARED_REQUIRES(Locks::mutator_lock_); 120 void PatchImtConflictTables(const ImageHeader* image_header) 122 void PatchInternedStrings(const ImageHeader* image_header) 124 void PatchClassTable(const ImageHeader* image_header)
|
D | patchoat.cc | 204 ImageHeader image_header; in Patch() 236 ImageHeader::GetOatLocationFromImageLocation(input_image_filename); in Patch() 264 ImageHeader::GetOatLocationFromImageLocation(output_image_filename); in Patch() 332 ImageHeader::GetOatLocationFromImageLocation(output_image_filename); in Patch() 383 bool PatchOat::IsImagePic(const ImageHeader& image_header, const std::string& image_path) { in IsImagePic() 473 void PatchOat::PatchArtFields(const ImageHeader* image_header) { in PatchArtFields() 491 void PatchOat::PatchArtMethods(const ImageHeader* image_header) { in PatchArtMethods() 497 void PatchOat::PatchImtConflictTables(const ImageHeader* image_header) { in PatchImtConflictTables() 532 void PatchOat::PatchInternedStrings(const ImageHeader* image_header) { in PatchInternedStrings() 533 const auto& section = image_header->GetImageSection(ImageHeader::kSectionInternedStrings); in PatchInternedStrings() [all …]
|
/art/oatdump/ |
D | oatdump.cc | 1272 const ImageHeader& image_header, in ImageDumper() 1293 for (size_t i = 0; i < ImageHeader::kSectionCount; ++i) { in Dump() 1294 auto section = static_cast<ImageHeader::ImageSections>(i); in Dump() 1315 static_cast<size_t>(ImageHeader::kImageRootsMax), "sizes must match"); in Dump() 1316 for (int i = 0; i < ImageHeader::kImageRootsMax; i++) { in Dump() 1317 ImageHeader::ImageRoot image_root = static_cast<ImageHeader::ImageRoot>(i); in Dump() 1354 static_cast<size_t>(ImageHeader::kImageMethodsCount), "sizes must match"); in Dump() 1355 for (int i = 0; i < ImageHeader::kImageMethodsCount; i++) { in Dump() 1356 auto image_root = static_cast<ImageHeader::ImageMethod>(i); in Dump() 1367 std::string oat_location = ImageHeader::GetOatLocationFromImageLocation(image_filename); in Dump() [all …]
|
/art/runtime/gc/collector/ |
D | immune_spaces_test.cc | 111 ImageSection sections[ImageHeader::kSectionCount]; in CreateImageSpace() 112 new (map->Begin()) ImageHeader( in CreateImageSpace() 130 ImageHeader::kStorageModeUncompressed, in CreateImageSpace() 219 const ImageHeader& image_header = image_space->GetImageHeader(); in TEST_F()
|
/art/imgdiag/ |
D | imgdiag.cc | 52 const ImageHeader& image_header, in ImgDiagDumper() 309 const ImageHeader& boot_image_header = image_header_; in DumpImageDiffMap() 317 boot_image_header.GetImageSection(ImageHeader::kSectionObjects).Size(); in DumpImageDiffMap() 512 const uint8_t* current = begin_image_ptr + RoundUp(sizeof(ImageHeader), kObjectAlignment); in DumpImageDiffMap() 856 const ImageHeader& image_header) { in RemoteContentsPointerToLocal() 1008 const ImageHeader& image_header_; 1025 const ImageHeader& image_header = image_space->GetImageHeader(); in DumpImage()
|
/art/dex2oat/ |
D | dex2oat.cc | 515 image_storage_mode_(ImageHeader::kStorageModeUncompressed), in Dex2Oat() 670 image_storage_mode_ = ImageHeader::kStorageModeLZ4; in ParseImageFormat() 672 image_storage_mode_ = ImageHeader::kStorageModeLZ4HC; in ParseImageFormat() 674 image_storage_mode_ = ImageHeader::kStorageModeUncompressed; in ParseImageFormat() 2455 ImageHeader::StorageMode image_storage_mode_;
|
/art/runtime/native/ |
D | dalvik_system_VMRuntime.cc | 623 std::unique_ptr<ImageHeader> image_header(gc::space::ImageSpace::ReadImageHeader( in VMRuntime_isBootClassPathOnDisk()
|