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
diff --git a/runtime/jit/jit_code_cache.cc b/runtime/jit/jit_code_cache.cc
index 047f7a4..8b91f9e 100644
--- a/runtime/jit/jit_code_cache.cc
+++ b/runtime/jit/jit_code_cache.cc
@@ -1670,7 +1670,8 @@
}
return new_compilation;
} else {
- if (CanAllocateProfilingInfo() && (compilation_kind == CompilationKind::kBaseline)) {
+ if (compilation_kind == CompilationKind::kBaseline) {
+ DCHECK(CanAllocateProfilingInfo());
bool has_profiling_info = false;
{
MutexLock mu(self, *Locks::jit_lock_);