summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2016-02-25 15:26:20 +0000
committerCalin Juravle <calin@google.com>2016-03-02 18:27:10 +0000
commit693f997cc8b8c2ba8d3ed29627b2641dd86392a5 (patch)
tree4e9273067b25617bc6fb74bba3bbef21ca63d0d2 /tools/aapt2/java/JavaClassGenerator.cpp
parent78f335e7537184093bd78fc22a1ce64c34bd01a5 (diff)
Better handling of various types of compilation in DexOptimizer
From the runtime perspective extract-only/profile-guide-compiled/fully- compiled oat files are up-to-date and don't need dex2oat. However, wihout knowing the exact "class" of the aot file we are not able to do a full compilation of something previously only-extracted, or limit profile-guide compilation to only previously profile-guide or extract- only oat files. GetDexOptNeeded now accepts a mask of desired types of compilation that the runtime takes into account when advising what's needed. This CL adds the necessary handling in DexOptimizer. Also: - removes the contraint to use extract-only oat files only when profiles are enabled. - removes mDexOptPerformed which interfere with the different types of compilation and only saved a call to GetDexOptNeeded. Bug: 27189430 Change-Id: Iced2bdcc3aa7866ff888a3bace43f4b71fffb353
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions