From 9bc54406ba3377980cfce44901dc2be246178ba9 Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Thu, 17 Apr 2014 16:40:01 -0700 Subject: 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 --- runtime/runtime.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/runtime.cc') 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* argv) const { + if (GetInstrumentation()->InterpretOnly()) { + argv->push_back("--compiler-filter=interpret-only"); + } + argv->push_back("--runtime-arg"); std::string checkstr = "-implicit-checks"; -- cgit v1.1