OSDN Git Service

Make OpenImageSpace static and ArtFileName internal.
authorRichard Uhler <ruhler@google.com>
Fri, 15 Apr 2016 22:51:21 +0000 (15:51 -0700)
committerRichard Uhler <ruhler@google.com>
Thu, 7 Jul 2016 22:44:48 +0000 (15:44 -0700)
Test: m build-art-host
Test: m build-art-host-tests
Change-Id: I40595d158e63cc547eba988b6c19df00ff589b05

runtime/oat_file_assistant.cc
runtime/oat_file_assistant.h

index 218c490..57c7d4c 100644 (file)
@@ -406,7 +406,8 @@ CompilerFilter::Filter OatFileAssistant::OdexFileCompilerFilter() {
 
   return odex_file->GetCompilerFilter();
 }
-std::string OatFileAssistant::ArtFileName(const OatFile* oat_file) const {
+
+static std::string ArtFileName(const OatFile* oat_file) {
   const std::string oat_file_location = oat_file->GetLocation();
   // Replace extension with .art
   const size_t last_ext = oat_file_location.find_last_of('.');
index d55e373..88bbaba 100644 (file)
@@ -179,7 +179,7 @@ class OatFileAssistant {
   std::unique_ptr<OatFile> GetBestOatFile();
 
   // Open and returns an image space associated with the oat file.
-  gc::space::ImageSpace* OpenImageSpace(const OatFile* oat_file);
+  static gc::space::ImageSpace* OpenImageSpace(const OatFile* oat_file);
 
   // Loads the dex files in the given oat file for the given dex location.
   // The oat file should be up to date for the given dex location.
@@ -238,9 +238,6 @@ class OatFileAssistant {
   // |OatFileExists() == true|.
   CompilerFilter::Filter OatFileCompilerFilter();
 
-  // Return image file name. Does not cache since it relies on the oat file.
-  std::string ArtFileName(const OatFile* oat_file) const;
-
   // These methods return the status for a given opened oat file with respect
   // to the dex location.
   OatStatus GivenOatFileStatus(const OatFile& file);