Lines Matching refs:dex2oat

1460   dex2oat::ReturnCode Setup() {  in Setup()
1464 return dex2oat::ReturnCode::kOther; in Setup()
1476 return dex2oat::ReturnCode::kOther; in Setup()
1481 return dex2oat::ReturnCode::kOther; in Setup()
1497 return dex2oat::ReturnCode::kCreateRuntime; in Setup()
1569 return dex2oat::ReturnCode::kOther; in Setup()
1621 return dex2oat::ReturnCode::kOther; in Setup()
1655 return dex2oat::ReturnCode::kOther; in Setup()
1670 return dex2oat::ReturnCode::kOther; in Setup()
1677 return dex2oat::ReturnCode::kNoFailure; in Setup()
2816 static dex2oat::ReturnCode CompileImage(Dex2Oat& dex2oat) { in CompileImage() argument
2817 dex2oat.LoadClassProfileDescriptors(); in CompileImage()
2818 dex2oat.Compile(); in CompileImage()
2820 if (!dex2oat.WriteOutputFiles()) { in CompileImage()
2821 dex2oat.EraseOutputFiles(); in CompileImage()
2822 return dex2oat::ReturnCode::kOther; in CompileImage()
2828 if (dex2oat.ShouldKeepOatFileOpen()) { in CompileImage()
2829 if (!dex2oat.FlushOutputFiles()) { in CompileImage()
2830 dex2oat.EraseOutputFiles(); in CompileImage()
2831 return dex2oat::ReturnCode::kOther; in CompileImage()
2833 } else if (!dex2oat.FlushCloseOutputFiles()) { in CompileImage()
2834 return dex2oat::ReturnCode::kOther; in CompileImage()
2838 if (!dex2oat.HandleImage()) { in CompileImage()
2839 return dex2oat::ReturnCode::kOther; in CompileImage()
2843 if (dex2oat.IsHost()) { in CompileImage()
2844 if (!dex2oat.FlushCloseOutputFiles()) { in CompileImage()
2845 return dex2oat::ReturnCode::kOther; in CompileImage()
2847 dex2oat.DumpTiming(); in CompileImage()
2848 return dex2oat::ReturnCode::kNoFailure; in CompileImage()
2852 if (!dex2oat.CopyStrippedToUnstripped()) { in CompileImage()
2853 return dex2oat::ReturnCode::kOther; in CompileImage()
2857 if (!dex2oat.FlushCloseOutputFiles()) { in CompileImage()
2858 return dex2oat::ReturnCode::kOther; in CompileImage()
2861 dex2oat.DumpTiming(); in CompileImage()
2862 return dex2oat::ReturnCode::kNoFailure; in CompileImage()
2865 static dex2oat::ReturnCode CompileApp(Dex2Oat& dex2oat) { in CompileApp() argument
2866 dex2oat.Compile(); in CompileApp()
2868 if (!dex2oat.WriteOutputFiles()) { in CompileApp()
2869 dex2oat.EraseOutputFiles(); in CompileApp()
2870 return dex2oat::ReturnCode::kOther; in CompileApp()
2877 if (dex2oat.IsHost()) { in CompileApp()
2878 if (!dex2oat.FlushCloseOutputFiles()) { in CompileApp()
2879 return dex2oat::ReturnCode::kOther; in CompileApp()
2882 dex2oat.DumpTiming(); in CompileApp()
2883 return dex2oat::ReturnCode::kNoFailure; in CompileApp()
2888 if (!dex2oat.CopyStrippedToUnstripped()) { in CompileApp()
2889 return dex2oat::ReturnCode::kOther; in CompileApp()
2893 if (!dex2oat.FlushCloseOutputFiles()) { in CompileApp()
2894 return dex2oat::ReturnCode::kOther; in CompileApp()
2897 dex2oat.DumpTiming(); in CompileApp()
2898 return dex2oat::ReturnCode::kNoFailure; in CompileApp()
2901 static dex2oat::ReturnCode Dex2oat(int argc, char** argv) { in Dex2oat()
2910 std::unique_ptr<Dex2Oat> dex2oat = MakeUnique<Dex2Oat>(&timings); in Dex2oat() local
2913 dex2oat->ParseArgs(argc, argv); in Dex2oat()
2917 if (dex2oat->UseProfile()) { in Dex2oat()
2918 if (!dex2oat->LoadProfile()) { in Dex2oat()
2920 return dex2oat::ReturnCode::kOther; in Dex2oat()
2927 if (!dex2oat->OpenFile()) { in Dex2oat()
2928 return dex2oat::ReturnCode::kOther; in Dex2oat()
2937 if (kIsDebugBuild || dex2oat->IsBootImage() || dex2oat->IsHost() || !kIsTargetBuild) { in Dex2oat()
2943 dex2oat::ReturnCode setup_code = dex2oat->Setup(); in Dex2oat()
2944 if (setup_code != dex2oat::ReturnCode::kNoFailure) { in Dex2oat()
2945 dex2oat->EraseOutputFiles(); in Dex2oat()
2953 dex2oat::ReturnCode result; in Dex2oat()
2954 if (dex2oat->IsImage()) { in Dex2oat()
2955 result = CompileImage(*dex2oat); in Dex2oat()
2957 result = CompileApp(*dex2oat); in Dex2oat()
2960 dex2oat->Shutdown(); in Dex2oat()