@@ -2586,8 +2586,7 @@ void Compiler::compInitOptions(JitFlags* jitFlags)
2586
2586
// We have an exclusion list. See if this method is in an assembly that is on the list.
2587
2587
// Note that we check this for every method, since we might inline across modules, and
2588
2588
// 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 );
2591
2590
if (s_pAltJitExcludeAssembliesList->IsInList (methodAssemblyName))
2592
2591
{
2593
2592
opts.altJit = false ;
@@ -2614,8 +2613,7 @@ void Compiler::compInitOptions(JitFlags* jitFlags)
2614
2613
bool assemblyInIncludeList = true ; // assume we'll dump, if there's not an include list (or it's empty).
2615
2614
if (s_pJitDisasmIncludeAssembliesList != nullptr && !s_pJitDisasmIncludeAssembliesList->IsEmpty ())
2616
2615
{
2617
- const char * assemblyName = info.compCompHnd ->getAssemblyName (
2618
- info.compCompHnd ->getModuleAssembly (info.compCompHnd ->getClassModule (info.compClassHnd )));
2616
+ const char * assemblyName = eeGetClassAssemblyName (info.compClassHnd );
2619
2617
if (!s_pJitDisasmIncludeAssembliesList->IsInList (assemblyName))
2620
2618
{
2621
2619
// 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,
6335
6333
#ifdef DEBUG
6336
6334
if (JitConfig.EnableExtraSuperPmiQueries ())
6337
6335
{
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 );
6349
6338
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 );
6354
6343
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++)
6357
6348
{
6358
- for (unsigned i = 0 ; i < classInst; i++)
6359
- {
6360
- eeGetClassName (sig.sigInst .classInst [i]);
6361
- }
6349
+ eeGetClassName (sig.sigInst .classInst [i]);
6362
6350
}
6351
+ }
6363
6352
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++)
6366
6357
{
6367
- for (unsigned i = 0 ; i < methodInst; i++)
6368
- {
6369
- eeGetClassName (sig.sigInst .methInst [i]);
6370
- }
6358
+ eeGetClassName (sig.sigInst .methInst [i]);
6371
6359
}
6372
6360
}
6373
6361
}
@@ -9221,8 +9209,7 @@ void JitTimer::PrintCsvMethodStats(Compiler* comp)
9221
9209
}
9222
9210
else
9223
9211
{
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 );
9226
9213
fprintf (s_csvFile, " \" %s\" ," , methodAssemblyName);
9227
9214
}
9228
9215
fprintf (s_csvFile, " %u," , comp->info .compILCodeSize );
0 commit comments