summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2015-03-19 18:51:07 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-03-19 18:51:08 +0000
commitf5988cf0c47ff935bb19c89ed0398be5fbe44bb6 (patch)
tree06d0ca4fc196f3dda795b5dafa2211025e9bdf8a
parent00bb33c8151c05d7e1c89f6b999540c2036c5967 (diff)
parent706cae36209932f258b2fe2e396f31d2dd7d585e (diff)
downloadandroid_art-f5988cf0c47ff935bb19c89ed0398be5fbe44bb6.tar.gz
android_art-f5988cf0c47ff935bb19c89ed0398be5fbe44bb6.tar.bz2
android_art-f5988cf0c47ff935bb19c89ed0398be5fbe44bb6.zip
Merge "Revert "Use optimizing for apps.""
-rw-r--r--dex2oat/dex2oat.cc11
-rw-r--r--runtime/oat.h2
2 files changed, 2 insertions, 11 deletions
diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc
index a372179296..bb80a70e14 100644
--- a/dex2oat/dex2oat.cc
+++ b/dex2oat/dex2oat.cc
@@ -494,7 +494,6 @@ class Dex2Oat FINAL {
bool watch_dog_enabled = true;
bool generate_gdb_information = kIsDebugBuild;
bool abort_on_hard_verifier_error = false;
- bool requested_specific_compiler = false;
PassManagerOptions pass_manager_options;
@@ -604,7 +603,6 @@ class Dex2Oat FINAL {
Usage("Error parsing '%s': %s", option.data(), error_msg.c_str());
}
} else if (option.starts_with("--compiler-backend=")) {
- requested_specific_compiler = true;
StringPiece backend_str = option.substr(strlen("--compiler-backend=")).data();
if (backend_str == "Quick") {
compiler_kind_ = Compiler::kQuick;
@@ -614,7 +612,6 @@ class Dex2Oat FINAL {
Usage("Unknown compiler backend: %s", backend_str.data());
}
} else if (option.starts_with("--compiler-filter=")) {
- requested_specific_compiler = true;
compiler_filter_string = option.substr(strlen("--compiler-filter=")).data();
} else if (option == "--compile-pic") {
compile_pic = true;
@@ -744,13 +741,6 @@ class Dex2Oat FINAL {
}
}
- image_ = (!image_filename_.empty());
- if (!requested_specific_compiler && !kUseOptimizingCompiler) {
- // If no specific compiler is requested, the current behavior is
- // to compile the boot image with Quick, and the rest with Optimizing.
- compiler_kind_ = image_ ? Compiler::kQuick : Compiler::kOptimizing;
- }
-
if (compiler_kind_ == Compiler::kOptimizing) {
// Optimizing only supports PIC mode.
compile_pic = true;
@@ -784,6 +774,7 @@ class Dex2Oat FINAL {
android_root_ += android_root_env_var;
}
+ image_ = (!image_filename_.empty());
if (!image_ && boot_image_filename.empty()) {
boot_image_filename += android_root_;
boot_image_filename += "/framework/boot.art";
diff --git a/runtime/oat.h b/runtime/oat.h
index d420c3aa9e..79cb024674 100644
--- a/runtime/oat.h
+++ b/runtime/oat.h
@@ -32,7 +32,7 @@ class InstructionSetFeatures;
class PACKED(4) OatHeader {
public:
static constexpr uint8_t kOatMagic[] = { 'o', 'a', 't', '\n' };
- static constexpr uint8_t kOatVersion[] = { '0', '5', '9', '\0' };
+ static constexpr uint8_t kOatVersion[] = { '0', '5', '8', '\0' };
static constexpr const char* kImageLocationKey = "image-location";
static constexpr const char* kDex2OatCmdLineKey = "dex2oat-cmdline";