Home | History | Annotate | Download | only in oatdump

Lines Matching refs:runtime

1157     if (Runtime::Current() != nullptr) {
1394 auto* runtime = Runtime::Current();
1395 if (runtime != nullptr) {
1396 CHECK_EQ(runtime->GetClassLinker()->GetImagePointerSize(), pointer_size);
1505 Runtime* const runtime = Runtime::Current();
1508 runtime->GetClassLinker()->RegisterDexFile(*dex_file, options_.class_loader_->Get()));
1510 ArtMethod* method = runtime->GetClassLinker()->ResolveMethodWithoutInvokeType(
1678 Runtime* runtime = Runtime::Current();
1679 if (runtime != nullptr && !runtime->GetHeap()->GetBootImageSpaces().empty()) {
1681 runtime->GetHeap()->GetBootImageSpaces();
1683 auto live_objects = GetBootImageLiveObjectsDataRange(runtime->GetHeap());
1879 Runtime* const runtime = Runtime::Current();
1880 ClassLinker* class_linker = runtime->GetClassLinker();
1888 oat_file = runtime->GetOatFileManager().FindOpenedOatFileFromOatLocation(oat_location);
1919 gc::Heap* heap = runtime->GetHeap();
2141 if (Runtime::Current()->GetClassLinker()->IsQuickResolutionStub(quick_code)) {
2749 static int DumpImages(Runtime* runtime, OatDumperOptions* options, std::ostream* os) {
2784 if (!runtime->GetClassLinker()->OpenImageDexFiles(space.get(), &dex_files, &error_msg)) {
2796 gc::Heap* heap = runtime->GetHeap();
2807 static jobject InstallOatFile(Runtime* runtime,
2818 ClassLinker* class_linker = runtime->GetClassLinker();
2819 runtime->GetOatFileManager().RegisterOatFile(std::move(oat_file));
2828 // Note: this will run initializers through the unstarted runtime, so make sure it's
2844 static int DumpOatWithRuntime(Runtime* runtime,
2848 CHECK(runtime != nullptr && oat_file != nullptr && options != nullptr);
2853 jobject class_loader = InstallOatFile(runtime, std::move(oat_file), &class_path);
2877 static int DumpOat(Runtime* runtime,
2900 if (runtime != nullptr) {
2901 return DumpOatWithRuntime(runtime, std::move(oat_file), options, os);
2945 static bool Dump(Runtime* runtime,
2973 InstallOatFile(runtime, std::move(oat_file), &class_path)));
2976 class_path = runtime->GetClassLinker()->GetBootClassPath();
2980 return DumpImt(runtime, imt_file, class_loader);
2984 return DumpImtStats(runtime, class_path, class_loader);
2992 static bool DumpImt(Runtime* runtime,
3005 DumpIMTForClass(runtime, line, h_class_loader, &prepared);
3007 DumpIMTForMethod(runtime,
3019 static bool DumpImtStats(Runtime* runtime,
3027 ClassLinker* class_linker = runtime->GetClassLinker();
3047 if (HasNoIMT(runtime, h_klass, pointer_size, &prepared)) {
3052 ImTable* im_table = PrepareAndGetImTable(runtime, h_klass, pointer_size, &prepared);
3105 static bool HasNoIMT(Runtime* runtime,
3115 PrepareClass(runtime, klass, prepared);
3147 static ImTable* PrepareAndGetImTable(Runtime* runtime,
3167 runtime->GetClassLinker()->FindClass(self, descriptor.c_str(), h_loader);
3179 ImTable* ret = PrepareAndGetImTable(runtime, h_klass, pointer_size, prepared);
3184 static ImTable* PrepareAndGetImTable(Runtime* runtime,
3189 runtime, h_klass, prepared);
3193 static void DumpIMTForClass(Runtime* runtime,
3198 const PointerSize pointer_size = runtime->GetClassLinker()->GetImagePointerSize();
3200 ImTable* imt = PrepareAndGetImTable(runtime,
3251 static void DumpIMTForMethod(Runtime* runtime,
3257 const PointerSize pointer_size = runtime->GetClassLinker()->GetImagePointerSize();
3259 ImTable* imt = PrepareAndGetImTable(runtime,
3359 static void PrepareClass(Runtime* runtime,
3377 PrepareClass(runtime, h.NewHandle<mirror::Class>(h_klass->GetSuperClass()), done);
3381 runtime->GetClassLinker()->FillIMTAndConflictTables(h_klass.Get());
3629 bool ExecuteWithRuntime(Runtime* runtime) override {
3633 return IMTDumper::Dump(runtime,
3641 return DumpOat(runtime,
3648 return DumpImages(runtime, oat_dumper_options_.get(), args_->os_) == EXIT_SUCCESS;