Lines Matching refs:oat_index

611 size_t ImageWriter::GetImageOffset(mirror::Object* object, size_t oat_index) const {  in GetImageOffset()
612 BinSlot bin_slot = GetImageBinSlot(object, oat_index); in GetImageOffset()
613 const ImageInfo& image_info = GetImageInfo(oat_index); in GetImageOffset()
690 size_t oat_index = GetOatIndexForDexFile(dex_file); in PrepareDexCacheArraySlots() local
691 ImageInfo& image_info = GetImageInfo(oat_index); in PrepareDexCacheArraySlots()
696 oat_index); in PrepareDexCacheArraySlots()
700 oat_index); in PrepareDexCacheArraySlots()
704 oat_index); in PrepareDexCacheArraySlots()
706 AddDexCacheArrayRelocation(dex_cache->GetStrings(), start + layout.StringsOffset(), oat_index); in PrepareDexCacheArraySlots()
710 oat_index); in PrepareDexCacheArraySlots()
713 oat_index); in PrepareDexCacheArraySlots()
724 NativeObjectRelocation { oat_index, in PrepareDexCacheArraySlots()
735 size_t oat_index) { in AddDexCacheArrayRelocation() argument
739 NativeObjectRelocation { oat_index, offset, NativeObjectRelocationType::kDexCacheArray }); in AddDexCacheArrayRelocation()
760 ImageWriter::Bin ImageWriter::AssignImageBinSlot(mirror::Object* object, size_t oat_index) { in AssignImageBinSlot() argument
868 oat_index_map_.emplace(object, oat_index); in AssignImageBinSlot()
870 ImageInfo& image_info = GetImageInfo(oat_index); in AssignImageBinSlot()
910 size_t oat_index = GetOatIndex(object); in IsImageBinSlotAssigned() local
911 const ImageInfo& image_info = GetImageInfo(oat_index); in IsImageBinSlotAssigned()
918 ImageWriter::BinSlot ImageWriter::GetImageBinSlot(mirror::Object* object, size_t oat_index) const { in GetImageBinSlot()
927 DCHECK_LT(bin_slot.GetOffset(), GetImageInfo(oat_index).GetBinSlotSize(bin_slot.GetBin())); in GetImageBinSlot()
933 size_t oat_index, in UpdateImageBinSlotOffset() argument
935 BinSlot old_bin_slot = GetImageBinSlot(object, oat_index); in UpdateImageBinSlotOffset()
936 DCHECK_LT(new_offset, GetImageInfo(oat_index).GetBinSlotSize(old_bin_slot.GetBin())); in UpdateImageBinSlotOffset()
1464 size_t oat_index) const { in CollectDexCaches()
1469 if (oat_index == image_oat_index) { in CollectDexCaches()
1535 size_t oat_index, in CreateImageRoots() argument
1542 Handle<ObjectArray<Object>> dex_caches(hs.NewHandle(CollectDexCaches(self, oat_index))); in CreateImageRoots()
1563 void ImageWriter::RecordNativeRelocations(ObjPtr<mirror::Object> obj, size_t oat_index) { in RecordNativeRelocations() argument
1575 GetImageInfo(oat_index).intern_table_->InternStrongImageString(str); in RecordNativeRelocations()
1579 DCHECK_EQ(oat_index, GetOatIndexForDexFile(obj->AsDexCache()->GetDexFile())); in RecordNativeRelocations()
1583 DCHECK_EQ(oat_index, GetOatIndexForClass(as_klass)); in RecordNativeRelocations()
1592 ImageInfo& image_info = GetImageInfo(oat_index); in RecordNativeRelocations()
1611 oat_index, offset, NativeObjectRelocationType::kArtFieldArray in RecordNativeRelocations()
1624 NativeObjectRelocation { oat_index, in RecordNativeRelocations()
1662 oat_index, in RecordNativeRelocations()
1668 AssignMethodOffset(&m, type, oat_index); in RecordNativeRelocations()
1676 if (TryAssignImTableOffset(imt, oat_index)) { in RecordNativeRelocations()
1685 AssignMethodOffset(imt_method, NativeObjectRelocationType::kRuntimeMethod, oat_index); in RecordNativeRelocations()
1697 ImageInfo& image_info = GetImageInfo(oat_index); in RecordNativeRelocations()
1711 bool ImageWriter::TryAssignImTableOffset(ImTable* imt, size_t oat_index) { in TryAssignImTableOffset() argument
1717 ImageInfo& image_info = GetImageInfo(oat_index); in TryAssignImTableOffset()
1722 oat_index, in TryAssignImTableOffset()
1729 void ImageWriter::TryAssignConflictTableOffset(ImtConflictTable* table, size_t oat_index) { in TryAssignConflictTableOffset() argument
1736 ImageInfo& image_info = GetImageInfo(oat_index); in TryAssignConflictTableOffset()
1741 oat_index, in TryAssignConflictTableOffset()
1749 size_t oat_index) { in AssignMethodOffset() argument
1754 TryAssignConflictTableOffset(method->GetImtConflictTable(target_ptr_size_), oat_index); in AssignMethodOffset()
1756 ImageInfo& image_info = GetImageInfo(oat_index); in AssignMethodOffset()
1759 native_object_relocations_.emplace(method, NativeObjectRelocation { oat_index, offset, type }); in AssignMethodOffset()
1801 void VisitReferences(ObjPtr<mirror::Object> obj, size_t oat_index)
1803 bool TryAssignBinSlot(ObjPtr<mirror::Object> obj, size_t oat_index)
1915 size_t oat_index, in CollectStringReferenceVisitor() argument
1919 oat_index_(oat_index), in CollectStringReferenceVisitor()
1968 VisitReferencesVisitor(LayoutHelper* helper, size_t oat_index) in VisitReferencesVisitor() argument
1969 : helper_(helper), oat_index_(oat_index) {} in VisitReferencesVisitor()
2040 const size_t oat_index = it->second; in ProcessDexFileObjects() local
2051 bool assigned = TryAssignBinSlot(string, oat_index); in ProcessDexFileObjects()
2060 bool assigned = TryAssignBinSlot(dex_cache, oat_index); in ProcessDexFileObjects()
2062 work_queue_.emplace_back(dex_cache, oat_index); in ProcessDexFileObjects()
2184 for (size_t oat_index = 0; oat_index != num_image_infos; ++oat_index) { in FinalizeBinSlotOffsets() local
2185 ImageInfo& image_info = image_writer_->image_infos_[oat_index]; in FinalizeBinSlotOffsets()
2221 for (mirror::Object* object : bin_objects_[oat_index][i]) { in FinalizeBinSlotOffsets()
2222 BinSlot bin_slot = image_writer_->GetImageBinSlot(object, oat_index); in FinalizeBinSlotOffsets()
2258 image_writer_->UpdateImageBinSlotOffset(object, oat_index, object_offset); in FinalizeBinSlotOffsets()
2286 for (size_t oat_index = 0; oat_index != num_image_infos; ++oat_index) { in CollectStringReferenceInfo() local
2287 ImageInfo& image_info = image_writer_->image_infos_[oat_index]; in CollectStringReferenceInfo()
2292 for (mirror::Object* obj : bin_objects_[oat_index][i]) { in CollectStringReferenceInfo()
2294 oat_index, in CollectStringReferenceInfo()
2316 if (image_writer_->GetOatIndexForDexFile(dex_file) == oat_index) { in CollectStringReferenceInfo()
2320 size_t base_offset = image_writer_->GetImageOffset(dex_cache.Ptr(), oat_index); in CollectStringReferenceInfo()
2357 void ImageWriter::LayoutHelper::VisitReferences(ObjPtr<mirror::Object> obj, size_t oat_index) { in VisitReferences() argument
2359 VisitReferencesVisitor visitor(this, oat_index); in VisitReferences()
2371 bool ImageWriter::LayoutHelper::TryAssignBinSlot(ObjPtr<mirror::Object> obj, size_t oat_index) { in TryAssignBinSlot() argument
2378 image_writer_->RecordNativeRelocations(obj, oat_index); in TryAssignBinSlot()
2379 Bin bin = image_writer_->AssignImageBinSlot(obj.Ptr(), oat_index); in TryAssignBinSlot()
2380 bin_objects_[oat_index][enum_cast<size_t>(bin)].push_back(obj.Ptr()); in TryAssignBinSlot()
2507 ImageInfo& image_info = GetImageInfo(relocation.oat_index); in CalculateNewObjectOffsets()
2621 void ImageWriter::CreateHeader(size_t oat_index, size_t component_count) { in CreateHeader() argument
2622 ImageInfo& image_info = GetImageInfo(oat_index); in CreateHeader()
2631 DCHECK_EQ(oat_index, 0u); in CreateHeader()
2636 if (oat_index == 0u) { in CreateHeader()
2652 if (oat_index == 0u) { in CreateHeader()
2675 LOG(INFO) << "Creating header for " << oat_filenames_[oat_index]; in CreateHeader()
2714 const ImageInfo& image_info = GetImageInfo(relocation.oat_index); in GetImageMethodAddress()
2793 void ImageWriter::CopyAndFixupNativeData(size_t oat_index) { in CopyAndFixupNativeData() argument
2794 const ImageInfo& image_info = GetImageInfo(oat_index); in CopyAndFixupNativeData()
2799 if (relocation.oat_index != oat_index) { in CopyAndFixupNativeData()
2818 oat_index); in CopyAndFixupNativeData()
2962 size_t oat_index = GetOatIndex(obj); in CopyAndFixupObject() local
2963 size_t offset = GetImageOffset(obj, oat_index); in CopyAndFixupObject()
2964 ImageInfo& image_info = GetImageInfo(oat_index); in CopyAndFixupObject()
3109 const ImageInfo& image_info = GetImageInfo(relocation.oat_index); in NativeLocationInImage()
3117 const ImageInfo& image_info = GetImageInfo(relocation.oat_index); in NativeCopyLocation()
3405 size_t oat_index) { in CopyAndFixupMethod() argument
3456 const ImageInfo& image_info = image_infos_[oat_index]; in CopyAndFixupMethod()
3562 void ImageWriter::UpdateOatFileLayout(size_t oat_index, in UpdateOatFileLayout() argument
3575 ImageInfo& cur_image_info = GetImageInfo(oat_index); in UpdateOatFileLayout()
3587 if (oat_index + 1u != oat_filenames_.size()) { in UpdateOatFileLayout()
3589 ImageInfo& next_image_info = GetImageInfo(oat_index + 1u); in UpdateOatFileLayout()
3594 void ImageWriter::UpdateOatFileHeader(size_t oat_index, const OatHeader& oat_header) { in UpdateOatFileHeader() argument
3595 ImageInfo& cur_image_info = GetImageInfo(oat_index); in UpdateOatFileHeader()
3598 if (oat_index == GetDefaultOatIndex()) { in UpdateOatFileHeader()