1 instantiation of InstantiatedMethod
System.Private.TypeLoader (1)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeSystemContext.cs (1)
435
return new
InstantiatedMethod
(key.MethodDef, key.Instantiation, key._hashcode);
66 references to InstantiatedMethod
System.Private.TypeLoader (66)
Internal\Runtime\TypeLoader\GenericDictionaryCell.cs (6)
180
internal
InstantiatedMethod
ConstrainedMethod;
181
private
InstantiatedMethod
_resolvedMethod;
264
internal
InstantiatedMethod
GenericMethod;
406
((
InstantiatedMethod
)Method).RuntimeMethodDictionary :
468
cell = new MethodDictionaryCell { GenericMethod = (
InstantiatedMethod
)genericMethod };
588
ConstrainedMethod = (
InstantiatedMethod
)constrainedMethod,
Internal\Runtime\TypeLoader\TemplateLocator.cs (6)
72
public static
InstantiatedMethod
TryGetGenericMethodTemplate(
InstantiatedMethod
concreteMethod, out NativeFormatModuleInfo nativeLayoutInfoModule, out uint nativeLayoutInfoToken)
76
private static
InstantiatedMethod
TryGetGenericMethodTemplate_Internal(
InstantiatedMethod
concreteMethod, CanonicalFormKind kind, out NativeFormatModuleInfo nativeLayoutInfoModule, out uint nativeLayoutInfoToken)
110
var
candidateTemplate = (
InstantiatedMethod
)context.GetMethod(ref methodSignatureParser);
Internal\Runtime\TypeLoader\TypeBuilder.cs (13)
31
private ArrayBuilder<
InstantiatedMethod
> _methodsThatNeedDictionaries;
49
internal static bool RetrieveMethodDictionaryIfPossible(
InstantiatedMethod
method)
107
InstantiatedMethod
genericMethod = (
InstantiatedMethod
)method;
277
internal void ParseNativeLayoutInfo(
InstantiatedMethod
method)
283
InstantiatedMethod
nonTemplateMethod = method;
289
nonTemplateMethod = (
InstantiatedMethod
)method.Context.ResolveGenericMethodInstantiation(true, method.AsyncVariant, method.ReturnDroppingAsyncThunk, (DefType)method.OwningType, method.NameAndSignature, method.Instantiation);
294
InstantiatedMethod
templateMethod = TemplateLocator.TryGetGenericMethodTemplate(nonTemplateMethod, out nativeLayoutModule, out nativeLayoutInfoToken);
522
private static void AllocateRuntimeMethodDictionary(
InstantiatedMethod
method)
627
private unsafe void FinishMethodDictionary(
InstantiatedMethod
method)
799
InstantiatedMethod
method = _methodsThatNeedDictionaries[i];
983
private void BuildMethod(
InstantiatedMethod
method)
1240
internal static bool TryBuildGenericMethod(
InstantiatedMethod
methodBeingLoaded, out IntPtr methodDictionary)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.ConstructedGenericMethodsLookup.cs (7)
141
protected
InstantiatedMethod
_methodToLookup;
143
internal MethodDescBasedGenericMethodLookup(
InstantiatedMethod
methodToLookup) { _methodToLookup = methodToLookup; }
257
public bool TryLookupExactMethodPointer(
InstantiatedMethod
method, out IntPtr result)
295
public bool TryGetGenericVirtualMethodPointer(
InstantiatedMethod
method, out IntPtr methodPointer, out IntPtr dictionaryPointer)
307
InstantiatedMethod
nonTemplateMethod = method;
313
nonTemplateMethod = (
InstantiatedMethod
)method.Context.ResolveGenericMethodInstantiation(true, method.AsyncVariant, method.ReturnDroppingAsyncThunk, (DefType)method.OwningType, method.NameAndSignature, method.Instantiation);
317
InstantiatedMethod
templateMethod = TemplateLocator.TryGetGenericMethodTemplate(nonTemplateMethod, out _, out _);
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.cs (2)
383
InstantiatedMethod
methodBeingLoaded = (
InstantiatedMethod
)context.ResolveGenericMethodInstantiation(false, asyncVariant: false, returnDroppingAsyncThunk: false, declaringType, nameAndSignature, context.ResolveRuntimeTypeHandles(genericMethodArgHandles));
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.GVMResolution.cs (15)
48
internal static
InstantiatedMethod
GVMLookupForSlotWorker(DefType targetType,
InstantiatedMethod
slotMethod)
50
InstantiatedMethod
resolution = null;
127
InstantiatedMethod
slotMethod = (
InstantiatedMethod
)GetMethodDescForRuntimeMethodHandle(context, slot);
129
InstantiatedMethod
result = GVMLookupForSlotWorker(targetType, slotMethod);
163
private static
InstantiatedMethod
FindMatchingInterfaceSlot(NativeFormatModuleInfo module, NativeReader nativeLayoutReader, ref NativeParser entryParser, ref ExternalReferencesTable extRefs,
InstantiatedMethod
slotMethod, DefType targetType, bool variantDispatch, bool defaultMethods)
319
return (
InstantiatedMethod
)context.ResolveGenericMethodInstantiation(false, asyncVariant, returnDroppingAsyncThunk, interfaceImplType, targetMethodNameAndSignature, slotMethod.Instantiation);
329
private static
InstantiatedMethod
ResolveInterfaceGenericVirtualMethodSlot(DefType targetType,
InstantiatedMethod
slotMethod, bool lookForDefaultImplementation)
441
InstantiatedMethod
result = FindMatchingInterfaceSlot(module, nativeLayoutReader, ref entryParser, ref extRefs, slotMethod, targetType, false, lookForDefaultImplementation);
455
private static
InstantiatedMethod
ResolveGenericVirtualMethodTarget(DefType targetType,
InstantiatedMethod
slotMethod)
516
return (
InstantiatedMethod
)context.ResolveGenericMethodInstantiation(false, asyncVariant, returnDroppingAsyncThunk, targetType, targetMethodNameAndSignature, slotMethod.Instantiation);
Internal\Runtime\TypeLoader\TypeSystemExtensions.cs (1)
44
public static bool CanShareNormalGenericCode(this
InstantiatedMethod
method)
src\runtime\src\coreclr\tools\Common\TypeSystem\Canon\InstantiatedMethod.Canon.cs (6)
15
private
InstantiatedMethod
_specificCanonCache;
16
private
InstantiatedMethod
_universalCanonCache;
23
InstantiatedMethod
canonicalMethodResult = GetCachedCanonValue(kind);
46
canonicalMethodResult = (
InstantiatedMethod
)canonicalMethodResult.GetCanonMethodTarget(CanonicalFormKind.Universal);
55
private
InstantiatedMethod
GetCachedCanonValue(CanonicalFormKind kind)
71
private void SetCachedCanonValue(CanonicalFormKind kind,
InstantiatedMethod
value)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\InstantiatedMethod.cs (1)
19
Debug.Assert(!(methodDef is
InstantiatedMethod
));
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeSystemContext.cs (9)
382
public sealed class InstantiatedMethodKeyHashtable : LockFreeReaderHashtable<InstantiatedMethodKey,
InstantiatedMethod
>
389
protected override int GetValueHashCode(
InstantiatedMethod
value)
394
protected override bool CompareKeyToValue(InstantiatedMethodKey key,
InstantiatedMethod
value)
413
protected override bool CompareValueToValue(
InstantiatedMethod
value1,
InstantiatedMethod
value2)
433
protected override
InstantiatedMethod
CreateValueFromKey(InstantiatedMethodKey key)
442
public
InstantiatedMethod
GetInstantiatedMethod(MethodDesc methodDef, Instantiation instantiation)
444
Debug.Assert(!(methodDef is
InstantiatedMethod
));
518
Debug.Assert(!(typicalMethodDef is
InstantiatedMethod
));