1 instantiation of InstantiatedMethod
System.Private.TypeLoader (1)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeSystemContext.cs (1)
435return new InstantiatedMethod(key.MethodDef, key.Instantiation, key._hashcode);
70 references to InstantiatedMethod
System.Private.TypeLoader (70)
Internal\Runtime\TypeLoader\GenericDictionaryCell.cs (6)
215internal InstantiatedMethod ConstrainedMethod; 216private InstantiatedMethod _resolvedMethod; 299internal InstantiatedMethod GenericMethod; 440((InstantiatedMethod)Method).RuntimeMethodDictionary : 511cell = new MethodDictionaryCell { GenericMethod = (InstantiatedMethod)genericMethod }; 631ConstrainedMethod = (InstantiatedMethod)constrainedMethod,
Internal\Runtime\TypeLoader\TemplateLocator.cs (4)
67public static InstantiatedMethod TryGetGenericMethodTemplate(InstantiatedMethod concreteMethod, out NativeFormatModuleInfo nativeLayoutInfoModule, out uint nativeLayoutInfoToken) 101var candidateTemplate = (InstantiatedMethod)context.GetMethod(ref methodSignatureParser);
Internal\Runtime\TypeLoader\TypeBuilder.cs (19)
31private ArrayBuilder<InstantiatedMethod> _methodsThatNeedDictionaries; 49internal static bool RetrieveMethodDictionaryIfPossible(InstantiatedMethod method) 107InstantiatedMethod genericMethod = (InstantiatedMethod)method; 244internal void ParseNativeLayoutInfo(InstantiatedMethod method) 250InstantiatedMethod nonTemplateMethod = method; 256nonTemplateMethod = (InstantiatedMethod)method.Context.ResolveGenericMethodInstantiation(true, method.AsyncVariant, method.ReturnDroppingAsyncThunk, (DefType)method.OwningType, method.NameAndSignature, method.Instantiation); 261InstantiatedMethod templateMethod = TemplateLocator.TryGetGenericMethodTemplate(nonTemplateMethod, out nativeLayoutModule, out nativeLayoutInfoToken); 396private static void AllocateRuntimeMethodDictionary(InstantiatedMethod method) 472private unsafe void FinishMethodDictionary(InstantiatedMethod method) 632InstantiatedMethod method = _methodsThatNeedDictionaries[i]; 682private static bool IsNonUnboxingDictionaryBeingBuilt(InstantiatedMethod method, out nint dictionary) 685InstantiatedMethod unboxTargetMethod = (InstantiatedMethod)method.Context.ResolveGenericMethodInstantiation(false, method.AsyncVariant, method.ReturnDroppingAsyncThunk, (DefType)method.OwningType, method.NameAndSignature, method.Instantiation); 709InstantiatedMethod method = _methodsThatNeedDictionaries[i]; 719InstantiatedMethod method = _methodsThatNeedDictionaries[i]; 753InstantiatedMethod method = _methodsThatNeedDictionaries[i]; 879private void BuildMethod(InstantiatedMethod method) 1136internal static bool TryBuildGenericMethod(InstantiatedMethod methodBeingLoaded, out IntPtr methodDictionary)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.ConstructedGenericMethodsLookup.cs (7)
135private readonly InstantiatedMethod _methodToLookup; 137internal GenericMethodLookupData(InstantiatedMethod methodToLookup) { _methodToLookup = methodToLookup; } 251public bool TryLookupExactMethodPointer(InstantiatedMethod method, out IntPtr result) 289public bool TryGetGenericVirtualMethodPointer(InstantiatedMethod method, out IntPtr methodPointer, out IntPtr dictionaryPointer) 301InstantiatedMethod nonTemplateMethod = method; 307nonTemplateMethod = (InstantiatedMethod)method.Context.ResolveGenericMethodInstantiation(true, method.AsyncVariant, method.ReturnDroppingAsyncThunk, (DefType)method.OwningType, method.NameAndSignature, method.Instantiation); 311InstantiatedMethod templateMethod = TemplateLocator.TryGetGenericMethodTemplate(nonTemplateMethod, out _, out _);
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.cs (2)
379InstantiatedMethod methodBeingLoaded = (InstantiatedMethod)context.ResolveGenericMethodInstantiation(false, asyncVariant: false, returnDroppingAsyncThunk: false, declaringType, nameAndSignature, context.ResolveRuntimeTypeHandles(genericMethodArgHandles));
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.GVMResolution.cs (15)
49internal static InstantiatedMethod GVMLookupForSlotWorker(DefType targetType, InstantiatedMethod slotMethod) 51InstantiatedMethod resolution = null; 135InstantiatedMethod slotMethod = (InstantiatedMethod)context.ResolveGenericMethodInstantiation( 143InstantiatedMethod result = GVMLookupForSlotWorker(targetType, slotMethod); 184private static InstantiatedMethod FindMatchingInterfaceSlot(NativeFormatModuleInfo module, NativeReader nativeLayoutReader, ref NativeParser entryParser, ref ExternalReferencesTable extRefs, InstantiatedMethod slotMethod, DefType targetType, bool variantDispatch, bool defaultMethods) 340return (InstantiatedMethod)context.ResolveGenericMethodInstantiation(false, asyncVariant, returnDroppingAsyncThunk, interfaceImplType, targetMethodNameAndSignature, slotMethod.Instantiation); 350private static InstantiatedMethod ResolveInterfaceGenericVirtualMethodSlot(DefType targetType, InstantiatedMethod slotMethod, bool lookForDefaultImplementation) 462InstantiatedMethod result = FindMatchingInterfaceSlot(module, nativeLayoutReader, ref entryParser, ref extRefs, slotMethod, targetType, false, lookForDefaultImplementation); 476private static InstantiatedMethod ResolveGenericVirtualMethodTarget(DefType targetType, InstantiatedMethod slotMethod) 533return (InstantiatedMethod)context.ResolveGenericMethodInstantiation(false, asyncVariant, returnDroppingAsyncThunk, targetType, targetMethodNameAndSignature, slotMethod.Instantiation);
Internal\Runtime\TypeLoader\TypeSystemExtensions.cs (1)
38public static bool CanShareNormalGenericCode(this InstantiatedMethod method)
src\runtime\src\coreclr\tools\Common\TypeSystem\Canon\InstantiatedMethod.Canon.cs (6)
15private InstantiatedMethod _specificCanonCache; 16private InstantiatedMethod _universalCanonCache; 23InstantiatedMethod canonicalMethodResult = GetCachedCanonValue(kind); 46canonicalMethodResult = (InstantiatedMethod)canonicalMethodResult.GetCanonMethodTarget(CanonicalFormKind.Universal); 55private InstantiatedMethod GetCachedCanonValue(CanonicalFormKind kind) 71private void SetCachedCanonValue(CanonicalFormKind kind, InstantiatedMethod value)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\InstantiatedMethod.cs (1)
21Debug.Assert(!(methodDef is InstantiatedMethod));
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeSystemContext.cs (9)
382public sealed class InstantiatedMethodKeyHashtable : LockFreeReaderHashtable<InstantiatedMethodKey, InstantiatedMethod> 389protected override int GetValueHashCode(InstantiatedMethod value) 394protected override bool CompareKeyToValue(InstantiatedMethodKey key, InstantiatedMethod value) 413protected override bool CompareValueToValue(InstantiatedMethod value1, InstantiatedMethod value2) 433protected override InstantiatedMethod CreateValueFromKey(InstantiatedMethodKey key) 442public InstantiatedMethod GetInstantiatedMethod(MethodDesc methodDef, Instantiation instantiation) 444Debug.Assert(!(methodDef is InstantiatedMethod)); 518Debug.Assert(!(typicalMethodDef is InstantiatedMethod));