/art/runtime/oat/ |
D | image.cc | 36 const uint8_t ImageHeader::kImageMagic[] = { 'a', 'r', 't', '\n' }; 38 const uint8_t ImageHeader::kImageVersion[] = { '1', '1', '1', '\0' }; 40 ImageHeader::ImageHeader(uint32_t image_reservation_size, in ImageHeader() function in art::ImageHeader 88 void ImageHeader::RelocateImageReferences(int64_t delta) { in RelocateImageReferences() 118 void ImageHeader::RelocateBootImageReferences(int64_t delta) { in RelocateBootImageReferences() 129 bool ImageHeader::IsAppImage() const { in IsAppImage() 136 uint32_t ImageHeader::GetImageSpaceCount() const { in GetImageSpaceCount() 144 bool ImageHeader::IsValid() const { in IsValid() 172 const char* ImageHeader::GetMagic() const { in GetMagic() 177 ArtMethod* ImageHeader::GetImageMethod(ImageMethod index) const { in GetImageMethod() [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() 119 inline void ImageHeader::VisitJniStubMethods(const Visitor& visitor, in VisitJniStubMethods()
|
D | image.h | 80 class PACKED(8) ImageHeader { 131 ImageHeader() {} in ImageHeader() function 132 EXPORT ImageHeader(uint32_t image_reservation_size, 300 return GetImageSection(ImageHeader::kSectionArtFields); in GetFieldsSection() 435 ImageHeader::StorageMode image_storage_mode, 562 const ImageHeader* image_header, in WriteHeaderAndClose() 565 if (!image_file_->PwriteFully(image_header, sizeof(ImageHeader), 0)) { in WriteHeaderAndClose() 597 std::ostream& operator<<(std::ostream& os, ImageHeader::ImageMethod method); 598 std::ostream& operator<<(std::ostream& os, ImageHeader::ImageRoot root); 599 EXPORT std::ostream& operator<<(std::ostream& os, ImageHeader::ImageSections section); [all …]
|
D | jni_stub_hash_map_test.cc | 278 const ImageHeader& header = space->GetImageHeader(); in TEST_F()
|
/art/dex2oat/linker/ |
D | image_test.cc | 36 Compile(ImageHeader::kStorageModeUncompressed, in TEST_F() 49 Compile(ImageHeader::kStorageModeUncompressed, in TEST_F() 76 ImageSection sections[ImageHeader::kSectionCount]; in TEST_F() 78 ImageHeader image_header(image_reservation_size, in TEST_F() 119 Compile(ImageHeader::kStorageModeUncompressed, in TEST_F() 179 Compile(ImageHeader::kStorageModeUncompressed, in TEST_F() 189 Compile(ImageHeader::kStorageModeUncompressed, in TEST_F() 211 Compile(ImageHeader::kStorageModeUncompressed, in TEST_F() 224 ImageSection sections[ImageHeader::kSectionCount]; in TEST_F() 226 sections[ImageHeader::kSectionImageBitmap] = ImageSection(0, kElfSegmentAlignment); in TEST_F() [all …]
|
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 | 375 enum_cast<size_t>(ImageHeader::kIntrinsicObjectsStart) + in AllocateBootImageLiveObjects() 384 auto set_entry = [&](ImageHeader::BootImageLiveObjects entry, in AllocateBootImageLiveObjects() 390 set_entry(ImageHeader::kOomeWhenThrowingException, in AllocateBootImageLiveObjects() 392 set_entry(ImageHeader::kOomeWhenThrowingOome, in AllocateBootImageLiveObjects() 394 set_entry(ImageHeader::kOomeWhenHandlingStackOverflow, in AllocateBootImageLiveObjects() 396 set_entry(ImageHeader::kNoClassDefFoundError, runtime->GetPreAllocatedNoClassDefFoundError()); in AllocateBootImageLiveObjects() 397 set_entry(ImageHeader::kClearedJniWeakSentinel, runtime->GetSentinel().Read()); in AllocateBootImageLiveObjects() 399 DCHECK_EQ(index, enum_cast<int32_t>(ImageHeader::kIntrinsicObjectsStart)); in AllocateBootImageLiveObjects() 524 image_sections[ImageHeader::kSectionStringReferenceOffsets].Offset()); in CopyMetadata() 595 ImageHeader* primary_header = reinterpret_cast<ImageHeader*>(image_infos_[0].image_.Begin()); in Write() [all …]
|
D | image_test.h | 94 void Compile(ImageHeader::StorageMode storage_mode, 128 void DoCompile(ImageHeader::StorageMode storage_mode, /*out*/ CompilationHelper& out_helper); 155 ImageHeader image_header; in GetImageObjectSectionSizes() 163 inline void ImageTest::DoCompile(ImageHeader::StorageMode storage_mode, in DoCompile() 359 ImageHeader::StorageMode storage_mode, in Compile()
|
D | image_writer.h | 83 ImageHeader::StorageMode image_storage_mode, 339 size_t image_end_ = RoundUp(sizeof(ImageHeader), kObjectAlignment); 674 ArtMethod* image_methods_[ImageHeader::kImageMethodsCount]; 693 const ImageHeader::StorageMode image_storage_mode_;
|
/art/runtime/ |
D | runtime_image.cc | 89 sections_(ImageHeader::kSectionCount, allocator_.Adapter()), in RuntimeImageHelper() 100 object_section_size_(sizeof(ImageHeader)), in RuntimeImageHelper() 119 size_t sections_end = sections_[ImageHeader::kSectionMetadata].End(); in Generate() 125 DCHECK(IsAligned<kObjectAlignment>(image_begin_ + sizeof(ImageHeader) + offset)); in Generate() 127 reinterpret_cast<mirror::Object*>(image_begin_ + sizeof(ImageHeader) + offset)); in Generate() 130 auto* bitmap_section = §ions_[ImageHeader::kSectionImageBitmap]; in Generate() 144 const ImageHeader& header = image_spaces[i]->GetImageHeader(); in Generate() 151 header_ = ImageHeader( in Generate() 157 /* image_roots= */ image_begin_ + sizeof(ImageHeader), in Generate() 170 header_.data_size_ = sections_end - sizeof(ImageHeader); in Generate() [all …]
|
D | intern_table-inl.h | 96 const ImageHeader& header = image_space->GetImageHeader(); in AddImageStringsToTable()
|
D | runtime.cc | 2060 const ImageHeader& image_header = GetHeap()->GetBootImageSpaces()[0]->GetImageHeader(); in Init() 2063 image_header.GetImageRoot(ImageHeader::kBootImageLiveObjects)); in Init() 2065 boot_image_live_objects->Get(ImageHeader::kOomeWhenThrowingException)->AsThrowable()); in Init() 2069 boot_image_live_objects->Get(ImageHeader::kOomeWhenThrowingOome)->AsThrowable()); in Init() 2073 boot_image_live_objects->Get(ImageHeader::kOomeWhenHandlingStackOverflow)->AsThrowable()); in Init() 2077 boot_image_live_objects->Get(ImageHeader::kNoClassDefFoundError)->AsThrowable()); in Init() 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() 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() 1368 image_header.GetImageMethod(ImageHeader::kSaveEverythingMethodForSuspendCheck), in InitFromBootImage() [all …]
|
/art/runtime/gc/space/ |
D | image_space.cc | 157 /*out*/ImageHeader* image_header, in ReadSpecificImageHeader() 159 if (!image_file->PreadFully(image_header, sizeof(ImageHeader), /*offset=*/ 0)) { in ReadSpecificImageHeader() 171 /*out*/ImageHeader* image_header, in ReadSpecificImageHeader() 181 static std::unique_ptr<ImageHeader> ReadSpecificImageHeader(const char* filename, in ReadSpecificImageHeader() 183 std::unique_ptr<ImageHeader> hdr(new ImageHeader); in ReadSpecificImageHeader() 191 uint8_t* current = Begin() + RoundUp(sizeof(ImageHeader), kObjectAlignment); in VerifyImageAllocations() 574 const ImageHeader& image_header = space->GetImageHeader(); in InitAppImage() 642 const ImageHeader& primary_header = boot_image_spaces.front()->GetImageHeader(); in InitAppImage() 643 static_assert(static_cast<size_t>(ImageHeader::kResolutionMethod) == 0u); in InitAppImage() 644 for (size_t i = 0u; i != static_cast<size_t>(ImageHeader::kImageMethodsCount); ++i) { in InitAppImage() [all …]
|
D | image_space.h | 179 const ImageHeader& GetImageHeader() const { in GetImageHeader() 180 return *reinterpret_cast<ImageHeader*>(Begin()); in GetImageHeader() 425 const ImageHeader& header, 428 bool ValidateHeader(const ImageHeader& header,
|
/art/imgdiag/ |
D | imgdiag.cc | 100 std::array<size_t, ImageHeader::kSectionCount> private_dirty_pages_for_section = {}; 206 const ImageHeader& image_header) in RemoteContentsPointerToLocal() 255 const ImageHeader& image_header) : in RegionCommon() 326 const ImageHeader& image_header_; 480 ParentMap CalculateParentMap(const std::vector<const ImageHeader*>& image_headers) in CalculateParentMap() 493 for (const ImageHeader* image_header : image_headers) { in CalculateParentMap() 552 const std::vector<const ImageHeader*>& image_headers) in CountUnreachableObjects() 561 for (const ImageHeader* image_header : image_headers) { in CountUnreachableObjects() 577 const ImageHeader& image_header, in RegionSpecializedBase() 900 const ImageHeader& image_header, in RegionSpecializedBase() [all …]
|
/art/compiler/optimizing/ |
D | intrinsic_objects.cc | 30 enum_cast<size_t>(ImageHeader::kIntrinsicObjectsStart); 56 DCHECK_EQ(start_index, ImageHeader::kIntrinsicObjectsStart); in FillIntrinsicObjects()
|
D | intrinsics.cc | 59 const ImageHeader& main_header = boot_image_spaces[0]->GetImageHeader(); in GetBootImageLiveObjects() 62 main_header.GetImageRoot<kWithoutReadBarrier>(ImageHeader::kBootImageLiveObjects)); in GetBootImageLiveObjects()
|
D | code_generator.cc | 820 static uint32_t GetBootImageOffsetImpl(const void* object, ImageHeader::ImageSections section) { in GetBootImageOffsetImpl() 838 return GetBootImageOffsetImpl(object.Ptr(), ImageHeader::kSectionObjects); in GetBootImageOffset() 846 return GetBootImageOffsetImpl(klass.Ptr(), ImageHeader::kSectionObjects); in GetBootImageOffset() 854 return GetBootImageOffsetImpl(string.Ptr(), ImageHeader::kSectionObjects); in GetBootImageOffset() 860 return GetBootImageOffsetImpl(method, ImageHeader::kSectionArtMethods); in GetBootImageOffset() 866 return GetBootImageOffsetImpl(klass.Ptr(), ImageHeader::kSectionObjects); in GetBootImageOffset() 876 return GetBootImageOffsetImpl(declaring_class.Ptr(), ImageHeader::kSectionObjects); in GetBootImageOffsetOfIntrinsicDeclaringClass()
|
/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() 1618 ImageHeader header = {}; in TEST_F() 1623 EXPECT_GT(header.GetImageSection(ImageHeader::kSectionObjects).Size(), 0u); in TEST_F() 1624 EXPECT_EQ(header.GetImageSection(ImageHeader::kSectionArtMethods).Size(), 0u); in TEST_F() 1625 EXPECT_EQ(header.GetImageSection(ImageHeader::kSectionArtFields).Size(), 0u); in TEST_F()
|
/art/oatdump/ |
D | oatdump.cc | 1572 const ImageHeader& main_header = boot_image_spaces[0]->GetImageHeader(); in GetBootImageLiveObjectsDataRange() 1575 main_header.GetImageRoot<kWithoutReadBarrier>(ImageHeader::kBootImageLiveObjects)); in GetBootImageLiveObjectsDataRange() 1782 const ImageHeader& image_header, in ImageDumper() 1813 for (size_t i = 0; i < ImageHeader::kSectionCount; ++i) { in Dump() 1814 auto section = static_cast<ImageHeader::ImageSections>(i); in Dump() 1821 static_cast<size_t>(ImageHeader::kImageRootsMax), "sizes must match"); in Dump() 1822 DCHECK_LE(image_header_.GetImageRoots()->GetLength(), ImageHeader::kImageRootsMax); in Dump() 1824 ImageHeader::ImageRoot image_root = static_cast<ImageHeader::ImageRoot>(i); in Dump() 1861 static_cast<size_t>(ImageHeader::kImageMethodsCount), "sizes must match"); in Dump() 1862 for (int i = 0; i < ImageHeader::kImageMethodsCount; i++) { in Dump() [all …]
|
/art/runtime/gc/collector/ |
D | immune_spaces_test.cc | 137 ImageSection sections[ImageHeader::kSectionCount]; in CreateImageSpace() 138 new (image_map.Begin()) ImageHeader( in CreateImageSpace() 233 const ImageHeader& image_header = image_space->GetImageHeader(); in TEST_F()
|
/art/runtime/jit/ |
D | jit.cc | 527 const ImageHeader& header = space->GetImageHeader(); in NotifyZygoteCompilationDone() 586 const ImageHeader& header = space->GetImageHeader(); in NotifyZygoteCompilationDone() 614 const ImageHeader& header = space->GetImageHeader(); in NotifyZygoteCompilationDone() 1008 const ImageHeader& header = space->GetImageHeader(); in MapBootImageMethods() 1126 const ImageHeader& header = space->GetImageHeader(); in CreateThreadPool()
|