Home
last modified time | relevance | path

Searched refs:ImageHeader (Results 1 – 17 of 17) sorted by relevance

/art/runtime/
Dimage.cc26 const uint8_t ImageHeader::kImageMagic[] = { 'a', 'r', 't', '\n' };
27 const uint8_t ImageHeader::kImageVersion[] = { '0', '1', '7', '\0' };
29 ImageHeader::ImageHeader(uint32_t image_begin, in ImageHeader() function in art::ImageHeader
65 void ImageHeader::RelocateImage(off_t delta) { in RelocateImage()
79 bool ImageHeader::IsValid() const { in IsValid()
108 const char* ImageHeader::GetMagic() const { in GetMagic()
113 mirror::Object* ImageHeader::GetImageRoot(ImageRoot image_root) const { in GetImageRoot()
117 mirror::ObjectArray<mirror::Object>* ImageHeader::GetImageRoots() const { in GetImageRoots()
131 ArtMethod* ImageHeader::GetImageMethod(ImageMethod index) const { in GetImageMethod()
136 void ImageHeader::SetImageMethod(ImageMethod index, ArtMethod* method) { in SetImageMethod()
[all …]
Dimage.h56 class PACKED(4) ImageHeader {
58 ImageHeader() : compile_pic_(0) {} in ImageHeader() function
60 ImageHeader(uint32_t image_begin,
219 std::ostream& operator<<(std::ostream& os, const ImageHeader::ImageMethod& policy);
220 std::ostream& operator<<(std::ostream& os, const ImageHeader::ImageRoot& policy);
221 std::ostream& operator<<(std::ostream& os, const ImageHeader::ImageSections& section);
Dintern_table.cc155 const ImageHeader* const header = &image_space->GetImageHeader(); in AddImageStringsToTable()
157 const ImageSection& section = header->GetImageSection(ImageHeader::kSectionInternedStrings); in AddImageStringsToTable()
162 mirror::Object* root = header->GetImageRoot(ImageHeader::kDexCaches); in AddImageStringsToTable()
194 mirror::Object* root = image->GetImageHeader().GetImageRoot(ImageHeader::kDexCaches); in LookupStringFromImage()
298 ImageHeader::kSectionInternedStrings); in AddImageInternTable()
Doat_file_assistant.cc919 const ImageHeader& image_header = image_space->GetImageHeader(); in CopyProfileFile()
924 std::unique_ptr<ImageHeader> image_header( in CopyProfileFile()
Druntime.cc722 std::string oat_filename = ImageHeader::GetOatLocationFromImageLocation(system_filename.c_str()); in OpenDexFilesFromImage()
723 std::string oat_location = ImageHeader::GetOatLocationFromImageLocation(image_location.c_str()); in OpenDexFilesFromImage()
1431 for (size_t i = 0; i < ImageHeader::kImageRootsMax; ++i) { in VisitImageRoots()
1432 auto* obj = image_header.GetImageRoot(static_cast<ImageHeader::ImageRoot>(i)); in VisitImageRoots()
Doat_file_assistant_test.cc719 const ImageHeader& image_header = image_space->GetImageHeader(); in TEST_F()
Dclass_linker.cc1121 mirror::Object* dex_caches_object = space->GetImageHeader().GetImageRoot(ImageHeader::kDexCaches); in InitFromImage()
1127 space->GetImageHeader().GetImageRoot(ImageHeader::kClassRoots)-> in InitFromImage()
2893 mirror::Object* root = image->GetImageHeader().GetImageRoot(ImageHeader::kDexCaches); in GetImageDexCaches()
/art/runtime/gc/space/
Dimage_space.cc204 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()
[all …]
Dimage_space.h51 static ImageHeader* ReadImageHeaderOrDie(const char* image_location,
57 static ImageHeader* ReadImageHeader(const char* image_location,
72 const ImageHeader& GetImageHeader() const { in GetImageHeader()
73 return *reinterpret_cast<ImageHeader*>(Begin()); in GetImageHeader()
/art/patchoat/
Dpatchoat.h32 class ImageHeader; variable
77 static bool IsImagePic(const ImageHeader& image_header, const std::string& image_path);
117 void PatchArtFields(const ImageHeader* image_header) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
118 void PatchArtMethods(const ImageHeader* image_header) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
119 void PatchInternedStrings(const ImageHeader* image_header)
Dpatchoat.cc123 ImageHeader image_header; in Patch()
219 ImageHeader image_header; in Patch()
343 bool PatchOat::IsImagePic(const ImageHeader& image_header, const std::string& image_path) { in IsImagePic()
420 void PatchOat::PatchArtFields(const ImageHeader* image_header) { in PatchArtFields()
421 const auto& section = image_header->GetImageSection(ImageHeader::kSectionArtFields); in PatchArtFields()
429 void PatchOat::PatchArtMethods(const ImageHeader* image_header) { in PatchArtMethods()
464 void PatchOat::PatchInternedStrings(const ImageHeader* image_header) { in PatchInternedStrings()
465 const auto& section = image_header->GetImageSection(ImageHeader::kSectionInternedStrings); in PatchInternedStrings()
477 img_roots->Get(ImageHeader::kDexCaches)); in PatchDexFileArrays()
515 ImageHeader* image_header = reinterpret_cast<ImageHeader*>(image_->Begin()); in PatchImage()
[all …]
/art/compiler/
Dimage_writer.cc190 ImageHeader* image_header = reinterpret_cast<ImageHeader*>(image_->Begin()); in Write()
210 …const ImageSection& bitmap_section = image_header->GetImageSection(ImageHeader::kSectionImageBitma… in Write()
768 ObjectArray<Object>::Alloc(self, object_array_class.Get(), ImageHeader::kImageRootsMax))); in CreateImageRoots()
769 image_roots->Set<false>(ImageHeader::kDexCaches, dex_caches.Get()); in CreateImageRoots()
770 image_roots->Set<false>(ImageHeader::kClassRoots, class_linker->GetClassRoots()); in CreateImageRoots()
771 for (int i = 0; i < ImageHeader::kImageRootsMax; i++) { in CreateImageRoots()
913 image_end_ += RoundUp(sizeof(ImageHeader), kObjectAlignment); // 64-bit-alignment in CalculateNewObjectOffsets()
921 image_methods_[ImageHeader::kResolutionMethod] = runtime->GetResolutionMethod(); in CalculateNewObjectOffsets()
922 image_methods_[ImageHeader::kImtConflictMethod] = runtime->GetImtConflictMethod(); in CalculateNewObjectOffsets()
923 image_methods_[ImageHeader::kImtUnimplementedMethod] = runtime->GetImtUnimplementedMethod(); in CalculateNewObjectOffsets()
[all …]
Dimage_test.cc112 ImageHeader image_header; in TEST_F()
115 const auto& bitmap_section = image_header.GetImageSection(ImageHeader::kSectionImageBitmap); in TEST_F()
210 ImageSection sections[ImageHeader::kSectionCount]; in TEST_F()
211 ImageHeader image_header(image_begin, in TEST_F()
Dimage_writer.h84 image_begin_ + RoundUp(sizeof(ImageHeader), kObjectAlignment) + it->second + offset); in GetDexCacheArrayElementImageAddress()
370 ArtMethod* image_methods_[ImageHeader::kImageMethodsCount];
/art/imgdiag/
Dimgdiag.cc51 const ImageHeader& image_header, in ImgDiagDumper()
166 const ImageHeader& boot_image_header = GetBootImageHeader(); in DumpImageDiffMap()
174 boot_image_header.GetImageSection(ImageHeader::kSectionObjects).Size(); in DumpImageDiffMap()
361 const uint8_t* current = begin_image_ptr + RoundUp(sizeof(ImageHeader), kObjectAlignment); in DumpImageDiffMap()
680 const ImageHeader& image_header) { in RemoteContentsPointerToLocal()
823 static const ImageHeader& GetBootImageHeader() { in GetBootImageHeader()
827 const ImageHeader& image_header = image_space->GetImageHeader(); in GetBootImageHeader()
838 const ImageHeader& image_header_;
851 const ImageHeader& image_header = image_space->GetImageHeader(); in DumpImage()
/art/oatdump/
Doatdump.cc1368 const ImageHeader& image_header, OatDumperOptions* oat_dumper_options) in ImageDumper()
1382 for (size_t i = 0; i < ImageHeader::kSectionCount; ++i) { in Dump()
1383 auto section = static_cast<ImageHeader::ImageSections>(i); in Dump()
1406 static_cast<size_t>(ImageHeader::kImageRootsMax), "sizes must match"); in Dump()
1407 for (int i = 0; i < ImageHeader::kImageRootsMax; i++) { in Dump()
1408 ImageHeader::ImageRoot image_root = static_cast<ImageHeader::ImageRoot>(i); in Dump()
1444 static_cast<size_t>(ImageHeader::kImageMethodsCount), "sizes must match"); in Dump()
1445 for (int i = 0; i < ImageHeader::kImageMethodsCount; i++) { in Dump()
1446 auto image_root = static_cast<ImageHeader::ImageMethod>(i); in Dump()
1456 std::string oat_location = ImageHeader::GetOatLocationFromImageLocation(image_filename); in Dump()
[all …]
/art/runtime/native/
Ddalvik_system_VMRuntime.cc588 std::unique_ptr<ImageHeader> image_header(gc::space::ImageSpace::ReadImageHeader( in VMRuntime_isBootClassPathOnDisk()