3 instantiations of MethodDescHandle
Microsoft.Diagnostics.DataContractReader.Contracts (3)
Contracts\RuntimeTypeSystem_1.cs (3)
1475
return new
MethodDescHandle
(methodDescPointer);
1497
return new
MethodDescHandle
(methodDescPointer);
1831
TargetPointer mtAddr = GetMethodTable(new
MethodDescHandle
(md.Address));
152 references to MethodDescHandle
Microsoft.Diagnostics.DataContractReader.Abstractions (29)
Contracts\ICallingConvention.cs (1)
12
bool TryComputeArgGCRefMapBlob(
MethodDescHandle
methodDesc, out byte[] blob)
Contracts\IRuntimeTypeSystem.cs (28)
236
MethodDescHandle
GetMethodDescHandle(TargetPointer targetPointer) => throw new NotImplementedException();
237
TargetPointer GetMethodTable(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
240
bool IsGenericMethodDefinition(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
241
ReadOnlySpan<TypeHandle> GetGenericMethodInstantiation(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
243
GenericContextLoc GetGenericContextLoc(
MethodDescHandle
methodDescHandle) => throw new NotImplementedException();
247
bool IsAsyncMethod(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
250
uint GetMethodToken(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
254
bool IsArrayMethod(
MethodDescHandle
methodDesc, out ArrayFunctionType functionType) => throw new NotImplementedException();
260
bool IsNoMetadataMethod(
MethodDescHandle
methodDesc, out string methodName) => throw new NotImplementedException();
262
bool IsStoredSigMethodDesc(
MethodDescHandle
methodDesc, out ReadOnlySpan<byte> signature) => throw new NotImplementedException();
266
bool IsDynamicMethod(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
269
bool IsIL(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
273
bool IsILStub(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
276
bool HasMDContextArg(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
278
bool IsCollectibleMethod(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
279
bool IsVersionable(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
281
TargetPointer GetMethodDescVersioningState(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
283
TargetCodePointer GetNativeCode(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
284
TargetCodePointer GetMethodEntryPointIfExists(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
286
ushort GetSlotNumber(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
288
bool HasNativeCodeSlot(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
290
TargetPointer GetAddressOfNativeCodeSlot(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
292
TargetPointer GetGCStressCodeCopy(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
294
OptimizationTier GetMethodDescOptimizationTier(
MethodDescHandle
methodDescHandle) => throw new NotImplementedException();
295
bool IsEligibleForTieredCompilation(
MethodDescHandle
methodDescHandle) => throw new NotImplementedException();
297
bool IsAsyncThunkMethod(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
299
bool IsWrapperStub(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
300
bool IsUnboxingStub(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (62)
Contracts\CallingConvention\CallingConvention_1.cs (7)
28
public bool TryComputeArgGCRefMapBlob(
MethodDescHandle
methodDesc, out byte[] blob)
82
private ArgumentLayout GetArgumentLayout(
MethodDescHandle
methodDesc)
273
IRuntimeTypeSystem rts,
MethodDescHandle
methodDesc)
322
private ParamTypeInfo[] DecodeParamTypeInfo(IRuntimeTypeSystem rts,
MethodDescHandle
methodDesc, int paramCount)
546
internal readonly record struct MethodSigContext(
MethodDescHandle
Method, TypeHandle OwningType);
596
private byte[]? ComputeArgGCRefMapBlobCore(
MethodDescHandle
methodDesc)
810
private static GenericContextLoc SafeGetGenericContextLoc(IRuntimeTypeSystem rts,
MethodDescHandle
md)
Contracts\CodeVersions_1.cs (11)
106
MethodDescHandle
md = rts.GetMethodDescHandle(methodDesc);
134
MethodDescHandle
md = rts.GetMethodDescHandle(methodDescAddress);
151
MethodDescHandle
md = rts.GetMethodDescHandle(methodDescAddress);
176
MethodDescHandle
md = _target.Contracts.RuntimeTypeSystem.GetMethodDescHandle(codeVersionHandle.MethodDescAddress);
206
MethodDescHandle
md = rts.GetMethodDescHandle(methodDesc);
223
MethodDescHandle
md = rts.GetMethodDescHandle(codeVersionHandle.MethodDescAddress);
245
private NativeCodeVersionHandle GetSpecificNativeCodeVersion(IRuntimeTypeSystem rts,
MethodDescHandle
md, TargetCodePointer startAddress)
262
private IEnumerable<NativeCodeVersionHandle> FindNativeCodeVersionNodes(IRuntimeTypeSystem rts,
MethodDescHandle
md, Func<Data.NativeCodeVersionNode, bool> predicate)
321
MethodDescHandle
md = _target.Contracts.RuntimeTypeSystem.GetMethodDescHandle(nativeCodeVersion.MethodDescAddress);
343
MethodDescHandle
md = rts.GetMethodDescHandle(methodDesc);
451
MethodDescHandle
methodDescHandle = rtsContract.GetMethodDescHandle(codeVersionHandle.MethodDescAddress);
Contracts\ExecutionManager\ExecutionManagerCore.cs (1)
539
MethodDescHandle
mdHandle = rts.GetMethodDescHandle(methodDescPtr);
Contracts\RuntimeTypeSystem_1.cs (35)
1467
public
MethodDescHandle
GetMethodDescHandle(TargetPointer methodDescPointer)
1470
private
MethodDescHandle
GetMethodDescHandle(TargetPointer methodDescPointer, bool validate)
1500
public TargetPointer GetMethodTable(
MethodDescHandle
methodDescHandle) => _methodDescs[methodDescHandle.Address].MethodTable;
1522
public bool IsGenericMethodDefinition(
MethodDescHandle
methodDescHandle)
1531
public ReadOnlySpan<TypeHandle> GetGenericMethodInstantiation(
MethodDescHandle
methodDescHandle)
1556
public GenericContextLoc GetGenericContextLoc(
MethodDescHandle
methodDescHandle)
1609
public bool IsAsyncMethod(
MethodDescHandle
methodDescHandle)
1622
public uint GetMethodToken(
MethodDescHandle
methodDescHandle)
1628
public bool IsArrayMethod(
MethodDescHandle
methodDescHandle, out ArrayFunctionType functionType)
1662
public bool IsNoMetadataMethod(
MethodDescHandle
methodDescHandle, out string methodName)
1676
public bool IsStoredSigMethodDesc(
MethodDescHandle
methodDescHandle, out ReadOnlySpan<byte> signature)
1696
public bool IsDynamicMethod(
MethodDescHandle
methodDescHandle)
1708
public bool IsIL(
MethodDescHandle
methodDescHandle)
1714
public bool IsILStub(
MethodDescHandle
methodDescHandle)
1725
public bool HasMDContextArg(
MethodDescHandle
methodDescHandle)
1837
bool IRuntimeTypeSystem.IsCollectibleMethod(
MethodDescHandle
methodDesc)
1845
bool IRuntimeTypeSystem.IsVersionable(
MethodDescHandle
methodDesc)
1862
TargetPointer IRuntimeTypeSystem.GetMethodDescVersioningState(
MethodDescHandle
methodDesc)
1873
uint IRuntimeTypeSystem.GetMethodToken(
MethodDescHandle
methodDescHandle)
1879
ushort IRuntimeTypeSystem.GetSlotNumber(
MethodDescHandle
methodDesc)
1884
bool IRuntimeTypeSystem.HasNativeCodeSlot(
MethodDescHandle
methodDesc)
1891
private IEnumerable<
MethodDescHandle
> GetIntroducedMethods(TypeHandle typeHandle)
1907
MethodDescHandle
methodDescHandle = GetMethodDescHandle(methodDescPtr, validate: false);
1923
foreach (
MethodDescHandle
mdh in GetIntroducedMethods(canonMT))
1944
foreach (
MethodDescHandle
mdh in GetIntroducedMethods(canonMT))
1978
foreach (
MethodDescHandle
mdh in GetIntroducedMethods(lookupMT))
2026
TargetPointer IRuntimeTypeSystem.GetAddressOfNativeCodeSlot(
MethodDescHandle
methodDesc)
2032
TargetCodePointer IRuntimeTypeSystem.GetNativeCode(
MethodDescHandle
methodDescHandle)
2052
TargetCodePointer IRuntimeTypeSystem.GetMethodEntryPointIfExists(
MethodDescHandle
methodDescHandle)
2081
TargetPointer IRuntimeTypeSystem.GetGCStressCodeCopy(
MethodDescHandle
methodDesc)
2106
OptimizationTier IRuntimeTypeSystem.GetMethodDescOptimizationTier(
MethodDescHandle
methodDescHandle)
2117
bool IRuntimeTypeSystem.IsEligibleForTieredCompilation(
MethodDescHandle
methodDescHandle)
2123
public bool IsAsyncThunkMethod(
MethodDescHandle
methodDescHandle)
2135
public bool IsWrapperStub(
MethodDescHandle
methodDescHandle)
2141
public bool IsUnboxingStub(
MethodDescHandle
methodDescHandle)
Contracts\Signature\SignatureTypeProvider.cs (3)
42
if (typeof(T) == typeof(
MethodDescHandle
))
44
MethodDescHandle
methodContext = (
MethodDescHandle
)(object)context!;
Contracts\StackWalk\FrameHandling\X86FrameHandler.cs (1)
51
MethodDescHandle
md = _target.Contracts.RuntimeTypeSystem.GetMethodDescHandle(framedMethodFrame.MethodDescPtr);
Contracts\StackWalk\GC\GcScanner.cs (1)
368
MethodDescHandle
md = _target.Contracts.RuntimeTypeSystem.GetMethodDescHandle(fmf.MethodDescPtr);
Contracts\StackWalk\GC\GcSignatureTypeProvider.cs (2)
32
/// is the owning method's <see cref="
MethodDescHandle
"/> (used for MVAR).
34
internal readonly record struct GcSignatureContext(TypeHandle ClassContext,
MethodDescHandle
MethodContext);
Contracts\StackWalk\StackWalk_1.cs (1)
1103
MethodDescHandle
returnMethodDesc = rts.GetMethodDescHandle(_eman.GetMethodDesc(cbh));
Microsoft.Diagnostics.DataContractReader.Legacy (61)
ClrDataFrame.cs (14)
192
GetMethodInfo(out
MethodDescHandle
mdh, out MetadataReader mdReader, out MethodDefinition methodDef, out Contracts.ModuleHandle moduleHandle, out _);
249
GetMethodInfo(out
MethodDescHandle
mdh, out _, out _, out Contracts.ModuleHandle moduleHandle, out _);
295
GetMethodInfo(out
MethodDescHandle
mdh, out MetadataReader mdReader, out MethodDefinition methodDef, out Contracts.ModuleHandle moduleHandle, out _);
359
MethodDescHandle
mdh = rts.GetMethodDescHandle(methodDesc);
403
private void GetMethodInfo(out
MethodDescHandle
mdh, out MetadataReader mdReader, out MethodDefinition methodDef, out Contracts.ModuleHandle moduleHandle, out uint token)
454
MethodDescHandle
mdh,
514
private BlobReader? GetLocalSignatureReader(
MethodDescHandle
mdh, Contracts.ModuleHandle moduleHandle, out MetadataReader mdReader)
553
private uint GetLocalVariableCount(
MethodDescHandle
mdh, Contracts.ModuleHandle moduleHandle)
573
MethodDescHandle
mdh, Contracts.ModuleHandle moduleHandle)
579
SignatureDecoder<(uint Flags, int Size),
MethodDescHandle
> decoder = new(provider, mdReader, mdh);
660
private sealed class FlagSignatureTypeProvider : ISignatureTypeProvider<(uint Flags, int Size),
MethodDescHandle
>
738
public (uint Flags, int Size) GetTypeFromSpecification(MetadataReader reader,
MethodDescHandle
genericContext, TypeSpecificationHandle handle, byte rawTypeKind)
743
public (uint Flags, int Size) GetGenericMethodParameter(
MethodDescHandle
mdh, int index)
754
public (uint Flags, int Size) GetGenericTypeParameter(
MethodDescHandle
mdh, int index)
ClrDataMethodDefinition.cs (8)
44
private static bool HasClassInstantiation(Target target,
MethodDescHandle
md)
53
private static bool HasMethodInstantiation(Target target,
MethodDescHandle
md)
62
private static bool HasClassOrMethodInstantiation(Target target,
MethodDescHandle
md)
130
*handle = (ulong)((IEnum<
MethodDescHandle
>)emi).GetHandle();
191
MethodDescHandle
methodDesc = emi.Enumerator.Current;
236
((IEnum<
MethodDescHandle
>)emi).Dispose();
270
MethodDescHandle
methodDescHandle = rts.GetMethodDescHandle(methodDescAddr);
463
MethodDescHandle
methodDescHandle = rts.GetMethodDescHandle(methodDescAddr);
ClrDataMethodInstance.cs (2)
21
private readonly
MethodDescHandle
_methodDesc;
26
MethodDescHandle
methodDesc,
Dbi\DacDbiImpl.cs (8)
1819
MethodDescHandle
mdHandle = rts.GetMethodDescHandle(methodDescPtr);
1989
Contracts.
MethodDescHandle
md = rts.GetMethodDescHandle(new TargetPointer(vmMethodDesc));
2164
MethodDescHandle
mdHandle = rts.GetMethodDescHandle(methodDescPtr);
2889
Contracts.
MethodDescHandle
pRepMethod = rts.GetMethodDescHandle(vmMethodDesc);
2895
Contracts.
MethodDescHandle
pSpecificMethod = pRepMethod;
5234
MethodDescHandle
mdHandle = rts.GetMethodDescHandle(methodDescPtr);
5471
Contracts.
MethodDescHandle
md = rts.GetMethodDescHandle(new TargetPointer(vmMethod));
5552
Contracts.
MethodDescHandle
md = rts.GetMethodDescHandle(new TargetPointer(vmMethod));
SOSDacImpl.cs (8)
2266
Contracts.
MethodDescHandle
methodDescHandle = rtsContract.GetMethodDescHandle(methodDesc);
2603
Contracts.
MethodDescHandle
methodDescHandle = rtsContract.GetMethodDescHandle(methodDesc);
3029
MethodDescHandle
mdHandle = rts.GetMethodDescHandle(mdAddr);
5305
MethodDescHandle
methodDescHandle = runtimeTypeSystemContract.GetMethodDescHandle(methodDescPtr);
5575
MethodDescHandle
mdh = rts.GetMethodDescHandle(methodDescPtr);
5641
MethodDescHandle
mdh = rts.GetMethodDescHandle(md);
6889
MethodDescHandle
mdh = _rts.GetMethodDescHandle(mdAddr);
6909
MethodDescHandle
mdh = _rts.GetMethodDescHandle(mdAddr);
SOSDacImpl.IXCLRDataProcess.cs (17)
133
MethodDescHandle
mdh = rts.GetMethodDescHandle(methodDesc);
249
internal sealed class EnumMethodInstances : IEnum<
MethodDescHandle
>
257
public IEnumerator<
MethodDescHandle
> Enumerator { get; set; } = Enumerable.Empty<
MethodDescHandle
>().GetEnumerator();
280
MethodDescHandle
mainMD = _rts.GetMethodDescHandle(_mainMethodDesc);
291
private IEnumerable<
MethodDescHandle
> IterateMethodInstantiations(Contracts.ModuleHandle moduleHandle)
324
private IEnumerable<
MethodDescHandle
> IterateMethodInstances()
334
MethodDescHandle
mainMD = _rts.GetMethodDescHandle(_mainMethodDesc);
360
foreach (
MethodDescHandle
methodDesc in IterateMethodInstantiations(moduleHandle))
403
MethodDescHandle
methodDesc = _rts.GetMethodDescHandle(methodDescAddr);
418
private bool HasClassOrMethodInstantiation(
MethodDescHandle
md)
423
private bool HasClassInstantiation(
MethodDescHandle
md)
432
private bool HasMethodInstantiation(
MethodDescHandle
md)
476
*handle = (ulong)((IEnum<
MethodDescHandle
>)emi).GetHandle();
532
MethodDescHandle
methodDesc = emi.Enumerator.Current;
662
MethodDescHandle
methodDesc = rts.GetMethodDescHandle(jit.MethodDescAddress);
722
MethodDescHandle
methodDesc = rts.GetMethodDescHandle(exceptionCatcherEnter.MethodDescAddress);
StressTestApi\CdacStressApi.cs (1)
77
MethodDescHandle
mdh = rts.GetMethodDescHandle(
TypeNameBuilder.cs (3)
60
public static void AppendMethodInternal(Target target, StringBuilder stringBuilder, Contracts.
MethodDescHandle
method, TypeNameFormat format)
65
public static void AppendMethodImpl(Target target, StringBuilder stringBuilder, Contracts.
MethodDescHandle
method, ReadOnlySpan<TypeHandle> typeInstantiation, TypeNameFormat format)
165
public static TypeHandle GetExactOwningType(IRuntimeTypeSystem runtimeTypeSystem, TypeHandle possiblyDerivedType,
MethodDescHandle
method)