You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd then have to write out an implementation for this ( which I believe we don't currently have), that would go on to call S_P_CoreLib_System_Delegate__InitializeClosedInstance I suppose.
My question is, should I do that? I ask because the IL implementation for the ctor in AssemblyBinderImplementation would directly call S_P_CoreLib_System_Delegate__InitializeClosedInstance without the need for a __DelegateCtor_S_P_CoreLib_System_Delegate__InitializeClosedInstance__S_P_TypeLoader_Internal_Reflection_Execution_AssemblyBinderImplementation__RegisterModule .
Thanks
The text was updated successfully, but these errors were encountered:
I ask because the IL implementation for the ctor in AssemblyBinderImplementation would directly call S_P_CoreLib_System_Delegate__InitializeClosedInstance
I think you would need to inline it in the importer in fgOptimizeDelegateConstructor to make this work. Is it what you meant? It sounds good to me. It may improve the nativeaot non-wasm path as well.
When compiling
runtimelab/src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Reflection/Execution/AssemblyBinderImplementation.cs
Lines 28 to 32 in 4fe7f4e
AddModuleRegistrationCallback
accepts aAction<ModuleInfo>
and so will call the helperCORINFO_HELP_READYTORUN_DELEGATE_CTOR
.For the helper
CORINFO_HELP_READYTORUN_DELEGATE_CTOR
, if I ask for the symbol name from itscall->gtEntryPoint.handle
I'll get something like:__DelegateCtor_S_P_CoreLib_System_Delegate__InitializeClosedInstance__S_P_TypeLoader_Internal_Reflection_Execution_AssemblyBinderImplementation__RegisterModule
I'd then have to write out an implementation for this ( which I believe we don't currently have), that would go on to call
S_P_CoreLib_System_Delegate__InitializeClosedInstance
I suppose.My question is, should I do that? I ask because the IL implementation for the ctor in
AssemblyBinderImplementation
would directly callS_P_CoreLib_System_Delegate__InitializeClosedInstance
without the need for a__DelegateCtor_S_P_CoreLib_System_Delegate__InitializeClosedInstance__S_P_TypeLoader_Internal_Reflection_Execution_AssemblyBinderImplementation__RegisterModule
.Thanks
The text was updated successfully, but these errors were encountered: