dex2oat invoked by system if it can't find an oat file for a dex file.
This allows the old dalvik tests to be run without ever explicitly
running dex2oat on anything. Just upload the jar files and the system
will take care of generating the files it needs.
Change-Id: Iad553bf6f57e28da4edb8eb0df47e62e08a0be44
diff --git a/src/class_linker.h b/src/class_linker.h
index 12d7b37..dd78174 100644
--- a/src/class_linker.h
+++ b/src/class_linker.h
@@ -209,6 +209,9 @@
DexCache* FindDexCache(const DexFile& dex_file) const;
bool IsDexFileRegistered(const DexFile& dex_file) const;
+ // Generate an oat file from a dex file
+ const OatFile* GenerateOatFile(const std::string& filename);
+
// Find, possibily opening, an OatFile corresponding to a DexFile
const OatFile* FindOatFile(const DexFile& dex_file);
const OatFile* FindOatFile(const std::string& location);