/art/test/596-app-images/ |
D | app_images.cc | 42 const auto& image_header = image_space->GetImageHeader(); in Java_Main_checkAppImageLoaded() local 43 if (image_header.IsAppImage()) { in Java_Main_checkAppImageLoaded() 57 const auto& image_header = image_space->GetImageHeader(); in Java_Main_checkAppImageContains() local 58 if (image_header.IsAppImage()) { in Java_Main_checkAppImageContains()
|
/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/runtime/gc/space/ |
D | image_space.cc | 254 static bool ReadSpecificImageHeader(const char* filename, ImageHeader* image_header) { in ReadSpecificImageHeader() argument 259 const bool success = image_file->ReadFully(image_header, sizeof(ImageHeader)); in ReadSpecificImageHeader() 260 if (!success || !image_header->IsValid()) { in ReadSpecificImageHeader() 699 ImageHeader* image_header = reinterpret_cast<ImageHeader*>(space->GetMemMap()->Begin()); in InitAppImage() local 700 const PointerSize pointer_size = image_header->GetPointerSize(); in InitAppImage() 703 result = RelocateInPlace<PointerSize::k64>(*image_header, in InitAppImage() 709 result = RelocateInPlace<PointerSize::k32>(*image_header, in InitAppImage() 720 image_header->GetImageMethod(ImageHeader::kResolutionMethod)); in InitAppImage() 722 image_header->GetImageMethod(ImageHeader::kImtConflictMethod)); in InitAppImage() 724 image_header->GetImageMethod(ImageHeader::kImtUnimplementedMethod)); in InitAppImage() [all …]
|
/art/dex2oat/linker/ |
D | image_test.cc | 77 ImageHeader image_header(image_reservation_size, in TEST_F() local 92 ASSERT_TRUE(image_header.IsValid()); in TEST_F() 93 ASSERT_TRUE(!image_header.IsAppImage()); in TEST_F() 95 char* magic = const_cast<char*>(image_header.GetMagic()); in TEST_F() 97 ASSERT_FALSE(image_header.IsValid()); in TEST_F() 99 ASSERT_FALSE(image_header.IsValid()); in TEST_F()
|
D | image_test.h | 142 ImageHeader image_header; in GetImageObjectSectionSizes() local 143 CHECK_EQ(file->ReadFully(&image_header, sizeof(image_header)), true); in GetImageObjectSectionSizes() 144 CHECK(image_header.IsValid()); in GetImageObjectSectionSizes() 145 ret.push_back(image_header.GetObjectsSection().Size()); in GetImageObjectSectionSizes() 411 ImageHeader image_header; in TestWriteRead() local 412 ASSERT_EQ(file->ReadFully(&image_header, sizeof(image_header)), true); in TestWriteRead() 413 ASSERT_TRUE(image_header.IsValid()); in TestWriteRead() 414 const auto& bitmap_section = image_header.GetImageBitmapSection(); in TestWriteRead() 415 ASSERT_GE(bitmap_section.Offset(), sizeof(image_header)); in TestWriteRead()
|
D | image_writer.cc | 203 const ImageHeader& image_header = boot_image_space->GetImageHeader(); in IsInBootOatFile() local 204 if (image_header.GetOatFileBegin() <= ptr && ptr < image_header.GetOatFileEnd()) { in IsInBootOatFile() 679 bool WriteHeaderAndClose(const std::string& image_filename, const ImageHeader* image_header) { in WriteHeaderAndClose() argument 681 if (!image_file_->PwriteFully(image_header, sizeof(ImageHeader), 0)) { in WriteHeaderAndClose() 771 ImageHeader* const image_header = reinterpret_cast<ImageHeader*>(image_info.image_.Begin()); in Write() local 789 add_blocks(sizeof(ImageHeader), image_header->GetImageSize() - sizeof(ImageHeader)); in Write() 794 reinterpret_cast<const uint8_t*>(image_header), in Write() 841 image_header->blocks_offset_ = out_offset; in Write() 842 image_header->blocks_count_ = blocks.size(); in Write() 847 image_header->data_size_ = out_offset - sizeof(ImageHeader); in Write() [all …]
|
/art/imgdiag/ |
D | imgdiag.cc | 198 const ImageHeader& image_header) in RemoteContentsPointerToLocal() argument 207 const uint8_t* local_ptr = reinterpret_cast<const uint8_t*>(&image_header) + boot_offset; in RemoteContentsPointerToLocal() 237 const ImageHeader& image_header) : in RegionCommon() 242 image_header_(image_header), in RegionCommon() 384 const ImageHeader& image_header, in RegionSpecializedBase() argument 386 : RegionCommon<mirror::Object>(os, remote_contents, zygote_contents, boot_map, image_header), in RegionSpecializedBase() 712 const ImageHeader& image_header, in RegionSpecializedBase() argument 714 : RegionCommon<ArtMethod>(os, remote_contents, zygote_contents, boot_map, image_header), in RegionSpecializedBase() 946 const ImageHeader& image_header, in RegionData() argument 952 image_header, in RegionData() [all …]
|
/art/runtime/gc/collector/ |
D | immune_spaces_test.cc | 211 const ImageHeader& image_header = image_space->GetImageHeader(); in TEST_F() local 212 DummySpace space(image_header.GetOatFileEnd(), image_header.GetOatFileEnd() + kOtherSpaceSize); in TEST_F() 214 EXPECT_EQ(image_header.GetImageSize(), kImageSize); in TEST_F() 215 EXPECT_EQ(static_cast<size_t>(image_header.GetOatFileEnd() - image_header.GetOatFileBegin()), in TEST_F()
|
/art/dex2oat/ |
D | dex2oat_test.cc | 699 ImageHeader image_header; in GetImageObjectSectionSize() local 700 const bool success = file->ReadFully(&image_header, sizeof(image_header)); in GetImageObjectSectionSize() 702 CHECK(image_header.IsValid()); in GetImageObjectSectionSize() 704 return image_header.GetObjectsSection().Size(); in GetImageObjectSectionSize() 827 ImageHeader image_header; in CheckResult() local 828 bool success = file->ReadFully(&image_header, sizeof(image_header)); in CheckResult() 830 ASSERT_TRUE(image_header.IsValid()); in CheckResult() 831 EXPECT_GT(image_header.GetObjectsSection().Size(), 0u); in CheckResult()
|
/art/runtime/ |
D | runtime.cc | 1596 const ImageHeader& image_header = GetHeap()->GetBootImageSpaces()[0]->GetImageHeader(); in Init() local 1598 image_header.GetImageRoot(ImageHeader::kOomeWhenThrowingException)->AsThrowable()); in Init() 1602 image_header.GetImageRoot(ImageHeader::kOomeWhenThrowingOome)->AsThrowable()); in Init() 1606 image_header.GetImageRoot(ImageHeader::kOomeWhenHandlingStackOverflow)->AsThrowable()); in Init() 1610 image_header.GetImageRoot(ImageHeader::kNoClassDefFoundError)->AsThrowable()); in Init() 2162 const auto& image_header = image_space->GetImageHeader(); in VisitImageRoots() local 2163 for (int32_t i = 0, size = image_header.GetImageRoots()->GetLength(); i != size; ++i) { in VisitImageRoots() 2165 image_header.GetImageRoot(static_cast<ImageHeader::ImageRoot>(i)).Ptr(); in VisitImageRoots()
|
D | class_linker.cc | 958 const ImageHeader& image_header = spaces[0]->GetImageHeader(); in InitFromBootImage() local 959 image_pointer_size_ = image_header.GetPointerSize(); in InitFromBootImage() 972 runtime->SetResolutionMethod(image_header.GetImageMethod(ImageHeader::kResolutionMethod)); in InitFromBootImage() 973 runtime->SetImtConflictMethod(image_header.GetImageMethod(ImageHeader::kImtConflictMethod)); in InitFromBootImage() 975 image_header.GetImageMethod(ImageHeader::kImtUnimplementedMethod)); in InitFromBootImage() 977 image_header.GetImageMethod(ImageHeader::kSaveAllCalleeSavesMethod), in InitFromBootImage() 980 image_header.GetImageMethod(ImageHeader::kSaveRefsOnlyMethod), in InitFromBootImage() 983 image_header.GetImageMethod(ImageHeader::kSaveRefsAndArgsMethod), in InitFromBootImage() 986 image_header.GetImageMethod(ImageHeader::kSaveEverythingMethod), in InitFromBootImage() 989 image_header.GetImageMethod(ImageHeader::kSaveEverythingMethodForClinit), in InitFromBootImage() [all …]
|
/art/runtime/native/ |
D | dalvik_system_VMRuntime.cc | 672 std::unique_ptr<ImageHeader> image_header(gc::space::ImageSpace::ReadImageHeader( in VMRuntime_isBootClassPathOnDisk() local 674 return image_header.get() != nullptr; in VMRuntime_isBootClassPathOnDisk()
|
/art/oatdump/ |
D | oatdump.cc | 1790 const ImageHeader& image_header, in ImageDumper() argument 1796 image_header_(image_header), in ImageDumper() 2737 const ImageHeader& image_header = image_space->GetImageHeader(); in DumpImage() local 2738 if (!image_header.IsValid()) { in DumpImage() 2742 ImageDumper image_dumper(os, *image_space, image_header, options); in DumpImage()
|