/art/dex2oat/linker/ |
D | image_test.cc | 78 ImageHeader image_header(image_reservation_size, in TEST_F() local 94 ASSERT_TRUE(image_header.IsValid()); in TEST_F() 98 ASSERT_TRUE(!image_header.IsAppImage()); in TEST_F() 100 char* magic = const_cast<char*>(image_header.GetMagic()); in TEST_F() 102 ASSERT_FALSE(image_header.IsValid()); in TEST_F() 104 ASSERT_FALSE(image_header.IsValid()); in TEST_F() 227 ImageHeader image_header(/*image_reservation_size=*/ kElfSegmentAlignment, in TEST_F() local 243 ASSERT_TRUE(image_header.IsValid()); in TEST_F() 249 const uint8_t* data = reinterpret_cast<const uint8_t*>(&image_header); in TEST_F() 252 ASSERT_EQ(image_header.GetImageChecksum(), 0u); in TEST_F() [all …]
|
D | image_write_read_test.cc | 35 ImageHeader image_header; in TestWriteRead() local 36 ASSERT_EQ(file->ReadFully(&image_header, sizeof(image_header)), true); in TestWriteRead() 37 ASSERT_TRUE(image_header.IsValid()); in TestWriteRead() 38 const auto& bitmap_section = image_header.GetImageBitmapSection(); in TestWriteRead() 39 ASSERT_GE(bitmap_section.Offset(), sizeof(image_header)); in TestWriteRead()
|
D | image_test.h | 155 ImageHeader image_header; in GetImageObjectSectionSizes() local 156 CHECK_EQ(file->ReadFully(&image_header, sizeof(image_header)), true); in GetImageObjectSectionSizes() 157 CHECK(image_header.IsValid()); in GetImageObjectSectionSizes() 158 ret.push_back(image_header.GetObjectsSection().Size()); in GetImageObjectSectionSizes()
|
D | image_writer.cc | 625 ImageHeader* const image_header = reinterpret_cast<ImageHeader*>(image_info.image_.Begin()); in Write() local 627 if (!image_header->WriteData(image_file, in Write() 644 if (!image_file.WriteHeaderAndClose(image_filename, image_header, &error_msg)) { in Write() 650 primary_header->GetImageChecksum() ^ image_header->GetImageChecksum()); in Write() 3024 auto* image_header = reinterpret_cast<ImageHeader*>(image_info.image_.Begin()); in CopyAndFixupNativeData() local 3029 reinterpret_cast<void**>(&image_header->image_methods_[i]), method, PointerSize::k32); in CopyAndFixupNativeData() 3035 const ImageSection& intern_table_section = image_header->GetInternedStringsSection(); in CopyAndFixupNativeData() 3065 const ImageSection& class_table_section = image_header->GetClassTableSection(); in CopyAndFixupNativeData()
|
/art/test/1001-app-image-regions/ |
D | app_image_regions.cc | 42 const auto& image_header = image_space->GetImageHeader(); in Java_Main_checkAppImageSectionSize() local 43 if (image_header.IsAppImage() && image_space->HasAddress(klass_ptr.Ptr())) { in Java_Main_checkAppImageSectionSize() 44 return image_header.GetObjectsSection().Size(); in Java_Main_checkAppImageSectionSize()
|
/art/test/596-app-images/ |
D | app_images.cc | 63 const auto& image_header = image_space->GetImageHeader(); in Java_Main_checkAppImageLoaded() local 67 if (image_header.IsAppImage() && in Java_Main_checkAppImageLoaded() 82 const auto& image_header = image_space->GetImageHeader(); in Java_Main_checkAppImageContains() local 83 if (image_header.IsAppImage()) { in Java_Main_checkAppImageContains()
|
/art/imgdiag/ |
D | imgdiag.cc | 206 const ImageHeader& image_header) in RemoteContentsPointerToLocal() argument 215 const uint8_t* local_ptr = reinterpret_cast<const uint8_t*>(&image_header) + boot_offset; in RemoteContentsPointerToLocal() 255 const ImageHeader& image_header) : in RegionCommon() 260 image_header_(image_header), in RegionCommon() 493 for (const ImageHeader* image_header : image_headers) { in CalculateParentMap() local 494 uint8_t* image_begin = image_header->GetImageBegin(); in CalculateParentMap() 495 PointerSize pointer_size = image_header->GetPointerSize(); in CalculateParentMap() 496 image_header->VisitObjects(&collect_classes_visitor, image_begin, pointer_size); in CalculateParentMap() 561 for (const ImageHeader* image_header : image_headers) { in CountUnreachableObjects() local 562 uint8_t* image_begin = image_header->GetImageBegin(); in CountUnreachableObjects() [all …]
|
/art/runtime/gc/space/ |
D | image_space.cc | 157 /*out*/ImageHeader* image_header, in ReadSpecificImageHeader() argument 159 if (!image_file->PreadFully(image_header, sizeof(ImageHeader), /*offset=*/ 0)) { in ReadSpecificImageHeader() 163 if (!image_header->IsValid()) { in ReadSpecificImageHeader() 171 /*out*/ImageHeader* image_header, in ReadSpecificImageHeader() argument 178 return ReadSpecificImageHeader(image_file.get(), filename, image_header, error_msg); in ReadSpecificImageHeader() 574 const ImageHeader& image_header = space->GetImageHeader(); in InitAppImage() local 578 const uint32_t image_oat_checksum = image_header.GetOatChecksum(); in InitAppImage() 589 image_header, in InitAppImage() 598 uint32_t expected_reservation_size = RoundUp(image_header.GetImageSize(), in InitAppImage() 607 const PointerSize pointer_size = image_header.GetPointerSize(); in InitAppImage() [all …]
|
D | image_space_test.cc | 156 const ImageHeader& image_header = space->GetImageHeader(); in TEST_F() local 157 if (image_header.GetInternedStringsSection().Size() != 0u) { in TEST_F() 158 const uint8_t* data = space->Begin() + image_header.GetInternedStringsSection().Offset(); in TEST_F()
|
/art/runtime/gc/collector/ |
D | immune_spaces_test.cc | 233 const ImageHeader& image_header = image_space->GetImageHeader(); in TEST_F() local 234 FakeSpace space(image_header.GetOatFileEnd(), image_header.GetOatFileEnd() + kOtherSpaceSize); in TEST_F() 236 EXPECT_EQ(image_header.GetImageSize(), kImageSize); in TEST_F() 237 EXPECT_EQ(static_cast<size_t>(image_header.GetOatFileEnd() - image_header.GetOatFileBegin()), in TEST_F()
|
/art/dex2oat/ |
D | dex2oat_test.cc | 681 ImageHeader image_header; in GetImageObjectSectionSize() local 682 const bool success = file->ReadFully(&image_header, sizeof(image_header)); in GetImageObjectSectionSize() 684 CHECK(image_header.IsValid()); in GetImageObjectSectionSize() 686 return image_header.GetObjectsSection().Size(); in GetImageObjectSectionSize() 821 ImageHeader image_header; in CheckResult() local 822 bool success = file->ReadFully(&image_header, sizeof(image_header)); in CheckResult() 824 ASSERT_TRUE(image_header.IsValid()); in CheckResult() 825 EXPECT_GT(image_header.GetObjectsSection().Size(), 0u); in CheckResult()
|
/art/runtime/oat/ |
D | image.h | 562 const ImageHeader* image_header, in WriteHeaderAndClose() argument 565 if (!image_file_->PwriteFully(image_header, sizeof(ImageHeader), 0)) { in WriteHeaderAndClose()
|
/art/runtime/ |
D | runtime.cc | 2060 const ImageHeader& image_header = GetHeap()->GetBootImageSpaces()[0]->GetImageHeader(); in Init() local 2063 image_header.GetImageRoot(ImageHeader::kBootImageLiveObjects)); in Init() 2704 const auto& image_header = image_space->GetImageHeader(); in VisitImageRoots() local 2705 for (int32_t i = 0, size = image_header.GetImageRoots()->GetLength(); i != size; ++i) { in VisitImageRoots() 2707 image_header.GetImageRoot(static_cast<ImageHeader::ImageRoot>(i)).Ptr(); in VisitImageRoots()
|
D | class_linker.cc | 1328 const ImageHeader& image_header = spaces[0]->GetImageHeader(); in InitFromBootImage() local 1329 image_pointer_size_ = image_header.GetPointerSize(); in InitFromBootImage() 1348 runtime->SetResolutionMethod(image_header.GetImageMethod(ImageHeader::kResolutionMethod)); in InitFromBootImage() 1349 runtime->SetImtConflictMethod(image_header.GetImageMethod(ImageHeader::kImtConflictMethod)); in InitFromBootImage() 1351 image_header.GetImageMethod(ImageHeader::kImtUnimplementedMethod)); in InitFromBootImage() 1353 image_header.GetImageMethod(ImageHeader::kSaveAllCalleeSavesMethod), in InitFromBootImage() 1356 image_header.GetImageMethod(ImageHeader::kSaveRefsOnlyMethod), in InitFromBootImage() 1359 image_header.GetImageMethod(ImageHeader::kSaveRefsAndArgsMethod), in InitFromBootImage() 1362 image_header.GetImageMethod(ImageHeader::kSaveEverythingMethod), in InitFromBootImage() 1365 image_header.GetImageMethod(ImageHeader::kSaveEverythingMethodForClinit), in InitFromBootImage() [all …]
|
/art/oatdump/ |
D | oatdump.cc | 1782 const ImageHeader& image_header, in ImageDumper() argument 1788 image_header_(image_header), in ImageDumper() 2515 const ImageHeader& image_header = image_space->GetImageHeader(); in DumpImage() local 2516 if (!image_header.IsValid()) { in DumpImage() 2520 ImageDumper image_dumper(os, *image_space, image_header, options); in DumpImage()
|
/art/runtime/gc/ |
D | heap.cc | 239 const ImageHeader& image_header = image_spaces[i]->GetImageHeader(); in VerifyBootImagesContiguity() local 240 uint32_t reservation_size = image_header.GetImageReservationSize(); in VerifyBootImagesContiguity() 241 uint32_t image_count = image_header.GetImageSpaceCount(); in VerifyBootImagesContiguity()
|