@@ -2656,8 +2656,7 @@ void Compiler::compInitOptions(JitFlags* jitFlags)
26562656 // We have an exclusion list. See if this method is in an assembly that is on the list.
26572657 // Note that we check this for every method, since we might inline across modules, and
26582658 // if the inlinee module is on the list, we don't want to use the altjit for it.
2659- const char * methodAssemblyName = info.compCompHnd ->getAssemblyName (
2660- info.compCompHnd ->getModuleAssembly (info.compCompHnd ->getClassModule (info.compClassHnd )));
2659+ const char * methodAssemblyName = eeGetClassAssemblyName (info.compClassHnd );
26612660 if (s_pAltJitExcludeAssembliesList->IsInList (methodAssemblyName))
26622661 {
26632662 opts.altJit = false ;
@@ -2684,8 +2683,7 @@ void Compiler::compInitOptions(JitFlags* jitFlags)
26842683 bool assemblyInIncludeList = true ; // assume we'll dump, if there's not an include list (or it's empty).
26852684 if (s_pJitDisasmIncludeAssembliesList != nullptr && !s_pJitDisasmIncludeAssembliesList->IsEmpty ())
26862685 {
2687- const char * assemblyName = info.compCompHnd ->getAssemblyName (
2688- info.compCompHnd ->getModuleAssembly (info.compCompHnd ->getClassModule (info.compClassHnd )));
2686+ const char * assemblyName = eeGetClassAssemblyName (info.compClassHnd );
26892687 if (!s_pJitDisasmIncludeAssembliesList->IsInList (assemblyName))
26902688 {
26912689 // We have a list, and the current assembly is not in it, so we won't dump.
@@ -6457,39 +6455,29 @@ int Compiler::compCompile(CORINFO_MODULE_HANDLE classPtr,
64576455#ifdef DEBUG
64586456 if (JitConfig.EnableExtraSuperPmiQueries ())
64596457 {
6460- // This call to getClassModule/getModuleAssembly/getAssemblyName fails in crossgen2 due to these
6461- // APIs being unimplemented. So disable this extra info for pre-jit mode. See
6462- // https://github.com/dotnet/runtime/issues/48888.
6463- //
6464- // Ditto for some of the class name queries for generic params.
6465- //
6466- if (!compileFlags->IsSet (JitFlags::JIT_FLAG_PREJIT))
6467- {
6468- // Get the assembly name, to aid finding any particular SuperPMI method context function
6469- (void )info.compCompHnd ->getAssemblyName (
6470- info.compCompHnd ->getModuleAssembly (info.compCompHnd ->getClassModule (info.compClassHnd )));
6458+ // Get the assembly name, to aid finding any particular SuperPMI method context function
6459+ (void )eeGetClassAssemblyName (info.compClassHnd );
64716460
6472- // Fetch class names for the method's generic parameters.
6473- //
6474- CORINFO_SIG_INFO sig;
6475- info.compCompHnd ->getMethodSig (info.compMethodHnd , &sig, nullptr );
6461+ // Fetch class names for the method's generic parameters.
6462+ //
6463+ CORINFO_SIG_INFO sig;
6464+ info.compCompHnd ->getMethodSig (info.compMethodHnd , &sig, nullptr );
64766465
6477- const unsigned classInst = sig.sigInst .classInstCount ;
6478- if (classInst > 0 )
6466+ const unsigned classInst = sig.sigInst .classInstCount ;
6467+ if (classInst > 0 )
6468+ {
6469+ for (unsigned i = 0 ; i < classInst; i++)
64796470 {
6480- for (unsigned i = 0 ; i < classInst; i++)
6481- {
6482- eeGetClassName (sig.sigInst .classInst [i]);
6483- }
6471+ eeGetClassName (sig.sigInst .classInst [i]);
64846472 }
6473+ }
64856474
6486- const unsigned methodInst = sig.sigInst .methInstCount ;
6487- if (methodInst > 0 )
6475+ const unsigned methodInst = sig.sigInst .methInstCount ;
6476+ if (methodInst > 0 )
6477+ {
6478+ for (unsigned i = 0 ; i < methodInst; i++)
64886479 {
6489- for (unsigned i = 0 ; i < methodInst; i++)
6490- {
6491- eeGetClassName (sig.sigInst .methInst [i]);
6492- }
6480+ eeGetClassName (sig.sigInst .methInst [i]);
64936481 }
64946482 }
64956483 }
@@ -9379,8 +9367,7 @@ void JitTimer::PrintCsvMethodStats(Compiler* comp)
93799367 }
93809368 else
93819369 {
9382- const char * methodAssemblyName = comp->info .compCompHnd ->getAssemblyName (
9383- comp->info .compCompHnd ->getModuleAssembly (comp->info .compCompHnd ->getClassModule (comp->info .compClassHnd )));
9370+ const char * methodAssemblyName = comp->eeGetClassAssemblyName (comp->info .compClassHnd );
93849371 fprintf (s_csvFile, " \" %s\" ," , methodAssemblyName);
93859372 }
93869373 fprintf (s_csvFile, " %u," , comp->info .compILCodeSize );
0 commit comments