Get the baseline information from the graph.

Baseline could be set by the compiler options or the JIT.

Test: test.py
Bug: 119800099
Change-Id: I702bd7642dfd3353c9ad99cb6ac425c090e16101
diff --git a/compiler/optimizing/code_generator_arm64.cc b/compiler/optimizing/code_generator_arm64.cc
index 894c7a4..d3ce2db 100644
--- a/compiler/optimizing/code_generator_arm64.cc
+++ b/compiler/optimizing/code_generator_arm64.cc
@@ -4084,7 +4084,7 @@
   // We know the destination of an intrinsic, so no need to record inline
   // caches.
   if (!instruction->GetLocations()->Intrinsified() &&
-      GetCompilerOptions().IsBaseline() &&
+      GetGraph()->IsCompilingBaseline() &&
       !Runtime::Current()->IsAotCompiler()) {
     DCHECK(!instruction->GetEnvironment()->IsFromInlinedInvoke());
     ScopedObjectAccess soa(Thread::Current());