Pass which profile the method expects.

With the CL:
https://android-review.googlesource.com/c/platform/art/+/1671710

We made the requirement that callers need to be explicit on whether
they're reading a boot image profile or not.

Update CompileMethodsFromProfile to pass that information.

Test: manually checking JIT zygote works as intended, will follow-up
      on having continuous tests.
Change-Id: I3c9d367e8ce69b7c0e3205be4c379208f88d3b3e
diff --git a/runtime/jit/jit.cc b/runtime/jit/jit.cc
index 876e120..76cfb5e 100644
--- a/runtime/jit/jit.cc
+++ b/runtime/jit/jit.cc
@@ -1414,7 +1414,7 @@
     return 0u;
   }
 
-  ProfileCompilationInfo profile_info;
+  ProfileCompilationInfo profile_info(/* for_boot_image= */ class_loader.IsNull());
   if (!profile_info.Load(profile.Fd())) {
     LOG(ERROR) << "Could not load profile file";
     return 0u;