Lines Matching refs:writer_

115       : OutputStream(out->GetLocation()), out_(out), writer_(writer) { }  in ChecksumUpdatingOutputStream()
120 uint32_t old_checksum = writer_->oat_checksum_; in WriteFully()
121 writer_->oat_checksum_ = adler32(old_checksum, bytes, byte_count); in WriteFully()
138 OatWriter* const writer_; member in art::linker::OatWriter::ChecksumUpdatingOutputStream
805 : writer_(writer), in DexMethodVisitor()
835 OatWriter* const writer_; member in art::linker::OatWriter::DexMethodVisitor
854 if (kIsDebugBuild && writer_->MayHaveCompiledMethods()) { in StartClass()
856 CHECK_LT(oat_class_index_, writer_->oat_classes_.size()); in StartClass()
890 CompiledMethod* compiled_method = writer_->compiler_driver_->GetCompiledMethod( in VisitMethod()
895 writer_->data_bimg_rel_ro_entries_.Overwrite(patch.BootImageOffset(), in VisitMethod()
901 &writer_->bss_method_entry_references_); in VisitMethod()
902 writer_->bss_method_entries_.Overwrite(target_method, /* placeholder */ 0u); in VisitMethod()
907 &writer_->bss_type_entry_references_); in VisitMethod()
908 writer_->bss_type_entries_.Overwrite(target_type, /* placeholder */ 0u); in VisitMethod()
913 &writer_->bss_string_entry_references_); in VisitMethod()
914 writer_->bss_string_entries_.Overwrite(target_string, /* placeholder */ 0u); in VisitMethod()
949 for (const OatDexFile& oat_dex_file : writer_->oat_dex_files_) { in InitOatClassesMethodVisitor()
953 writer_->oat_class_headers_.reserve(num_classes); in InitOatClassesMethodVisitor()
977 writer_->compiler_driver_->GetCompiledMethod(MethodReference(dex_file_, method_idx)); in VisitMethod()
988 bool found = writer_->compiler_driver_->GetCompiledClass(class_ref, &status); in EndClass()
990 const VerificationResults* results = writer_->compiler_options_.GetVerificationResults(); in EndClass()
1006 writer_->oat_class_headers_.emplace_back(offset_, in EndClass()
1010 OatClassHeader& header = writer_->oat_class_headers_.back(); in EndClass()
1012 if (writer_->MayHaveCompiledMethods()) { in EndClass()
1013 writer_->oat_classes_.emplace_back(compiled_methods_, in EndClass()
1016 offset_ += writer_->oat_classes_.back().SizeOf(); in EndClass()
1187 OatClass* oat_class = &writer_->oat_classes_[oat_class_index_]; in VisitMethod()
1194 const CompilerOptions& compiler_options = writer_->GetCompilerOptions(); in VisitMethod()
1203 writer_->method_info_.push_back(info); in VisitMethod()
1210 debug_info_idx = writer_->method_info_.size() - 1; in VisitMethod()
1219 writer_->profile_compilation_info_ != nullptr in VisitMethod()
1220 ? writer_->profile_compilation_info_->GetMethodHotness(method_ref) in VisitMethod()
1244 if (kOatWriterForceOatCodeLayout || writer_->profile_compilation_info_ != nullptr) { in ReleaseOrderedMethods()
1280 offset_ = writer_->relative_patcher_->ReserveSpaceEnd(offset_); in VisitComplete()
1284 writer_->method_info_.insert(writer_->method_info_.end(), in VisitComplete()
1372 debug::MethodDebugInfo& info = writer_->method_info_[debug_info_idx]; in VisitMethod()
1411 writer_(writer), in LayoutReserveOffsetCodeMethodVisitor()
1449 OatWriter* writer_; member in art::linker::OatWriter::LayoutReserveOffsetCodeMethodVisitor
1470 dedupe_bit_table_(&writer_->code_info_data_) { in InitMapMethodVisitor()
1476 OatClass* oat_class = &writer_->oat_classes_[oat_class_index_]; in VisitMethod()
1515 pointer_size_(GetInstructionSetPointerSize(writer_->compiler_options_.GetInstructionSet())), in InitImageMethodVisitor()
1571 OatClass* oat_class = &writer_->oat_classes_[oat_class_index_]; in VisitMethod()
1584 if (writer_->GetCompilerOptions().IsBootImage() || in VisitMethod()
1585 writer_->GetCompilerOptions().IsBootImageExtension()) { in VisitMethod()
1616 return writer_->GetCompilerOptions().IsImageClass(class_descriptor); in IsImageClass()
1654 writer_(writer), in WriteCodeMethodVisitor()
1657 pointer_size_(GetInstructionSetPointerSize(writer_->compiler_options_.GetInstructionSet())), in WriteCodeMethodVisitor()
1665 if (writer_->GetCompilerOptions().IsBootImage() || in WriteCodeMethodVisitor()
1666 writer_->GetCompilerOptions().IsBootImageExtension()) { in WriteCodeMethodVisitor()
1668 CHECK(writer_->image_writer_->IsImageAddressSpaceReady()); in WriteCodeMethodVisitor()
1681 DCHECK(writer_->MayHaveCompiledMethods()); in UpdateDexFileAndDexCache()
1683 if (writer_->GetCompilerOptions().IsAotCompilationEnabled()) { in UpdateDexFileAndDexCache()
1693 offset_ = writer_->relative_patcher_->WriteThunks(out_, offset_); in VisitComplete()
1724 offset_ = writer_->relative_patcher_->WriteThunks(out, offset_); in VisitMethod()
1731 if (!writer_->WriteCodeAlignment(out, alignment_size)) { in VisitMethod()
1749 writer_->size_method_header_ += sizeof(method_header); in VisitMethod()
1761 writer_->relative_patcher_->PatchPcRelativeReference(&patched_code_, in VisitMethod()
1769 writer_->data_bimg_rel_ro_start_ + in VisitMethod()
1770 writer_->data_bimg_rel_ro_entries_.Get(patch.BootImageOffset()); in VisitMethod()
1771 writer_->relative_patcher_->PatchPcRelativeReference(&patched_code_, in VisitMethod()
1779 writer_->bss_start_ + writer_->bss_method_entries_.Get(patch.TargetMethod()); in VisitMethod()
1780 writer_->relative_patcher_->PatchPcRelativeReference(&patched_code_, in VisitMethod()
1789 writer_->relative_patcher_->PatchCall(&patched_code_, in VisitMethod()
1797 writer_->relative_patcher_->PatchPcRelativeReference(&patched_code_, in VisitMethod()
1806 writer_->bss_start_ + writer_->bss_string_entries_.Get(ref); in VisitMethod()
1807 writer_->relative_patcher_->PatchPcRelativeReference(&patched_code_, in VisitMethod()
1815 writer_->relative_patcher_->PatchPcRelativeReference(&patched_code_, in VisitMethod()
1823 uint32_t target_offset = writer_->bss_start_ + writer_->bss_type_entries_.Get(ref); in VisitMethod()
1824 writer_->relative_patcher_->PatchPcRelativeReference(&patched_code_, in VisitMethod()
1832 writer_->relative_patcher_->PatchPcRelativeReference(&patched_code_, in VisitMethod()
1839 writer_->relative_patcher_->PatchEntrypointCall(&patched_code_, in VisitMethod()
1845 writer_->relative_patcher_->PatchBakerReadBarrierBranch(&patched_code_, in VisitMethod()
1862 writer_->size_code_ += code_size; in VisitMethod()
1875 OatWriter* const writer_; member in art::linker::OatWriter::WriteCodeMethodVisitor
1914 uint32_t target_offset = writer_->relative_patcher_->GetOffset(patch.TargetMethod()); in GetTargetOffset()
1942 DCHECK(writer_->HasImage()); in GetTargetType()
1956 DCHECK(writer_->GetCompilerOptions().IsBootImage() || in GetTargetString()
1957 writer_->GetCompilerOptions().IsBootImageExtension()); in GetTargetString()
1963 DCHECK(writer_->GetCompilerOptions().IsBootImage()); in GetTargetIntrinsicReferenceOffset()
1965 writer_->image_writer_->GetIntrinsicReferenceAddress(patch.IntrinsicData()); in GetTargetIntrinsicReferenceOffset()
1966 size_t oat_index = writer_->image_writer_->GetOatIndexForDexFile(dex_file_); in GetTargetIntrinsicReferenceOffset()
1967 uintptr_t oat_data_begin = writer_->image_writer_->GetOatDataBegin(oat_index); in GetTargetIntrinsicReferenceOffset()
1973 DCHECK(writer_->GetCompilerOptions().IsBootImage() || in GetTargetMethodOffset()
1974 writer_->GetCompilerOptions().IsBootImageExtension()); in GetTargetMethodOffset()
1975 method = writer_->image_writer_->GetImageMethodAddress(method); in GetTargetMethodOffset()
1976 size_t oat_index = writer_->image_writer_->GetOatIndexForDexFile(dex_file_); in GetTargetMethodOffset()
1977 uintptr_t oat_data_begin = writer_->image_writer_->GetOatDataBegin(oat_index); in GetTargetMethodOffset()
1984 DCHECK(writer_->GetCompilerOptions().IsBootImage() || in GetTargetObjectOffset()
1985 writer_->GetCompilerOptions().IsBootImageExtension()); in GetTargetObjectOffset()
1986 object = writer_->image_writer_->GetImageAddress(object.Ptr()); in GetTargetObjectOffset()
1987 size_t oat_index = writer_->image_writer_->GetOatIndexForDexFile(dex_file_); in GetTargetObjectOffset()
1988 uintptr_t oat_data_begin = writer_->image_writer_->GetOatDataBegin(oat_index); in GetTargetObjectOffset()
2424 : writer_(writer), in WriteQuickeningInfoMethodVisitor()
2437 CompiledMethod* compiled_method = writer_->compiler_driver_->GetCompiledMethod(method_ref); in VisitDexMethods()
2473 OatWriter* const writer_; member in art::linker::OatWriter::WriteQuickeningInfoMethodVisitor