summaryrefslogtreecommitdiffstats
path: root/dex2oat/dex2oat.cc
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2013-08-19 21:51:45 -0700
committerIan Rogers <irogers@google.com>2013-08-19 22:52:23 -0700
commite6bb3b2ce5a69c31c2adfc7eb2705633b7f966eb (patch)
tree2c562e3de0fcd0cdd4528c4d2f40aa7fc75eea2e /dex2oat/dex2oat.cc
parentcf3de6209f056aa8d6005e4610d49855da581eb4 (diff)
downloadart-e6bb3b2ce5a69c31c2adfc7eb2705633b7f966eb.zip
art-e6bb3b2ce5a69c31c2adfc7eb2705633b7f966eb.tar.gz
art-e6bb3b2ce5a69c31c2adfc7eb2705633b7f966eb.tar.bz2
Reduce AOT initialization.
When compiling apps there is no need to resolve all types in the dex file, just those declared in the dex file. There's also no need to initialize static fields if we can only leave the class in a verified state. Increase use of CompilerDriver::IsImage. Move timing of dex2oat setup to before Runtime::Create. On run-test 056 the performance improvement is an order of magnitude, for ThinkFree dex2oat time is dominated by compilation and this change has no effect. Bug 10316099. Change-Id: Ibdd7caa43284e7448e6a56d810967100ae4a7898
Diffstat (limited to 'dex2oat/dex2oat.cc')
-rw-r--r--dex2oat/dex2oat.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc
index ceb6bf6..89552a3 100644
--- a/dex2oat/dex2oat.cc
+++ b/dex2oat/dex2oat.cc
@@ -825,6 +825,7 @@ static int dex2oat(int argc, char** argv) {
return EXIT_FAILURE;
}
+ timings.StartSplit("dex2oat Setup");
LOG(INFO) << "dex2oat: " << oat_location;
Runtime::Options options;
@@ -926,7 +927,6 @@ static int dex2oat(int argc, char** argv) {
}
}
- timings.StartSplit("dex2oat Setup");
UniquePtr<const CompilerDriver> compiler(dex2oat->CreateOatFile(boot_image_option,
host_prefix.get(),
android_root,