@@ -2656,8 +2656,7 @@ void Compiler::compInitOptions(JitFlags* jitFlags)
2656
2656
// We have an exclusion list. See if this method is in an assembly that is on the list.
2657
2657
// Note that we check this for every method, since we might inline across modules, and
2658
2658
// 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 );
2661
2660
if (s_pAltJitExcludeAssembliesList->IsInList (methodAssemblyName))
2662
2661
{
2663
2662
opts.altJit = false ;
@@ -2684,8 +2683,7 @@ void Compiler::compInitOptions(JitFlags* jitFlags)
2684
2683
bool assemblyInIncludeList = true ; // assume we'll dump, if there's not an include list (or it's empty).
2685
2684
if (s_pJitDisasmIncludeAssembliesList != nullptr && !s_pJitDisasmIncludeAssembliesList->IsEmpty ())
2686
2685
{
2687
- const char * assemblyName = info.compCompHnd ->getAssemblyName (
2688
- info.compCompHnd ->getModuleAssembly (info.compCompHnd ->getClassModule (info.compClassHnd )));
2686
+ const char * assemblyName = eeGetClassAssemblyName (info.compClassHnd );
2689
2687
if (!s_pJitDisasmIncludeAssembliesList->IsInList (assemblyName))
2690
2688
{
2691
2689
// 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,
6457
6455
#ifdef DEBUG
6458
6456
if (JitConfig.EnableExtraSuperPmiQueries ())
6459
6457
{
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 );
6471
6460
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 );
6476
6465
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++)
6479
6470
{
6480
- for (unsigned i = 0 ; i < classInst; i++)
6481
- {
6482
- eeGetClassName (sig.sigInst .classInst [i]);
6483
- }
6471
+ eeGetClassName (sig.sigInst .classInst [i]);
6484
6472
}
6473
+ }
6485
6474
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++)
6488
6479
{
6489
- for (unsigned i = 0 ; i < methodInst; i++)
6490
- {
6491
- eeGetClassName (sig.sigInst .methInst [i]);
6492
- }
6480
+ eeGetClassName (sig.sigInst .methInst [i]);
6493
6481
}
6494
6482
}
6495
6483
}
@@ -9379,8 +9367,7 @@ void JitTimer::PrintCsvMethodStats(Compiler* comp)
9379
9367
}
9380
9368
else
9381
9369
{
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 );
9384
9371
fprintf (s_csvFile, " \" %s\" ," , methodAssemblyName);
9385
9372
}
9386
9373
fprintf (s_csvFile, " %u," , comp->info .compILCodeSize );
0 commit comments