3 instantiations of MethodDescHandle
Microsoft.Diagnostics.DataContractReader.Contracts (3)
Contracts\RuntimeTypeSystem_1.cs (3)
1285
return new
MethodDescHandle
(methodDescPointer);
1307
return new
MethodDescHandle
(methodDescPointer);
1642
TargetPointer mtAddr = GetMethodTable(new
MethodDescHandle
(md.Address));
134 references to MethodDescHandle
Microsoft.Diagnostics.DataContractReader.Abstractions (27)
Contracts\IRuntimeTypeSystem.cs (27)
196
MethodDescHandle
GetMethodDescHandle(TargetPointer targetPointer) => throw new NotImplementedException();
197
TargetPointer GetMethodTable(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
200
bool IsGenericMethodDefinition(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
201
ReadOnlySpan<TypeHandle> GetGenericMethodInstantiation(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
203
GenericContextLoc GetGenericContextLoc(
MethodDescHandle
methodDescHandle) => throw new NotImplementedException();
207
bool IsAsyncMethod(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
210
uint GetMethodToken(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
214
bool IsArrayMethod(
MethodDescHandle
methodDesc, out ArrayFunctionType functionType) => throw new NotImplementedException();
220
bool IsNoMetadataMethod(
MethodDescHandle
methodDesc, out string methodName) => throw new NotImplementedException();
222
bool IsStoredSigMethodDesc(
MethodDescHandle
methodDesc, out ReadOnlySpan<byte> signature) => throw new NotImplementedException();
226
bool IsDynamicMethod(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
229
bool IsIL(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
233
bool IsILStub(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
236
bool HasMDContextArg(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
238
bool IsCollectibleMethod(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
239
bool IsVersionable(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
241
TargetPointer GetMethodDescVersioningState(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
243
TargetCodePointer GetNativeCode(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
244
TargetCodePointer GetMethodEntryPointIfExists(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
246
ushort GetSlotNumber(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
248
bool HasNativeCodeSlot(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
250
TargetPointer GetAddressOfNativeCodeSlot(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
252
TargetPointer GetGCStressCodeCopy(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
254
OptimizationTier GetMethodDescOptimizationTier(
MethodDescHandle
methodDescHandle) => throw new NotImplementedException();
255
bool IsEligibleForTieredCompilation(
MethodDescHandle
methodDescHandle) => throw new NotImplementedException();
257
bool IsAsyncThunkMethod(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
259
bool IsWrapperStub(
MethodDescHandle
methodDesc) => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (53)
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);
434
MethodDescHandle
methodDescHandle = rtsContract.GetMethodDescHandle(codeVersionHandle.MethodDescAddress);
Contracts\ExecutionManager\ExecutionManagerCore.cs (1)
517
MethodDescHandle
mdHandle = rts.GetMethodDescHandle(methodDescPtr);
Contracts\RuntimeTypeSystem_1.cs (34)
1277
public
MethodDescHandle
GetMethodDescHandle(TargetPointer methodDescPointer)
1280
private
MethodDescHandle
GetMethodDescHandle(TargetPointer methodDescPointer, bool validate)
1310
public TargetPointer GetMethodTable(
MethodDescHandle
methodDescHandle) => _methodDescs[methodDescHandle.Address].MethodTable;
1332
public bool IsGenericMethodDefinition(
MethodDescHandle
methodDescHandle)
1341
public ReadOnlySpan<TypeHandle> GetGenericMethodInstantiation(
MethodDescHandle
methodDescHandle)
1369
public GenericContextLoc GetGenericContextLoc(
MethodDescHandle
methodDescHandle)
1420
public bool IsAsyncMethod(
MethodDescHandle
methodDescHandle)
1433
public uint GetMethodToken(
MethodDescHandle
methodDescHandle)
1439
public bool IsArrayMethod(
MethodDescHandle
methodDescHandle, out ArrayFunctionType functionType)
1473
public bool IsNoMetadataMethod(
MethodDescHandle
methodDescHandle, out string methodName)
1487
public bool IsStoredSigMethodDesc(
MethodDescHandle
methodDescHandle, out ReadOnlySpan<byte> signature)
1507
public bool IsDynamicMethod(
MethodDescHandle
methodDescHandle)
1519
public bool IsIL(
MethodDescHandle
methodDescHandle)
1525
public bool IsILStub(
MethodDescHandle
methodDescHandle)
1536
public bool HasMDContextArg(
MethodDescHandle
methodDescHandle)
1648
bool IRuntimeTypeSystem.IsCollectibleMethod(
MethodDescHandle
methodDesc)
1656
bool IRuntimeTypeSystem.IsVersionable(
MethodDescHandle
methodDesc)
1673
TargetPointer IRuntimeTypeSystem.GetMethodDescVersioningState(
MethodDescHandle
methodDesc)
1684
uint IRuntimeTypeSystem.GetMethodToken(
MethodDescHandle
methodDescHandle)
1690
ushort IRuntimeTypeSystem.GetSlotNumber(
MethodDescHandle
methodDesc)
1695
bool IRuntimeTypeSystem.HasNativeCodeSlot(
MethodDescHandle
methodDesc)
1702
private IEnumerable<
MethodDescHandle
> GetIntroducedMethods(TypeHandle typeHandle)
1718
MethodDescHandle
methodDescHandle = GetMethodDescHandle(methodDescPtr, validate: false);
1734
foreach (
MethodDescHandle
mdh in GetIntroducedMethods(canonMT))
1755
foreach (
MethodDescHandle
mdh in GetIntroducedMethods(canonMT))
1789
foreach (
MethodDescHandle
mdh in GetIntroducedMethods(lookupMT))
1837
TargetPointer IRuntimeTypeSystem.GetAddressOfNativeCodeSlot(
MethodDescHandle
methodDesc)
1843
TargetCodePointer IRuntimeTypeSystem.GetNativeCode(
MethodDescHandle
methodDescHandle)
1863
TargetCodePointer IRuntimeTypeSystem.GetMethodEntryPointIfExists(
MethodDescHandle
methodDescHandle)
1892
TargetPointer IRuntimeTypeSystem.GetGCStressCodeCopy(
MethodDescHandle
methodDesc)
1917
OptimizationTier IRuntimeTypeSystem.GetMethodDescOptimizationTier(
MethodDescHandle
methodDescHandle)
1928
bool IRuntimeTypeSystem.IsEligibleForTieredCompilation(
MethodDescHandle
methodDescHandle)
1934
public bool IsAsyncThunkMethod(
MethodDescHandle
methodDescHandle)
1946
public bool IsWrapperStub(
MethodDescHandle
methodDescHandle)
Contracts\Signature\SignatureTypeProvider.cs (3)
42
if (typeof(T) == typeof(
MethodDescHandle
))
44
MethodDescHandle
methodContext = (
MethodDescHandle
)(object)context!;
Contracts\StackWalk\GC\GcScanner.cs (1)
330
MethodDescHandle
mdh = rts.GetMethodDescHandle(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)
868
MethodDescHandle
returnMethodDesc = rts.GetMethodDescHandle(_eman.GetMethodDesc(cbh));
Microsoft.Diagnostics.DataContractReader.Legacy (54)
ClrDataFrame.cs (14)
193
GetMethodInfo(out
MethodDescHandle
mdh, out MetadataReader mdReader, out MethodDefinition methodDef, out Contracts.ModuleHandle moduleHandle, out _);
250
GetMethodInfo(out
MethodDescHandle
mdh, out _, out _, out Contracts.ModuleHandle moduleHandle, out _);
296
GetMethodInfo(out
MethodDescHandle
mdh, out MetadataReader mdReader, out MethodDefinition methodDef, out Contracts.ModuleHandle moduleHandle, out _);
360
MethodDescHandle
mdh = rts.GetMethodDescHandle(methodDesc);
405
private void GetMethodInfo(out
MethodDescHandle
mdh, out MetadataReader mdReader, out MethodDefinition methodDef, out Contracts.ModuleHandle moduleHandle, out uint token)
456
MethodDescHandle
mdh,
517
private BlobReader? GetLocalSignatureReader(
MethodDescHandle
mdh, Contracts.ModuleHandle moduleHandle, out MetadataReader mdReader)
556
private uint GetLocalVariableCount(
MethodDescHandle
mdh, Contracts.ModuleHandle moduleHandle)
576
MethodDescHandle
mdh, Contracts.ModuleHandle moduleHandle)
582
SignatureDecoder<(uint Flags, int Size),
MethodDescHandle
> decoder = new(provider, mdReader, mdh);
663
private sealed class FlagSignatureTypeProvider : ISignatureTypeProvider<(uint Flags, int Size),
MethodDescHandle
>
741
public (uint Flags, int Size) GetTypeFromSpecification(MetadataReader reader,
MethodDescHandle
genericContext, TypeSpecificationHandle handle, byte rawTypeKind)
746
public (uint Flags, int Size) GetGenericMethodParameter(
MethodDescHandle
mdh, int index)
757
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 (2)
1203
Contracts.
MethodDescHandle
md = rts.GetMethodDescHandle(new TargetPointer(vmMethodDesc));
2503
Contracts.
MethodDescHandle
md = rts.GetMethodDescHandle(new TargetPointer(vmMethod));
SOSDacImpl.cs (8)
2282
Contracts.
MethodDescHandle
methodDescHandle = rtsContract.GetMethodDescHandle(methodDesc);
2619
Contracts.
MethodDescHandle
methodDescHandle = rtsContract.GetMethodDescHandle(methodDesc);
3045
MethodDescHandle
mdHandle = rts.GetMethodDescHandle(mdAddr);
5317
MethodDescHandle
methodDescHandle = runtimeTypeSystemContract.GetMethodDescHandle(methodDescPtr);
5587
MethodDescHandle
mdh = rts.GetMethodDescHandle(methodDescPtr);
5653
MethodDescHandle
mdh = rts.GetMethodDescHandle(md);
6901
MethodDescHandle
mdh = _rts.GetMethodDescHandle(mdAddr);
6921
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();
281
MethodDescHandle
mainMD = _rts.GetMethodDescHandle(_mainMethodDesc);
292
private IEnumerable<
MethodDescHandle
> IterateMethodInstantiations(Contracts.ModuleHandle moduleHandle)
325
private IEnumerable<
MethodDescHandle
> IterateMethodInstances()
335
MethodDescHandle
mainMD = _rts.GetMethodDescHandle(_mainMethodDesc);
361
foreach (
MethodDescHandle
methodDesc in IterateMethodInstantiations(moduleHandle))
404
MethodDescHandle
methodDesc = _rts.GetMethodDescHandle(methodDescAddr);
419
private bool HasClassOrMethodInstantiation(
MethodDescHandle
md)
424
private bool HasClassInstantiation(
MethodDescHandle
md)
433
private bool HasMethodInstantiation(
MethodDescHandle
md)
477
*handle = (ulong)((IEnum<
MethodDescHandle
>)emi).GetHandle();
533
MethodDescHandle
methodDesc = emi.Enumerator.Current;
664
MethodDescHandle
methodDesc = rts.GetMethodDescHandle(jit.MethodDescAddress);
725
MethodDescHandle
methodDesc = rts.GetMethodDescHandle(exceptionCatcherEnter.MethodDescAddress);
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)