/art/runtime/ |
D | image.cc | 36 const uint8_t ImageHeader::kImageMagic[] = { 'a', 'r', 't', '\n' }; 38 const uint8_t ImageHeader::kImageVersion[] = { '1', '0', '8', '\0' }; 40 ImageHeader::ImageHeader(uint32_t image_reservation_size, in ImageHeader() function in art::ImageHeader 87 void ImageHeader::RelocateImageReferences(int64_t delta) { in RelocateImageReferences() 97 void ImageHeader::RelocateBootImageReferences(int64_t delta) { in RelocateBootImageReferences() 108 bool ImageHeader::IsAppImage() const { in IsAppImage() 115 uint32_t ImageHeader::GetImageSpaceCount() const { in GetImageSpaceCount() 123 bool ImageHeader::IsValid() const { in IsValid() 151 const char* ImageHeader::GetMagic() const { in GetMagic() 156 ArtMethod* ImageHeader::GetImageMethod(ImageMethod index) const { in GetImageMethod() [all …]
|
D | runtime_image.cc | 89 sections_(ImageHeader::kSectionCount, allocator_.Adapter()), in RuntimeImageHelper() 100 object_section_size_(sizeof(ImageHeader)), in RuntimeImageHelper() 118 size_t sections_end = sections_[ImageHeader::kSectionMetadata].End(); in Generate() 124 DCHECK(IsAligned<kObjectAlignment>(image_begin_ + sizeof(ImageHeader) + offset)); in Generate() 126 reinterpret_cast<mirror::Object*>(image_begin_ + sizeof(ImageHeader) + offset)); in Generate() 129 auto* bitmap_section = §ions_[ImageHeader::kSectionImageBitmap]; in Generate() 140 const ImageHeader& header = image_spaces[i]->GetImageHeader(); in Generate() 147 header_ = ImageHeader( in Generate() 153 /* image_roots= */ image_begin_ + sizeof(ImageHeader), in Generate() 166 header_.data_size_ = sections_end - sizeof(ImageHeader); in Generate() [all …]
|
D | image-inl.h | 32 inline ObjPtr<mirror::Object> ImageHeader::GetImageRoot(ImageRoot image_root) const { in GetImageRoot() 38 inline ObjPtr<mirror::ObjectArray<mirror::Object>> ImageHeader::GetImageRoots() const { in GetImageRoots() 53 inline void ImageHeader::VisitPackedArtFields(const Visitor& visitor, uint8_t* base) const { in VisitPackedArtFields() 65 inline void ImageHeader::VisitPackedArtMethods(const Visitor& visitor, in VisitPackedArtMethods() 87 inline void ImageHeader::VisitPackedImTables(const Visitor& visitor, in VisitPackedImTables() 105 inline void ImageHeader::VisitPackedImtConflictTables(const Visitor& visitor, in VisitPackedImtConflictTables()
|
D | image.h | 79 class PACKED(8) ImageHeader { 130 ImageHeader() {} in ImageHeader() function 131 ImageHeader(uint32_t image_reservation_size, 302 return GetImageSection(ImageHeader::kSectionArtFields); in GetFieldsSection() 430 ImageHeader::StorageMode image_storage_mode, 557 const ImageHeader* image_header, in WriteHeaderAndClose() 560 if (!image_file_->PwriteFully(image_header, sizeof(ImageHeader), 0)) { in WriteHeaderAndClose() 592 std::ostream& operator<<(std::ostream& os, ImageHeader::ImageMethod method); 593 std::ostream& operator<<(std::ostream& os, ImageHeader::ImageRoot root); 594 std::ostream& operator<<(std::ostream& os, ImageHeader::ImageSections section); [all …]
|
D | intern_table-inl.h | 96 const ImageHeader& header = image_space->GetImageHeader(); in AddImageStringsToTable()
|
D | runtime.cc | 1930 const ImageHeader& image_header = GetHeap()->GetBootImageSpaces()[0]->GetImageHeader(); in Init() 1933 image_header.GetImageRoot(ImageHeader::kBootImageLiveObjects)); in Init() 1935 boot_image_live_objects->Get(ImageHeader::kOomeWhenThrowingException)->AsThrowable()); in Init() 1939 boot_image_live_objects->Get(ImageHeader::kOomeWhenThrowingOome)->AsThrowable()); in Init() 1943 boot_image_live_objects->Get(ImageHeader::kOomeWhenHandlingStackOverflow)->AsThrowable()); in Init() 1947 boot_image_live_objects->Get(ImageHeader::kNoClassDefFoundError)->AsThrowable()); in Init() 2574 image_header.GetImageRoot(static_cast<ImageHeader::ImageRoot>(i)).Ptr(); in VisitImageRoots()
|
D | class_linker.cc | 1272 const ImageHeader& image_header = spaces[0]->GetImageHeader(); in InitFromBootImage() 1291 runtime->SetResolutionMethod(image_header.GetImageMethod(ImageHeader::kResolutionMethod)); in InitFromBootImage() 1292 runtime->SetImtConflictMethod(image_header.GetImageMethod(ImageHeader::kImtConflictMethod)); in InitFromBootImage() 1294 image_header.GetImageMethod(ImageHeader::kImtUnimplementedMethod)); in InitFromBootImage() 1296 image_header.GetImageMethod(ImageHeader::kSaveAllCalleeSavesMethod), in InitFromBootImage() 1299 image_header.GetImageMethod(ImageHeader::kSaveRefsOnlyMethod), in InitFromBootImage() 1302 image_header.GetImageMethod(ImageHeader::kSaveRefsAndArgsMethod), in InitFromBootImage() 1305 image_header.GetImageMethod(ImageHeader::kSaveEverythingMethod), in InitFromBootImage() 1308 image_header.GetImageMethod(ImageHeader::kSaveEverythingMethodForClinit), in InitFromBootImage() 1311 image_header.GetImageMethod(ImageHeader::kSaveEverythingMethodForSuspendCheck), in InitFromBootImage() [all …]
|
/art/dex2oat/linker/ |
D | image_test.cc | 35 Compile(ImageHeader::kStorageModeUncompressed, in TEST_F() 48 Compile(ImageHeader::kStorageModeUncompressed, in TEST_F() 75 ImageSection sections[ImageHeader::kSectionCount]; in TEST_F() 77 ImageHeader image_header(image_reservation_size, in TEST_F() 111 Compile(ImageHeader::kStorageModeUncompressed, in TEST_F() 171 Compile(ImageHeader::kStorageModeUncompressed, in TEST_F() 181 Compile(ImageHeader::kStorageModeUncompressed, in TEST_F() 203 Compile(ImageHeader::kStorageModeUncompressed, in TEST_F()
|
D | image_write_read_test.cc | 24 void TestWriteRead(ImageHeader::StorageMode storage_mode, uint32_t max_image_block_size); 27 void ImageWriteReadTest::TestWriteRead(ImageHeader::StorageMode storage_mode, in TestWriteRead() 35 ImageHeader image_header; in TestWriteRead() 102 if (storage_mode == ImageHeader::kStorageModeUncompressed) { in TestWriteRead() 140 TestWriteRead(ImageHeader::kStorageModeUncompressed, in TEST_F() 145 TestWriteRead(ImageHeader::kStorageModeLZ4, in TEST_F() 150 TestWriteRead(ImageHeader::kStorageModeLZ4HC, in TEST_F() 156 TestWriteRead(ImageHeader::kStorageModeLZ4HC, /*max_image_block_size=*/KB); in TEST_F()
|
D | image_writer.cc | 129 enum_cast<size_t>(ImageHeader::kIntrinsicObjectsStart) + in AllocateBootImageLiveObjects() 138 auto set_entry = [&](ImageHeader::BootImageLiveObjects entry, in AllocateBootImageLiveObjects() 144 set_entry(ImageHeader::kOomeWhenThrowingException, in AllocateBootImageLiveObjects() 146 set_entry(ImageHeader::kOomeWhenThrowingOome, in AllocateBootImageLiveObjects() 148 set_entry(ImageHeader::kOomeWhenHandlingStackOverflow, in AllocateBootImageLiveObjects() 150 set_entry(ImageHeader::kNoClassDefFoundError, runtime->GetPreAllocatedNoClassDefFoundError()); in AllocateBootImageLiveObjects() 151 set_entry(ImageHeader::kClearedJniWeakSentinel, runtime->GetSentinel().Read()); in AllocateBootImageLiveObjects() 153 DCHECK_EQ(index, enum_cast<int32_t>(ImageHeader::kIntrinsicObjectsStart)); in AllocateBootImageLiveObjects() 301 image_sections[ImageHeader::kSectionStringReferenceOffsets].Offset()); in CopyMetadata() 371 ImageHeader* primary_header = reinterpret_cast<ImageHeader*>(image_infos_[0].image_.Begin()); in Write() [all …]
|
D | image_test.h | 86 void Compile(ImageHeader::StorageMode storage_mode, 120 void DoCompile(ImageHeader::StorageMode storage_mode, /*out*/ CompilationHelper& out_helper); 144 ImageHeader image_header; in GetImageObjectSectionSizes() 152 inline void ImageTest::DoCompile(ImageHeader::StorageMode storage_mode, in DoCompile() 349 ImageHeader::StorageMode storage_mode, in Compile()
|
D | image_writer.h | 82 ImageHeader::StorageMode image_storage_mode, 327 size_t image_end_ = RoundUp(sizeof(ImageHeader), kObjectAlignment); 669 ArtMethod* image_methods_[ImageHeader::kImageMethodsCount]; 688 const ImageHeader::StorageMode image_storage_mode_;
|
/art/runtime/gc/space/ |
D | image_space.cc | 160 /*out*/ImageHeader* image_header, in ReadSpecificImageHeader() 162 if (!image_file->PreadFully(image_header, sizeof(ImageHeader), /*offset=*/ 0)) { in ReadSpecificImageHeader() 174 /*out*/ImageHeader* image_header, in ReadSpecificImageHeader() 184 static std::unique_ptr<ImageHeader> ReadSpecificImageHeader(const char* filename, in ReadSpecificImageHeader() 186 std::unique_ptr<ImageHeader> hdr(new ImageHeader); in ReadSpecificImageHeader() 194 uint8_t* current = Begin() + RoundUp(sizeof(ImageHeader), kObjectAlignment); in VerifyImageAllocations() 577 const ImageHeader& image_header = space->GetImageHeader(); in InitAppImage() 644 const ImageHeader& primary_header = boot_image_spaces.front()->GetImageHeader(); in InitAppImage() 645 static_assert(static_cast<size_t>(ImageHeader::kResolutionMethod) == 0u); in InitAppImage() 646 for (size_t i = 0u; i != static_cast<size_t>(ImageHeader::kImageMethodsCount); ++i) { in InitAppImage() [all …]
|
D | image_space.h | 178 const ImageHeader& GetImageHeader() const { in GetImageHeader() 179 return *reinterpret_cast<ImageHeader*>(Begin()); in GetImageHeader() 422 const ImageHeader& header, 425 bool ValidateHeader(const ImageHeader& header,
|
D | image_space_test.cc | 160 const ImageHeader& image_header = space->GetImageHeader(); in TEST_F()
|
/art/imgdiag/ |
D | imgdiag.cc | 103 std::array<size_t, ImageHeader::kSectionCount> private_dirty_pages_for_section = {}; 209 const ImageHeader& image_header) in RemoteContentsPointerToLocal() 258 const ImageHeader& image_header) : in RegionCommon() 328 const ImageHeader& image_header_; 395 const ImageHeader& image_header, in RegionSpecializedBase() 730 const ImageHeader& image_header, in RegionSpecializedBase() 972 const ImageHeader& image_header, in RegionData() 1226 bool Dump(const ImageHeader& image_header, const std::string& image_location) in Dump() 1250 bool DumpImageDiff(const ImageHeader& image_header, const std::string& image_location) in DumpImageDiff() 1255 bool ComputeDirtyBytes(const ImageHeader& image_header, in ComputeDirtyBytes() [all …]
|
/art/dex2oat/ |
D | dex2oat_options.cc | 215 .WithType<ImageHeader::StorageMode>() in AddImageMappings() 216 .WithValueMap({{"lz4", ImageHeader::kStorageModeLZ4}, in AddImageMappings() 217 {"lz4hc", ImageHeader::kStorageModeLZ4HC}, in AddImageMappings() 218 {"uncompressed", ImageHeader::kStorageModeUncompressed}}) in AddImageMappings()
|
D | dex2oat_options.def | 60 DEX2OAT_OPTIONS_KEY (ImageHeader::StorageMode, ImageFormat)
|
D | dex2oat_test.cc | 681 ImageHeader image_header; in GetImageObjectSectionSize() 821 ImageHeader image_header; in CheckResult() 1949 ImageHeader header = {}; in TEST_F() 1954 EXPECT_GT(header.GetImageSection(ImageHeader::kSectionObjects).Size(), 0u); in TEST_F() 1955 EXPECT_EQ(header.GetImageSection(ImageHeader::kSectionArtMethods).Size(), 0u); in TEST_F() 1956 EXPECT_EQ(header.GetImageSection(ImageHeader::kSectionArtFields).Size(), 0u); in TEST_F()
|
/art/compiler/optimizing/ |
D | intrinsic_objects.cc | 28 enum_cast<size_t>(ImageHeader::kIntrinsicObjectsStart);
|
D | intrinsics.cc | 67 const ImageHeader& main_header = boot_image_spaces[0]->GetImageHeader(); in GetBootImageLiveObjects() 70 main_header.GetImageRoot<kWithoutReadBarrier>(ImageHeader::kBootImageLiveObjects)); in GetBootImageLiveObjects()
|
D | code_generator.cc | 903 static uint32_t GetBootImageOffsetImpl(const void* object, ImageHeader::ImageSections section) { in GetBootImageOffsetImpl() 921 return GetBootImageOffsetImpl(object.Ptr(), ImageHeader::kSectionObjects); in GetBootImageOffset() 929 return GetBootImageOffsetImpl(klass.Ptr(), ImageHeader::kSectionObjects); in GetBootImageOffset() 937 return GetBootImageOffsetImpl(string.Ptr(), ImageHeader::kSectionObjects); in GetBootImageOffset() 943 return GetBootImageOffsetImpl(method, ImageHeader::kSectionArtMethods); in GetBootImageOffset() 949 return GetBootImageOffsetImpl(klass.Ptr(), ImageHeader::kSectionObjects); in GetBootImageOffset() 959 return GetBootImageOffsetImpl(declaring_class.Ptr(), ImageHeader::kSectionObjects); in GetBootImageOffsetOfIntrinsicDeclaringClass()
|
/art/oatdump/ |
D | oatdump.cc | 1551 const ImageHeader& main_header = boot_image_spaces[0]->GetImageHeader(); in GetBootImageLiveObjectsDataRange() 1554 main_header.GetImageRoot<kWithoutReadBarrier>(ImageHeader::kBootImageLiveObjects)); in GetBootImageLiveObjectsDataRange() 1751 const ImageHeader& image_header, in ImageDumper() 1782 for (size_t i = 0; i < ImageHeader::kSectionCount; ++i) { in Dump() 1783 auto section = static_cast<ImageHeader::ImageSections>(i); in Dump() 1790 static_cast<size_t>(ImageHeader::kImageRootsMax), "sizes must match"); in Dump() 1791 DCHECK_LE(image_header_.GetImageRoots()->GetLength(), ImageHeader::kImageRootsMax); in Dump() 1793 ImageHeader::ImageRoot image_root = static_cast<ImageHeader::ImageRoot>(i); in Dump() 1830 static_cast<size_t>(ImageHeader::kImageMethodsCount), "sizes must match"); in Dump() 1831 for (int i = 0; i < ImageHeader::kImageMethodsCount; i++) { in Dump() [all …]
|
/art/runtime/gc/collector/ |
D | immune_spaces_test.cc | 115 ImageSection sections[ImageHeader::kSectionCount]; in CreateImageSpace() 116 new (image_map.Begin()) ImageHeader( in CreateImageSpace() 215 const ImageHeader& image_header = image_space->GetImageHeader(); in TEST_F()
|
/art/runtime/jit/ |
D | jit.cc | 630 const ImageHeader& header = space->GetImageHeader(); in NotifyZygoteCompilationDone() 689 const ImageHeader& header = space->GetImageHeader(); in NotifyZygoteCompilationDone() 717 const ImageHeader& header = space->GetImageHeader(); in NotifyZygoteCompilationDone() 1123 const ImageHeader& header = space->GetImageHeader(); in MapBootImageMethods() 1243 const ImageHeader& header = space->GetImageHeader(); in CreateThreadPool()
|