@@ -2586,8 +2586,7 @@ void Compiler::compInitOptions(JitFlags* jitFlags)
25862586 // We have an exclusion list. See if this method is in an assembly that is on the list.
25872587 // Note that we check this for every method, since we might inline across modules, and
25882588 // if the inlinee module is on the list, we don't want to use the altjit for it.
2589- const char * methodAssemblyName = info.compCompHnd ->getAssemblyName (
2590- info.compCompHnd ->getModuleAssembly (info.compCompHnd ->getClassModule (info.compClassHnd )));
2589+ const char * methodAssemblyName = eeGetClassAssemblyName (info.compClassHnd );
25912590 if (s_pAltJitExcludeAssembliesList->IsInList (methodAssemblyName))
25922591 {
25932592 opts.altJit = false ;
@@ -2614,8 +2613,7 @@ void Compiler::compInitOptions(JitFlags* jitFlags)
26142613 bool assemblyInIncludeList = true ; // assume we'll dump, if there's not an include list (or it's empty).
26152614 if (s_pJitDisasmIncludeAssembliesList != nullptr && !s_pJitDisasmIncludeAssembliesList->IsEmpty ())
26162615 {
2617- const char * assemblyName = info.compCompHnd ->getAssemblyName (
2618- info.compCompHnd ->getModuleAssembly (info.compCompHnd ->getClassModule (info.compClassHnd )));
2616+ const char * assemblyName = eeGetClassAssemblyName (info.compClassHnd );
26192617 if (!s_pJitDisasmIncludeAssembliesList->IsInList (assemblyName))
26202618 {
26212619 // We have a list, and the current assembly is not in it, so we won't dump.
@@ -6335,39 +6333,29 @@ int Compiler::compCompile(CORINFO_MODULE_HANDLE classPtr,
63356333#ifdef DEBUG
63366334 if (JitConfig.EnableExtraSuperPmiQueries ())
63376335 {
6338- // This call to getClassModule/getModuleAssembly/getAssemblyName fails in crossgen2 due to these
6339- // APIs being unimplemented. So disable this extra info for pre-jit mode. See
6340- // https://github.com/dotnet/runtime/issues/48888.
6341- //
6342- // Ditto for some of the class name queries for generic params.
6343- //
6344- if (!compileFlags->IsSet (JitFlags::JIT_FLAG_PREJIT))
6345- {
6346- // Get the assembly name, to aid finding any particular SuperPMI method context function
6347- (void )info.compCompHnd ->getAssemblyName (
6348- info.compCompHnd ->getModuleAssembly (info.compCompHnd ->getClassModule (info.compClassHnd )));
6336+ // Get the assembly name, to aid finding any particular SuperPMI method context function
6337+ (void )eeGetClassAssemblyName (info.compClassHnd );
63496338
6350- // Fetch class names for the method's generic parameters.
6351- //
6352- CORINFO_SIG_INFO sig;
6353- info.compCompHnd ->getMethodSig (info.compMethodHnd , &sig, nullptr );
6339+ // Fetch class names for the method's generic parameters.
6340+ //
6341+ CORINFO_SIG_INFO sig;
6342+ info.compCompHnd ->getMethodSig (info.compMethodHnd , &sig, nullptr );
63546343
6355- const unsigned classInst = sig.sigInst .classInstCount ;
6356- if (classInst > 0 )
6344+ const unsigned classInst = sig.sigInst .classInstCount ;
6345+ if (classInst > 0 )
6346+ {
6347+ for (unsigned i = 0 ; i < classInst; i++)
63576348 {
6358- for (unsigned i = 0 ; i < classInst; i++)
6359- {
6360- eeGetClassName (sig.sigInst .classInst [i]);
6361- }
6349+ eeGetClassName (sig.sigInst .classInst [i]);
63626350 }
6351+ }
63636352
6364- const unsigned methodInst = sig.sigInst .methInstCount ;
6365- if (methodInst > 0 )
6353+ const unsigned methodInst = sig.sigInst .methInstCount ;
6354+ if (methodInst > 0 )
6355+ {
6356+ for (unsigned i = 0 ; i < methodInst; i++)
63666357 {
6367- for (unsigned i = 0 ; i < methodInst; i++)
6368- {
6369- eeGetClassName (sig.sigInst .methInst [i]);
6370- }
6358+ eeGetClassName (sig.sigInst .methInst [i]);
63716359 }
63726360 }
63736361 }
@@ -9221,8 +9209,7 @@ void JitTimer::PrintCsvMethodStats(Compiler* comp)
92219209 }
92229210 else
92239211 {
9224- const char * methodAssemblyName = comp->info .compCompHnd ->getAssemblyName (
9225- comp->info .compCompHnd ->getModuleAssembly (comp->info .compCompHnd ->getClassModule (comp->info .compClassHnd )));
9212+ const char * methodAssemblyName = comp->eeGetClassAssemblyName (comp->info .compClassHnd );
92269213 fprintf (s_csvFile, " \" %s\" ," , methodAssemblyName);
92279214 }
92289215 fprintf (s_csvFile, " %u," , comp->info .compILCodeSize );
0 commit comments