summaryrefslogtreecommitdiffstats
path: root/dex2oat
diff options
context:
space:
mode:
authorDave Allison <dallison@google.com>2014-04-09 23:36:15 +0000
committerDave Allison <dallison@google.com>2014-04-09 23:36:15 +0000
commitd6ed642458c8820e1beca72f3d7b5f0be4a4b64b (patch)
tree1b6e0438f786d6eeb5566e176d71d454a6cdb9e5 /dex2oat
parentf9487c039efb4112616d438593a2ab02792e0304 (diff)
downloadart-d6ed642458c8820e1beca72f3d7b5f0be4a4b64b.zip
art-d6ed642458c8820e1beca72f3d7b5f0be4a4b64b.tar.gz
art-d6ed642458c8820e1beca72f3d7b5f0be4a4b64b.tar.bz2
Revert "Revert "Revert "Use trampolines for calls to helpers"""
This reverts commit f9487c039efb4112616d438593a2ab02792e0304. Change-Id: Id48a4aae4ecce73db468587967968a3f7618b700
Diffstat (limited to 'dex2oat')
-rw-r--r--dex2oat/dex2oat.cc28
1 files changed, 3 insertions, 25 deletions
diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc
index ab60817..c6e448e 100644
--- a/dex2oat/dex2oat.cc
+++ b/dex2oat/dex2oat.cc
@@ -203,12 +203,7 @@ static void Usage(const char* fmt, ...) {
UsageError(" Use a separate --runtime-arg switch for each argument.");
UsageError(" Example: --runtime-arg -Xms256m");
UsageError("");
- UsageError(" --profile-file=<filename>: profile file from a previous run used to determine");
- UsageError(" whether to compile methods or not.");
- UsageError("");
- UsageError(" --no-profile-file: don't use a profile file for compilation.");
- UsageError("");
- UsageError(" --no-helper-trampolines: don't use trampolines for calls to ARM helper functions.");
+ UsageError(" --profile-file=<filename>: specify profiler output file to use for compilation.");
UsageError("");
UsageError(" --print-pass-names: print a list of pass names");
UsageError("");
@@ -760,7 +755,6 @@ static int dex2oat(int argc, char** argv) {
bool dump_slow_timing = kIsDebugBuild;
bool watch_dog_enabled = !kIsTargetBuild;
bool generate_gdb_information = kIsDebugBuild;
- bool generate_helper_trampolines = true;
for (int i = 0; i < argc; i++) {
const StringPiece option(argv[i]);
@@ -800,8 +794,6 @@ static int dex2oat(int argc, char** argv) {
watch_dog_enabled = false;
} else if (option == "--gen-gdb-info") {
generate_gdb_information = true;
- } else if (option == "--no-helper-trampolines") {
- generate_helper_trampolines = false;
} else if (option == "--no-gen-gdb-info") {
generate_gdb_information = false;
} else if (option.starts_with("-j")) {
@@ -917,7 +909,7 @@ static int dex2oat(int argc, char** argv) {
profile_file = option.substr(strlen("--profile-file=")).data();
VLOG(compiler) << "dex2oat: profile file is " << profile_file;
} else if (option == "--no-profile-file") {
- LOG(INFO) << "dex2oat: no profile file supplied (explicitly)";
+ LOG(INFO) << "dex2oat: no profile file supplied (explictly)";
// No profile
} else if (option == "--print-pass-names") {
PassDriver::PrintPassNames();
@@ -1050,27 +1042,13 @@ static int dex2oat(int argc, char** argv) {
Usage("Unknown --compiler-filter value %s", compiler_filter_string);
}
- // TODO: update this code sequence when other platforms support
- // helper trampoline calls.
- bool helper_trampolines_available;
- switch (instruction_set) {
- case kArm:
- case kThumb2:
- helper_trampolines_available = true;
- break;
- default:
- helper_trampolines_available = false;
- break;
- }
-
CompilerOptions compiler_options(compiler_filter,
huge_method_threshold,
large_method_threshold,
small_method_threshold,
tiny_method_threshold,
num_dex_methods_threshold,
- generate_gdb_information,
- generate_helper_trampolines && helper_trampolines_available
+ generate_gdb_information
#ifdef ART_SEA_IR_MODE
, compiler_options.sea_ir_ = true;
#endif