diff options
author | Narayan Kamath <narayan@google.com> | 2014-04-23 20:24:57 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2014-05-01 11:25:07 +0100 |
commit | 11d9f06a96a6909905c248ed684366190140095c (patch) | |
tree | 27b02ab216b98ba1656d66072fd46c5adec61242 /dex2oat | |
parent | b3016551e5f264264dbb633a1ddf03ac97f9c66c (diff) | |
download | art-11d9f06a96a6909905c248ed684366190140095c.zip art-11d9f06a96a6909905c248ed684366190140095c.tar.gz art-11d9f06a96a6909905c248ed684366190140095c.tar.bz2 |
Use instruction specific dalvik cache dirs.
- All oat & art files are now placed under /data/dalvik-cache/<isa>/.
- GetDalvikCacheOrDie now requires a mandatory subdirectory argument,
and is implicitly rooted under /data/.
- Added helper methods to convert InstructionSet enums into strings
and vice versa.
(cherry picked from commit 2974bc3d8a5d161d449dd66826d668d87bdc3cbe)
Change-Id: Ic7986938e6a7091a2af675ebafec768f7b5fb8cd
Diffstat (limited to 'dex2oat')
-rw-r--r-- | dex2oat/dex2oat.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc index d3e56da..823b818 100644 --- a/dex2oat/dex2oat.cc +++ b/dex2oat/dex2oat.cc @@ -1101,6 +1101,9 @@ static int dex2oat(int argc, char** argv) { DexFileToMethodInlinerMap method_inliner_map; CompilerCallbacksImpl callbacks(&verification_results, &method_inliner_map); runtime_options.push_back(std::make_pair("compilercallbacks", &callbacks)); + runtime_options.push_back( + std::make_pair("imageinstructionset", + reinterpret_cast<const void*>(GetInstructionSetString(instruction_set)))); Dex2Oat* p_dex2oat; if (!Dex2Oat::Create(&p_dex2oat, |