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);
70 references to InstantiatedMethod
System.Private.TypeLoader (70)
Internal\Runtime\TypeLoader\GenericDictionaryCell.cs (6)
215
internal
InstantiatedMethod
ConstrainedMethod;
216
private
InstantiatedMethod
_resolvedMethod;
299
internal
InstantiatedMethod
GenericMethod;
440
((
InstantiatedMethod
)Method).RuntimeMethodDictionary :
511
cell = new MethodDictionaryCell { GenericMethod = (
InstantiatedMethod
)genericMethod };
631
ConstrainedMethod = (
InstantiatedMethod
)constrainedMethod,
Internal\Runtime\TypeLoader\TemplateLocator.cs (4)
67
public static
InstantiatedMethod
TryGetGenericMethodTemplate(
InstantiatedMethod
concreteMethod, out NativeFormatModuleInfo nativeLayoutInfoModule, out uint nativeLayoutInfoToken)
101
var
candidateTemplate = (
InstantiatedMethod
)context.GetMethod(ref methodSignatureParser);
Internal\Runtime\TypeLoader\TypeBuilder.cs (19)
31
private ArrayBuilder<
InstantiatedMethod
> _methodsThatNeedDictionaries;
49
internal static bool RetrieveMethodDictionaryIfPossible(
InstantiatedMethod
method)
107
InstantiatedMethod
genericMethod = (
InstantiatedMethod
)method;
244
internal void ParseNativeLayoutInfo(
InstantiatedMethod
method)
250
InstantiatedMethod
nonTemplateMethod = method;
256
nonTemplateMethod = (
InstantiatedMethod
)method.Context.ResolveGenericMethodInstantiation(true, method.AsyncVariant, method.ReturnDroppingAsyncThunk, (DefType)method.OwningType, method.NameAndSignature, method.Instantiation);
261
InstantiatedMethod
templateMethod = TemplateLocator.TryGetGenericMethodTemplate(nonTemplateMethod, out nativeLayoutModule, out nativeLayoutInfoToken);
396
private static void AllocateRuntimeMethodDictionary(
InstantiatedMethod
method)
472
private unsafe void FinishMethodDictionary(
InstantiatedMethod
method)
632
InstantiatedMethod
method = _methodsThatNeedDictionaries[i];
682
private static bool IsNonUnboxingDictionaryBeingBuilt(
InstantiatedMethod
method, out nint dictionary)
685
InstantiatedMethod
unboxTargetMethod = (
InstantiatedMethod
)method.Context.ResolveGenericMethodInstantiation(false, method.AsyncVariant, method.ReturnDroppingAsyncThunk, (DefType)method.OwningType, method.NameAndSignature, method.Instantiation);
709
InstantiatedMethod
method = _methodsThatNeedDictionaries[i];
719
InstantiatedMethod
method = _methodsThatNeedDictionaries[i];
753
InstantiatedMethod
method = _methodsThatNeedDictionaries[i];
879
private void BuildMethod(
InstantiatedMethod
method)
1136
internal static bool TryBuildGenericMethod(
InstantiatedMethod
methodBeingLoaded, out IntPtr methodDictionary)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.ConstructedGenericMethodsLookup.cs (7)
135
private readonly
InstantiatedMethod
_methodToLookup;
137
internal GenericMethodLookupData(
InstantiatedMethod
methodToLookup) { _methodToLookup = methodToLookup; }
251
public bool TryLookupExactMethodPointer(
InstantiatedMethod
method, out IntPtr result)
289
public bool TryGetGenericVirtualMethodPointer(
InstantiatedMethod
method, out IntPtr methodPointer, out IntPtr dictionaryPointer)
301
InstantiatedMethod
nonTemplateMethod = method;
307
nonTemplateMethod = (
InstantiatedMethod
)method.Context.ResolveGenericMethodInstantiation(true, method.AsyncVariant, method.ReturnDroppingAsyncThunk, (DefType)method.OwningType, method.NameAndSignature, method.Instantiation);
311
InstantiatedMethod
templateMethod = TemplateLocator.TryGetGenericMethodTemplate(nonTemplateMethod, out _, out _);
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.cs (2)
379
InstantiatedMethod
methodBeingLoaded = (
InstantiatedMethod
)context.ResolveGenericMethodInstantiation(false, asyncVariant: false, returnDroppingAsyncThunk: false, declaringType, nameAndSignature, context.ResolveRuntimeTypeHandles(genericMethodArgHandles));
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.GVMResolution.cs (15)
49
internal static
InstantiatedMethod
GVMLookupForSlotWorker(DefType targetType,
InstantiatedMethod
slotMethod)
51
InstantiatedMethod
resolution = null;
135
InstantiatedMethod
slotMethod = (
InstantiatedMethod
)context.ResolveGenericMethodInstantiation(
143
InstantiatedMethod
result = GVMLookupForSlotWorker(targetType, slotMethod);
184
private static
InstantiatedMethod
FindMatchingInterfaceSlot(NativeFormatModuleInfo module, NativeReader nativeLayoutReader, ref NativeParser entryParser, ref ExternalReferencesTable extRefs,
InstantiatedMethod
slotMethod, DefType targetType, bool variantDispatch, bool defaultMethods)
340
return (
InstantiatedMethod
)context.ResolveGenericMethodInstantiation(false, asyncVariant, returnDroppingAsyncThunk, interfaceImplType, targetMethodNameAndSignature, slotMethod.Instantiation);
350
private static
InstantiatedMethod
ResolveInterfaceGenericVirtualMethodSlot(DefType targetType,
InstantiatedMethod
slotMethod, bool lookForDefaultImplementation)
462
InstantiatedMethod
result = FindMatchingInterfaceSlot(module, nativeLayoutReader, ref entryParser, ref extRefs, slotMethod, targetType, false, lookForDefaultImplementation);
476
private static
InstantiatedMethod
ResolveGenericVirtualMethodTarget(DefType targetType,
InstantiatedMethod
slotMethod)
533
return (
InstantiatedMethod
)context.ResolveGenericMethodInstantiation(false, asyncVariant, returnDroppingAsyncThunk, targetType, targetMethodNameAndSignature, slotMethod.Instantiation);
Internal\Runtime\TypeLoader\TypeSystemExtensions.cs (1)
38
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)
21
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
));