diff options
author | Ian Rogers <irogers@google.com> | 2014-04-02 23:18:43 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-04-02 23:18:43 +0000 |
commit | a7a49dd64b2cce5cd3918a01c9cd372931f90dd8 (patch) | |
tree | 6a92d080b3870b1987bc851c726ba149785b05bb /runtime/gc | |
parent | 40462bcc8b8fbe8a4981a0fb209e10898a118e2c (diff) | |
parent | 8afeb85d3def12b559b7565fb6d3956f81b55132 (diff) | |
download | art-a7a49dd64b2cce5cd3918a01c9cd372931f90dd8.zip art-a7a49dd64b2cce5cd3918a01c9cd372931f90dd8.tar.gz art-a7a49dd64b2cce5cd3918a01c9cd372931f90dd8.tar.bz2 |
Merge "Pass instruction-set from runtime through to spawned dex2oat."
Diffstat (limited to 'runtime/gc')
-rw-r--r-- | runtime/gc/space/image_space.cc | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/runtime/gc/space/image_space.cc b/runtime/gc/space/image_space.cc index 9a2815a..faa539f 100644 --- a/runtime/gc/space/image_space.cc +++ b/runtime/gc/space/image_space.cc @@ -67,36 +67,6 @@ static bool GenerateImage(const std::string& image_file_name, std::string* error arg_vector.push_back("--runtime-arg"); arg_vector.push_back("-Xmx64m"); - arg_vector.push_back("--runtime-arg"); - std::string checkstr = "-implicit-checks"; - int nchecks = 0; - char checksep = ':'; - - if (!Runtime::Current()->ExplicitNullChecks()) { - checkstr += checksep; - checksep = ','; - checkstr += "null"; - ++nchecks; - } - if (!Runtime::Current()->ExplicitSuspendChecks()) { - checkstr += checksep; - checksep = ','; - checkstr += "suspend"; - ++nchecks; - } - - if (!Runtime::Current()->ExplicitStackOverflowChecks()) { - checkstr += checksep; - checksep = ','; - checkstr += "stack"; - ++nchecks; - } - - if (nchecks == 0) { - checkstr += ":none"; - } - - arg_vector.push_back(checkstr); for (size_t i = 0; i < boot_class_path.size(); i++) { arg_vector.push_back(std::string("--dex-file=") + boot_class_path[i]); @@ -108,6 +78,8 @@ static bool GenerateImage(const std::string& image_file_name, std::string* error oat_file_option_string += "oat"; arg_vector.push_back(oat_file_option_string); + Runtime::Current()->AddCurrentRuntimeFeaturesAsDex2OatArguments(&arg_vector); + arg_vector.push_back(StringPrintf("--base=0x%x", ART_BASE_ADDRESS)); if (kIsTargetBuild) { |