summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.cc
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-04-17 16:40:01 -0700
committerIan Rogers <irogers@google.com>2014-04-17 16:45:06 -0700
commit9bc54406ba3377980cfce44901dc2be246178ba9 (patch)
tree12b9a514ef37c5cd01a99f3c6ffa83e3b03be7c0 /runtime/runtime.cc
parent94e8a97310af35cb0bae309e796b554cdb586ca5 (diff)
downloadart-9bc54406ba3377980cfce44901dc2be246178ba9.zip
art-9bc54406ba3377980cfce44901dc2be246178ba9.tar.gz
art-9bc54406ba3377980cfce44901dc2be246178ba9.tar.bz2
Interpreter-only mode should cause dex-to-dex compilation.
Also, fix quick iget/iput that had similar issues to: https://android-review.googlesource.com/91423 Also, remove fall-back resolution code from quick invokes/igets/iputs as we allow class loading for the exception throw and regular verification already allows class loading. Bug: 14133618 Change-Id: I51199e6e2392da0354f64b157e79af494c183778
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r--runtime/runtime.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index eb0522a..611ce0b 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -1230,6 +1230,10 @@ void Runtime::SetFaultMessage(const std::string& message) {
void Runtime::AddCurrentRuntimeFeaturesAsDex2OatArguments(std::vector<std::string>* argv)
const {
+ if (GetInstrumentation()->InterpretOnly()) {
+ argv->push_back("--compiler-filter=interpret-only");
+ }
+
argv->push_back("--runtime-arg");
std::string checkstr = "-implicit-checks";