Home | History | Annotate | Download | only in patchoat

Lines Matching defs:patchoat

16 #include "patchoat.h"
111 bool PatchOat::Patch(const std::string& image_location, off_t delta,
179 PatchOat p(isa, image.release(), ispc->GetLiveBitmap(), ispc->GetMemMap(),
194 bool PatchOat::Patch(File* input_oat, const std::string& image_location, off_t delta,
301 PatchOat p(isa, elf.release(), image.release(), ispc->GetLiveBitmap(), ispc->GetMemMap(),
325 bool PatchOat::WriteElf(File* out) {
340 bool PatchOat::WriteImage(File* out) {
359 bool PatchOat::IsImagePic(const ImageHeader& image_header, const std::string& image_path) {
374 PatchOat::MaybePic PatchOat::IsOatPic(const ElfFile* oat_in) {
401 bool PatchOat::ReplaceOatFileWithSymlink(const std::string& input_oat_filename,
436 bool PatchOat::PatchImage() {
453 bitmap_->Walk(PatchOat::BitmapCallback, this);
458 bool PatchOat::InHeap(mirror::Object* o) {
465 void PatchOat::PatchVisitor::operator() (mirror::Object* obj, MemberOffset off,
473 void PatchOat::PatchVisitor::operator() (mirror::Class* cls, mirror::Reference* ref) const {
481 mirror::Object* PatchOat::RelocatedCopyOf(mirror::Object* obj) {
493 mirror::Object* PatchOat::RelocatedAddressOf(mirror::Object* obj) {
501 const OatHeader* PatchOat::GetOatHeader(const ElfFile* elf_file) {
512 void PatchOat::VisitObject(mirror::Object* object) {
523 PatchOat::PatchVisitor visitor(this, copy);
530 void PatchOat::FixupMethod(mirror::ArtMethod* object, mirror::ArtMethod* copy) {
563 bool PatchOat::Patch(File* input_oat, off_t delta, File* output_oat, TimingLogger* timings,
594 PatchOat p(elf.release(), delta, timings);
607 bool PatchOat::CheckOatFile() {
638 bool PatchOat::PatchOatHeader() {
652 bool PatchOat::PatchElf() {
718 bool PatchOat::PatchSymbols(Elf32_Shdr* section) {
736 bool PatchOat::PatchTextSection() {
792 UsageError("Usage: patchoat [options]...");
911 static int patchoat(int argc, char **argv) {
929 timings.StartTiming("Patchoat");
960 LOG(INFO) << "patchoat: option[" << i << "]=" << argv[i];
1284 ret = PatchOat::Patch(input_oat.get(), input_image_location, base_delta,
1294 ret = PatchOat::Patch(input_oat.get(), base_delta, output_oat.get(), &timings,
1300 ret = PatchOat::Patch(input_image_location, base_delta, output_image.get(), isa, &timings);
1317 return art::patchoat(argc, argv);