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);
66 references to InstantiatedMethod
System.Private.TypeLoader (66)
Internal\Runtime\TypeLoader\GenericDictionaryCell.cs (6)
180internal InstantiatedMethod ConstrainedMethod; 181private InstantiatedMethod _resolvedMethod; 264internal InstantiatedMethod GenericMethod; 406((InstantiatedMethod)Method).RuntimeMethodDictionary : 468cell = new MethodDictionaryCell { GenericMethod = (InstantiatedMethod)genericMethod }; 588ConstrainedMethod = (InstantiatedMethod)constrainedMethod,
Internal\Runtime\TypeLoader\TemplateLocator.cs (6)
72public static InstantiatedMethod TryGetGenericMethodTemplate(InstantiatedMethod concreteMethod, out NativeFormatModuleInfo nativeLayoutInfoModule, out uint nativeLayoutInfoToken) 76private static InstantiatedMethod TryGetGenericMethodTemplate_Internal(InstantiatedMethod concreteMethod, CanonicalFormKind kind, out NativeFormatModuleInfo nativeLayoutInfoModule, out uint nativeLayoutInfoToken) 110var candidateTemplate = (InstantiatedMethod)context.GetMethod(ref methodSignatureParser);
Internal\Runtime\TypeLoader\TypeBuilder.cs (13)
31private ArrayBuilder<InstantiatedMethod> _methodsThatNeedDictionaries; 49internal static bool RetrieveMethodDictionaryIfPossible(InstantiatedMethod method) 107InstantiatedMethod genericMethod = (InstantiatedMethod)method; 277internal void ParseNativeLayoutInfo(InstantiatedMethod method) 283InstantiatedMethod nonTemplateMethod = method; 289nonTemplateMethod = (InstantiatedMethod)method.Context.ResolveGenericMethodInstantiation(true, method.AsyncVariant, method.ReturnDroppingAsyncThunk, (DefType)method.OwningType, method.NameAndSignature, method.Instantiation); 294InstantiatedMethod templateMethod = TemplateLocator.TryGetGenericMethodTemplate(nonTemplateMethod, out nativeLayoutModule, out nativeLayoutInfoToken); 522private static void AllocateRuntimeMethodDictionary(InstantiatedMethod method) 627private unsafe void FinishMethodDictionary(InstantiatedMethod method) 799InstantiatedMethod method = _methodsThatNeedDictionaries[i]; 983private void BuildMethod(InstantiatedMethod method) 1240internal static bool TryBuildGenericMethod(InstantiatedMethod methodBeingLoaded, out IntPtr methodDictionary)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.ConstructedGenericMethodsLookup.cs (7)
141protected InstantiatedMethod _methodToLookup; 143internal MethodDescBasedGenericMethodLookup(InstantiatedMethod methodToLookup) { _methodToLookup = methodToLookup; } 257public bool TryLookupExactMethodPointer(InstantiatedMethod method, out IntPtr result) 295public bool TryGetGenericVirtualMethodPointer(InstantiatedMethod method, out IntPtr methodPointer, out IntPtr dictionaryPointer) 307InstantiatedMethod nonTemplateMethod = method; 313nonTemplateMethod = (InstantiatedMethod)method.Context.ResolveGenericMethodInstantiation(true, method.AsyncVariant, method.ReturnDroppingAsyncThunk, (DefType)method.OwningType, method.NameAndSignature, method.Instantiation); 317InstantiatedMethod templateMethod = TemplateLocator.TryGetGenericMethodTemplate(nonTemplateMethod, out _, out _);
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.cs (2)
383InstantiatedMethod methodBeingLoaded = (InstantiatedMethod)context.ResolveGenericMethodInstantiation(false, asyncVariant: false, returnDroppingAsyncThunk: false, declaringType, nameAndSignature, context.ResolveRuntimeTypeHandles(genericMethodArgHandles));
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.GVMResolution.cs (15)
48internal static InstantiatedMethod GVMLookupForSlotWorker(DefType targetType, InstantiatedMethod slotMethod) 50InstantiatedMethod resolution = null; 127InstantiatedMethod slotMethod = (InstantiatedMethod)GetMethodDescForRuntimeMethodHandle(context, slot); 129InstantiatedMethod result = GVMLookupForSlotWorker(targetType, slotMethod); 163private static InstantiatedMethod FindMatchingInterfaceSlot(NativeFormatModuleInfo module, NativeReader nativeLayoutReader, ref NativeParser entryParser, ref ExternalReferencesTable extRefs, InstantiatedMethod slotMethod, DefType targetType, bool variantDispatch, bool defaultMethods) 319return (InstantiatedMethod)context.ResolveGenericMethodInstantiation(false, asyncVariant, returnDroppingAsyncThunk, interfaceImplType, targetMethodNameAndSignature, slotMethod.Instantiation); 329private static InstantiatedMethod ResolveInterfaceGenericVirtualMethodSlot(DefType targetType, InstantiatedMethod slotMethod, bool lookForDefaultImplementation) 441InstantiatedMethod result = FindMatchingInterfaceSlot(module, nativeLayoutReader, ref entryParser, ref extRefs, slotMethod, targetType, false, lookForDefaultImplementation); 455private static InstantiatedMethod ResolveGenericVirtualMethodTarget(DefType targetType, InstantiatedMethod slotMethod) 516return (InstantiatedMethod)context.ResolveGenericMethodInstantiation(false, asyncVariant, returnDroppingAsyncThunk, targetType, targetMethodNameAndSignature, slotMethod.Instantiation);
Internal\Runtime\TypeLoader\TypeSystemExtensions.cs (1)
44public 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)
19Debug.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));