summaryrefslogtreecommitdiff
path: root/src/compiler/driver/compiler_driver.cc
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2013-05-29 16:33:03 -0700
committer Ian Rogers <irogers@google.com> 2013-05-29 16:33:03 -0700
commitf8582c3b87efa0245d176f768fd373e5b4289da4 (patch)
treef4d22c4682c2df247dea7b6a9b43f8adbb1cc1e0 /src/compiler/driver/compiler_driver.cc
parente3cd2f0e3c3d976ae9c65c8a731003a5aaf71986 (diff)
Build fix.
MIPS build exposed a latest bug in DexFile's binary search code. Portable build always requires a dex cache when using verifier based sharpening. Change-Id: I235c033d7eba0272b264f5dbda209ff5cd7cce93
Diffstat (limited to 'src/compiler/driver/compiler_driver.cc')
-rw-r--r--src/compiler/driver/compiler_driver.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/driver/compiler_driver.cc b/src/compiler/driver/compiler_driver.cc
index bf8bb8acb2..85dcdf671b 100644
--- a/src/compiler/driver/compiler_driver.cc
+++ b/src/compiler/driver/compiler_driver.cc
@@ -910,6 +910,7 @@ bool CompilerDriver::ComputeInvokeInfo(const DexCompilationUnit* mUnit, const ui
GetCodeAndMethodForDirectCall(invoke_type, kDirect, referrer_class, called_method,
direct_code, direct_method, update_stats);
bool compiler_needs_dex_cache =
+ (GetCompilerBackend() == kPortable) ||
(GetCompilerBackend() == kQuick && instruction_set_ != kThumb2) ||
(direct_code == 0) || (direct_code == static_cast<unsigned int>(-1)) ||
(direct_method == 0) || (direct_method == static_cast<unsigned int>(-1));