diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2015-07-10 11:38:52 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2015-07-10 18:21:13 +0100 |
commit | 2e7cd752452d02499a2f5fbd604c5427aa372f00 (patch) | |
tree | 505527250317827f56378f4b786534793ccfbb61 /compiler/optimizing/optimizing_compiler.cc | |
parent | f16b820fc18ff86e765a14176f05417305d689a0 (diff) |
[optimizing] Don't rely on the verifier for String.<init>.
Continue work on cutting the dependency on the verifier.
Change-Id: I0f95b1eb2e10fd8f6bf54817f1202bdf6dfdb0fe
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
-rw-r--r-- | compiler/optimizing/optimizing_compiler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index 1e515307b4..4568a463db 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -627,7 +627,7 @@ CompiledMethod* OptimizingCompiler::TryCompile(const DexFile::CodeItem* code_ite // `run_optimizations_` is set explicitly (either through a compiler filter // or the debuggable flag). If it is set, we can run baseline. Otherwise, we fall back // to Quick. - bool can_use_baseline = !run_optimizations_; + bool can_use_baseline = !run_optimizations_ && builder.CanUseBaselineForStringInit(); if (run_optimizations_ && can_optimize && can_allocate_registers) { VLOG(compiler) << "Optimizing " << method_name; |