Lines Matching refs:ImageWriter

202 ObjPtr<mirror::ClassLoader> ImageWriter::GetAppClassLoader() const  in GetAppClassLoader()
209 bool ImageWriter::IsImageDexCache(ObjPtr<mirror::DexCache> dex_cache) const { in IsImageDexCache()
240 bool ImageWriter::PrepareImageAddressSpace(bool preload_dex_caches, TimingLogger* timings) { in PrepareImageAddressSpace()
327 void ImageWriter::CopyMetadata() { in CopyMetadata()
343 bool ImageWriter::IsInternedAppImageStringReference(ObjPtr<mirror::Object> referred_obj) const { in IsInternedAppImageStringReference()
352 class ImageWriter::ImageFileGuard {
403 bool ImageWriter::Write(int image_fd, in Write()
611 size_t ImageWriter::GetImageOffset(mirror::Object* object, size_t oat_index) const { in GetImageOffset()
619 void ImageWriter::SetImageBinSlot(mirror::Object* object, BinSlot bin_slot) { in SetImageBinSlot()
657 void ImageWriter::PrepareDexCacheArraySlots() { in PrepareDexCacheArraySlots()
733 void ImageWriter::AddDexCacheArrayRelocation(void* array, in AddDexCacheArrayRelocation()
743 void ImageWriter::AddMethodPointerArray(ObjPtr<mirror::PointerArray> arr) { in AddMethodPointerArray()
760 ImageWriter::Bin ImageWriter::AssignImageBinSlot(mirror::Object* object, size_t oat_index) { in AssignImageBinSlot()
889 bool ImageWriter::WillMethodBeDirty(ArtMethod* m) const { in WillMethodBeDirty()
899 bool ImageWriter::IsImageBinSlotAssigned(mirror::Object* object) const { in IsImageBinSlotAssigned()
918 ImageWriter::BinSlot ImageWriter::GetImageBinSlot(mirror::Object* object, size_t oat_index) const { in GetImageBinSlot()
932 void ImageWriter::UpdateImageBinSlotOffset(mirror::Object* object, in UpdateImageBinSlotOffset()
944 bool ImageWriter::AllocMemory() { in AllocMemory()
976 bool ImageWriter::IsBootClassLoaderNonImageClass(mirror::Class* klass) { in IsBootClassLoaderNonImageClass()
982 class ImageWriter::PruneObjectReferenceVisitor {
984 PruneObjectReferenceVisitor(ImageWriter* image_writer, in PruneObjectReferenceVisitor()
1038 ImageWriter* image_writer_;
1045 bool ImageWriter::PruneImageClass(ObjPtr<mirror::Class> klass) { in PruneImageClass()
1051 bool ImageWriter::PruneImageClassInternal( in PruneImageClassInternal()
1151 bool ImageWriter::KeepClass(ObjPtr<mirror::Class> klass) { in KeepClass()
1175 class ImageWriter::PruneClassesVisitor : public ClassVisitor {
1177 PruneClassesVisitor(ImageWriter* image_writer, ObjPtr<mirror::ClassLoader> class_loader) in PruneClassesVisitor()
1207 ImageWriter* const image_writer_;
1213 class ImageWriter::PruneClassLoaderClassesVisitor : public ClassLoaderVisitor {
1215 explicit PruneClassLoaderClassesVisitor(ImageWriter* image_writer) in PruneClassLoaderClassesVisitor()
1232 ImageWriter* const image_writer_;
1236 void ImageWriter::VisitClassLoaders(ClassLoaderVisitor* visitor) { in VisitClassLoaders()
1242 void ImageWriter::ClearDexCache(ObjPtr<mirror::DexCache> dex_cache) { in ClearDexCache()
1278 void ImageWriter::PreloadDexCache(ObjPtr<mirror::DexCache> dex_cache, in PreloadDexCache()
1385 void ImageWriter::PruneNonImageClasses() { in PruneNonImageClasses()
1428 std::vector<ObjPtr<mirror::DexCache>> ImageWriter::FindDexCaches(Thread* self) { in FindDexCaches()
1442 void ImageWriter::CheckNonImageClassesRemoved() { in CheckNonImageClassesRemoved()
1457 void ImageWriter::DumpImageClasses() { in DumpImageClasses()
1463 ObjPtr<mirror::ObjectArray<mirror::Object>> ImageWriter::CollectDexCaches(Thread* self, in CollectDexCaches()
1534 ObjPtr<ObjectArray<Object>> ImageWriter::CreateImageRoots( in CreateImageRoots()
1563 void ImageWriter::RecordNativeRelocations(ObjPtr<mirror::Object> obj, size_t oat_index) { in RecordNativeRelocations()
1707 bool ImageWriter::NativeRelocationAssigned(void* ptr) const { in NativeRelocationAssigned()
1711 bool ImageWriter::TryAssignImTableOffset(ImTable* imt, size_t oat_index) { in TryAssignImTableOffset()
1729 void ImageWriter::TryAssignConflictTableOffset(ImtConflictTable* table, size_t oat_index) { in TryAssignConflictTableOffset()
1747 void ImageWriter::AssignMethodOffset(ArtMethod* method, in AssignMethodOffset()
1763 class ImageWriter::LayoutHelper {
1765 explicit LayoutHelper(ImageWriter* image_writer) in LayoutHelper()
1806 ImageWriter* const image_writer_;
1817 class ImageWriter::LayoutHelper::CollectClassesVisitor : public ClassVisitor {
1819 explicit CollectClassesVisitor(ImageWriter* image_writer) in CollectClassesVisitor()
1886 ImageWriter* const image_writer_;
1891 class ImageWriter::LayoutHelper::CollectRootsVisitor {
1911 class ImageWriter::LayoutHelper::CollectStringReferenceVisitor {
1914 const ImageWriter* image_writer, in CollectStringReferenceVisitor()
1960 const ImageWriter* const image_writer_;
1966 class ImageWriter::LayoutHelper::VisitReferencesVisitor {
2018 void ImageWriter::LayoutHelper::ProcessDexFileObjects(Thread* self) { in ProcessDexFileObjects()
2073 void ImageWriter::LayoutHelper::ProcessRoots(VariableSizedHandleScope* handles) { in ProcessRoots()
2089 void ImageWriter::LayoutHelper::ProcessWorkQueue() { in ProcessWorkQueue()
2097 void ImageWriter::LayoutHelper::VerifyImageBinSlotsAssigned() { in VerifyImageBinSlotsAssigned()
2180 void ImageWriter::LayoutHelper::FinalizeBinSlotOffsets() { in FinalizeBinSlotOffsets()
2281 void ImageWriter::LayoutHelper::CollectStringReferenceInfo(Thread* self) { in CollectStringReferenceInfo()
2357 void ImageWriter::LayoutHelper::VisitReferences(ObjPtr<mirror::Object> obj, size_t oat_index) { in VisitReferences()
2371 bool ImageWriter::LayoutHelper::TryAssignBinSlot(ObjPtr<mirror::Object> obj, size_t oat_index) { in TryAssignBinSlot()
2394 void ImageWriter::CalculateNewObjectOffsets() { in CalculateNewObjectOffsets()
2515 std::pair<size_t, std::vector<ImageSection>> ImageWriter::ImageInfo::CreateImageSections() const { in CreateImageSections()
2621 void ImageWriter::CreateHeader(size_t oat_index, size_t component_count) { in CreateHeader()
2712 ArtMethod* ImageWriter::GetImageMethodAddress(ArtMethod* method) { in GetImageMethodAddress()
2719 const void* ImageWriter::GetIntrinsicReferenceAddress(uint32_t intrinsic_data) { in GetIntrinsicReferenceAddress()
2741 class ImageWriter::FixupRootVisitor : public RootVisitor {
2743 explicit FixupRootVisitor(ImageWriter* image_writer) : image_writer_(image_writer) { in FixupRootVisitor()
2766 ImageWriter* const image_writer_;
2769 void ImageWriter::CopyAndFixupImTable(ImTable* orig, ImTable* copy) { in CopyAndFixupImTable()
2778 void ImageWriter::CopyAndFixupImtConflictTable(ImtConflictTable* orig, ImtConflictTable* copy) { in CopyAndFixupImtConflictTable()
2793 void ImageWriter::CopyAndFixupNativeData(size_t oat_index) { in CopyAndFixupNativeData()
2925 void ImageWriter::FixupPointerArray(mirror::Object* dst, in FixupPointerArray()
2958 void ImageWriter::CopyAndFixupObject(Object* obj) { in CopyAndFixupObject()
3001 class ImageWriter::FixupVisitor {
3003 FixupVisitor(ImageWriter* image_writer, Object* copy) in FixupVisitor()
3029 ImageWriter* const image_writer_;
3033 void ImageWriter::CopyAndFixupObjects() { in CopyAndFixupObjects()
3064 class ImageWriter::FixupClassVisitor final : public FixupVisitor {
3066 FixupClassVisitor(ImageWriter* image_writer, Object* copy) in FixupClassVisitor()
3082 ImageWriter::NativeObjectRelocation ImageWriter::GetNativeRelocation(void* obj) { in GetNativeRelocation()
3104 T* ImageWriter::NativeLocationInImage(T* obj) { in NativeLocationInImage()
3115 T* ImageWriter::NativeCopyLocation(T* obj) { in NativeCopyLocation()
3121 class ImageWriter::NativeLocationVisitor {
3123 explicit NativeLocationVisitor(ImageWriter* image_writer) in NativeLocationVisitor()
3137 ImageWriter* const image_writer_;
3140 void ImageWriter::FixupClass(mirror::Class* orig, mirror::Class* copy) { in FixupClass()
3177 void ImageWriter::FixupObject(Object* orig, Object* copy) { in FixupObject()
3224 void ImageWriter::FixupDexCacheArrayEntry(std::atomic<mirror::DexCachePair<T>>* orig_array, in FixupDexCacheArrayEntry()
3239 void ImageWriter::FixupDexCacheArrayEntry(std::atomic<mirror::NativeDexCachePair<T>>* orig_array, in FixupDexCacheArrayEntry()
3268 void ImageWriter::FixupDexCacheArrayEntry(GcRoot<mirror::CallSite>* orig_array, in FixupDexCacheArrayEntry()
3276 void ImageWriter::FixupDexCacheArray(DexCache* orig_dex_cache, in FixupDexCacheArray()
3293 void ImageWriter::FixupDexCache(DexCache* orig_dex_cache, DexCache* copy_dex_cache) { in FixupDexCache()
3330 const uint8_t* ImageWriter::GetOatAddress(StubType type) const { in GetOatAddress()
3364 const uint8_t* ImageWriter::GetQuickCode(ArtMethod* method, const ImageInfo& image_info) { in GetQuickCode()
3403 void ImageWriter::CopyAndFixupMethod(ArtMethod* orig, in CopyAndFixupMethod()
3479 size_t ImageWriter::ImageInfo::GetBinSizeSum(Bin up_to) const { in GetBinSizeSum()
3486 ImageWriter::BinSlot::BinSlot(uint32_t lockword) : lockword_(lockword) { in BinSlot()
3496 ImageWriter::BinSlot::BinSlot(Bin bin, uint32_t index) in BinSlot()
3501 ImageWriter::Bin ImageWriter::BinSlot::GetBin() const { in GetBin()
3505 uint32_t ImageWriter::BinSlot::GetOffset() const { in GetOffset()
3509 ImageWriter::Bin ImageWriter::BinTypeForNativeRelocationType(NativeObjectRelocationType type) { in BinTypeForNativeRelocationType()
3534 size_t ImageWriter::GetOatIndex(mirror::Object* obj) const { in GetOatIndex()
3543 size_t ImageWriter::GetOatIndexForDexFile(const DexFile* dex_file) const { in GetOatIndexForDexFile()
3552 size_t ImageWriter::GetOatIndexForClass(ObjPtr<mirror::Class> klass) const { in GetOatIndexForClass()
3565 void ImageWriter::UpdateOatFileLayout(size_t oat_index, in UpdateOatFileLayout()
3597 void ImageWriter::UpdateOatFileHeader(size_t oat_index, const OatHeader& oat_header) { in UpdateOatFileHeader()
3618 ImageWriter::ImageWriter( in ImageWriter() function in art::linker::ImageWriter
3657 ImageWriter::ImageInfo::ImageInfo() in ImageInfo()
3662 void ImageWriter::CopyAndFixupReference(DestType* dest, ObjPtr<mirror::Object> src) { in CopyAndFixupReference()
3669 void ImageWriter::CopyAndFixupPointer(void** target, void* value, PointerSize pointer_size) { in CopyAndFixupPointer()
3679 void ImageWriter::CopyAndFixupPointer(void** target, void* value) in CopyAndFixupPointer()
3684 void ImageWriter::CopyAndFixupPointer( in CopyAndFixupPointer()
3691 void ImageWriter::CopyAndFixupPointer(void* object, MemberOffset offset, void* value) { in CopyAndFixupPointer()