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
816 : writer_(writer), in DexMethodVisitor()
846 OatWriter* const writer_; member in art::linker::OatWriter::DexMethodVisitor
865 if (kIsDebugBuild && writer_->MayHaveCompiledMethods()) { in StartClass()
867 CHECK_LT(oat_class_index_, writer_->oat_classes_.size()); in StartClass()
901 CompiledMethod* compiled_method = writer_->compiler_driver_->GetCompiledMethod( in VisitMethod()
906 writer_->data_bimg_rel_ro_entries_.Overwrite(patch.BootImageOffset(), in VisitMethod()
912 &writer_->bss_method_entry_references_); in VisitMethod()
913 writer_->bss_method_entries_.Overwrite(target_method, /* placeholder */ 0u); in VisitMethod()
918 &writer_->bss_type_entry_references_); in VisitMethod()
919 writer_->bss_type_entries_.Overwrite(target_type, /* placeholder */ 0u); in VisitMethod()
924 &writer_->bss_string_entry_references_); in VisitMethod()
925 writer_->bss_string_entries_.Overwrite(target_string, /* placeholder */ 0u); in VisitMethod()
960 for (const OatDexFile& oat_dex_file : writer_->oat_dex_files_) { in InitOatClassesMethodVisitor()
964 writer_->oat_class_headers_.reserve(num_classes); in InitOatClassesMethodVisitor()
988 writer_->compiler_driver_->GetCompiledMethod(MethodReference(dex_file_, method_idx)); in VisitMethod()
999 bool found = writer_->compiler_driver_->GetCompiledClass(class_ref, &status); in EndClass()
1001 const VerificationResults* results = writer_->compiler_options_.GetVerificationResults(); in EndClass()
1017 writer_->oat_class_headers_.emplace_back(offset_, in EndClass()
1021 OatClassHeader& header = writer_->oat_class_headers_.back(); in EndClass()
1023 if (writer_->MayHaveCompiledMethods()) { in EndClass()
1024 writer_->oat_classes_.emplace_back(compiled_methods_, in EndClass()
1027 offset_ += writer_->oat_classes_.back().SizeOf(); in EndClass()
1198 OatClass* oat_class = &writer_->oat_classes_[oat_class_index_]; in VisitMethod()
1205 const CompilerOptions& compiler_options = writer_->GetCompilerOptions(); in VisitMethod()
1214 writer_->method_info_.push_back(info); in VisitMethod()
1221 debug_info_idx = writer_->method_info_.size() - 1; in VisitMethod()
1230 writer_->profile_compilation_info_ != nullptr in VisitMethod()
1231 ? writer_->profile_compilation_info_->GetMethodHotness(method_ref) in VisitMethod()
1255 if (kOatWriterForceOatCodeLayout || writer_->profile_compilation_info_ != nullptr) { in ReleaseOrderedMethods()
1291 offset_ = writer_->relative_patcher_->ReserveSpaceEnd(offset_); in VisitComplete()
1295 writer_->method_info_.insert(writer_->method_info_.end(), in VisitComplete()
1383 debug::MethodDebugInfo& info = writer_->method_info_[debug_info_idx]; in VisitMethod()
1422 writer_(writer), in LayoutReserveOffsetCodeMethodVisitor()
1460 OatWriter* writer_; member in art::linker::OatWriter::LayoutReserveOffsetCodeMethodVisitor
1481 dedupe_bit_table_(&writer_->code_info_data_) { in InitMapMethodVisitor()
1487 OatClass* oat_class = &writer_->oat_classes_[oat_class_index_]; in VisitMethod()
1526 pointer_size_(GetInstructionSetPointerSize(writer_->compiler_options_.GetInstructionSet())), in InitImageMethodVisitor()
1582 OatClass* oat_class = &writer_->oat_classes_[oat_class_index_]; in VisitMethod()
1595 if (writer_->GetCompilerOptions().IsBootImage() || in VisitMethod()
1596 writer_->GetCompilerOptions().IsBootImageExtension()) { in VisitMethod()
1627 return writer_->GetCompilerOptions().IsImageClass(class_descriptor); in IsImageClass()
1665 writer_(writer), in WriteCodeMethodVisitor()
1668 pointer_size_(GetInstructionSetPointerSize(writer_->compiler_options_.GetInstructionSet())), in WriteCodeMethodVisitor()
1676 if (writer_->GetCompilerOptions().IsBootImage() || in WriteCodeMethodVisitor()
1677 writer_->GetCompilerOptions().IsBootImageExtension()) { in WriteCodeMethodVisitor()
1679 CHECK(writer_->image_writer_->IsImageAddressSpaceReady()); in WriteCodeMethodVisitor()
1692 DCHECK(writer_->MayHaveCompiledMethods()); in UpdateDexFileAndDexCache()
1694 if (writer_->GetCompilerOptions().IsAotCompilationEnabled()) { in UpdateDexFileAndDexCache()
1704 offset_ = writer_->relative_patcher_->WriteThunks(out_, offset_); in VisitComplete()
1735 offset_ = writer_->relative_patcher_->WriteThunks(out, offset_); in VisitMethod()
1742 if (!writer_->WriteCodeAlignment(out, alignment_size)) { in VisitMethod()
1760 writer_->size_method_header_ += sizeof(method_header); in VisitMethod()
1772 writer_->relative_patcher_->PatchPcRelativeReference(&patched_code_, in VisitMethod()
1780 writer_->data_bimg_rel_ro_start_ + in VisitMethod()
1781 writer_->data_bimg_rel_ro_entries_.Get(patch.BootImageOffset()); in VisitMethod()
1782 writer_->relative_patcher_->PatchPcRelativeReference(&patched_code_, in VisitMethod()
1790 writer_->bss_start_ + writer_->bss_method_entries_.Get(patch.TargetMethod()); in VisitMethod()
1791 writer_->relative_patcher_->PatchPcRelativeReference(&patched_code_, in VisitMethod()
1800 writer_->relative_patcher_->PatchCall(&patched_code_, in VisitMethod()
1808 writer_->relative_patcher_->PatchPcRelativeReference(&patched_code_, in VisitMethod()
1817 writer_->bss_start_ + writer_->bss_string_entries_.Get(ref); in VisitMethod()
1818 writer_->relative_patcher_->PatchPcRelativeReference(&patched_code_, in VisitMethod()
1826 writer_->relative_patcher_->PatchPcRelativeReference(&patched_code_, in VisitMethod()
1834 uint32_t target_offset = writer_->bss_start_ + writer_->bss_type_entries_.Get(ref); in VisitMethod()
1835 writer_->relative_patcher_->PatchPcRelativeReference(&patched_code_, in VisitMethod()
1843 writer_->relative_patcher_->PatchPcRelativeReference(&patched_code_, in VisitMethod()
1850 writer_->relative_patcher_->PatchEntrypointCall(&patched_code_, in VisitMethod()
1856 writer_->relative_patcher_->PatchBakerReadBarrierBranch(&patched_code_, in VisitMethod()
1873 writer_->size_code_ += code_size; in VisitMethod()
1886 OatWriter* const writer_; member in art::linker::OatWriter::WriteCodeMethodVisitor
1925 uint32_t target_offset = writer_->relative_patcher_->GetOffset(patch.TargetMethod()); in GetTargetOffset()
1953 DCHECK(writer_->HasImage()); in GetTargetType()
1967 DCHECK(writer_->GetCompilerOptions().IsBootImage() || in GetTargetString()
1968 writer_->GetCompilerOptions().IsBootImageExtension()); in GetTargetString()
1974 DCHECK(writer_->GetCompilerOptions().IsBootImage()); in GetTargetIntrinsicReferenceOffset()
1976 writer_->image_writer_->GetIntrinsicReferenceAddress(patch.IntrinsicData()); in GetTargetIntrinsicReferenceOffset()
1977 size_t oat_index = writer_->image_writer_->GetOatIndexForDexFile(dex_file_); in GetTargetIntrinsicReferenceOffset()
1978 uintptr_t oat_data_begin = writer_->image_writer_->GetOatDataBegin(oat_index); in GetTargetIntrinsicReferenceOffset()
1984 DCHECK(writer_->GetCompilerOptions().IsBootImage() || in GetTargetMethodOffset()
1985 writer_->GetCompilerOptions().IsBootImageExtension()); in GetTargetMethodOffset()
1986 method = writer_->image_writer_->GetImageMethodAddress(method); in GetTargetMethodOffset()
1987 size_t oat_index = writer_->image_writer_->GetOatIndexForDexFile(dex_file_); in GetTargetMethodOffset()
1988 uintptr_t oat_data_begin = writer_->image_writer_->GetOatDataBegin(oat_index); in GetTargetMethodOffset()
1995 DCHECK(writer_->GetCompilerOptions().IsBootImage() || in GetTargetObjectOffset()
1996 writer_->GetCompilerOptions().IsBootImageExtension()); in GetTargetObjectOffset()
1997 object = writer_->image_writer_->GetImageAddress(object.Ptr()); in GetTargetObjectOffset()
1998 size_t oat_index = writer_->image_writer_->GetOatIndexForDexFile(dex_file_); in GetTargetObjectOffset()
1999 uintptr_t oat_data_begin = writer_->image_writer_->GetOatDataBegin(oat_index); in GetTargetObjectOffset()
2435 : writer_(writer), in WriteQuickeningInfoMethodVisitor()
2448 CompiledMethod* compiled_method = writer_->compiler_driver_->GetCompiledMethod(method_ref); in VisitDexMethods()
2479 OatWriter* const writer_; member in art::linker::OatWriter::WriteQuickeningInfoMethodVisitor