diff options
author | 2021-11-29 14:47:21 +0000 | |
---|---|---|
committer | 2021-11-29 16:50:35 +0000 | |
commit | 8a608fab3f7479db4b21e7ad13b8f69c21658d32 (patch) | |
tree | cb0d7c4217fc253b0b0ccca99397cefa011ca197 /compiler/optimizing/optimizing_compiler.cc | |
parent | c813dd285835a8edc7e71082f48ff76060804232 (diff) |
Handle baseline/optimized compilation kind in the runtime.
It used to be adjusted in the compiler, but that does not work anymore
as the compiler now always requests a baseline compilation to have a
profiling info.
Test: 457-regs
Bug: 146423102
Change-Id: I522bc515ef1c6f8737ada311265a6f8e0f4db3fd
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
-rw-r--r-- | compiler/optimizing/optimizing_compiler.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index 10b59d2277..18e0512c6e 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -1213,11 +1213,6 @@ bool OptimizingCompiler::JitCompile(Thread* self, CompilationKind compilation_kind, jit::JitLogger* jit_logger) { const CompilerOptions& compiler_options = GetCompilerOptions(); - // If the baseline flag was explicitly passed, change the compilation kind - // from optimized to baseline. - if (compiler_options.IsBaseline() && compilation_kind == CompilationKind::kOptimized) { - compilation_kind = CompilationKind::kBaseline; - } DCHECK(compiler_options.IsJitCompiler()); DCHECK_EQ(compiler_options.IsJitCompilerForSharedCode(), code_cache->IsSharedRegion(*region)); StackHandleScope<3> hs(self); |