1 implementation of ITypeHandle
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Contracts\RuntimeTypeSystem\TypeHandleImplementations.cs (1)
10internal sealed class TargetTypeHandle : ITypeHandle
521 references to ITypeHandle
Microsoft.Diagnostics.DataContractReader.Abstractions (72)
Contracts\IManagedTypeSource.cs (2)
20bool TryGetTypeHandle(string fullyQualifiedName, [NotNullWhen(true)] out ITypeHandle? typeHandle) => throw new NotImplementedException(); 21ITypeHandle GetTypeHandle(string fullyQualifiedName) => throw new NotImplementedException();
Contracts\IRuntimeMutableTypeSystem.cs (1)
12IEnumerable<TargetPointer> EnumerateAddedFieldDescs(ITypeHandle typeHandle, bool staticFields) => throw new NotImplementedException();
Contracts\IRuntimeTypeSystem.cs (67)
153ITypeHandle GetTypeHandle(TargetPointer address) => throw new NotImplementedException(); 154TargetPointer GetModule(ITypeHandle typeHandle) => throw new NotImplementedException(); 155TargetPointer GetLoaderModule(ITypeHandle typeHandle) => throw new NotImplementedException(); 159TargetPointer GetCanonicalMethodTable(ITypeHandle typeHandle) => throw new NotImplementedException(); 161bool IsCanonicalMethodTable(ITypeHandle typeHandle) => throw new NotImplementedException(); 162TargetPointer GetParentMethodTable(ITypeHandle typeHandle) => throw new NotImplementedException(); 164TargetPointer GetMethodDescForSlot(ITypeHandle methodTable, ushort slot) => throw new NotImplementedException(); 165IEnumerable<TargetPointer> GetIntroducedMethodDescs(ITypeHandle methodTable) => throw new NotImplementedException(); 166TargetCodePointer GetSlot(ITypeHandle typeHandle, uint slot) => throw new NotImplementedException(); 168uint GetBaseSize(ITypeHandle typeHandle) => throw new NotImplementedException(); 169uint GetNumInstanceFieldBytes(ITypeHandle typeHandle) => throw new NotImplementedException(); 171uint GetComponentSize(ITypeHandle typeHandle) => throw new NotImplementedException(); 174bool IsFreeObjectMethodTable(ITypeHandle typeHandle) => throw new NotImplementedException(); 176bool IsObject(ITypeHandle typeHandle) => throw new NotImplementedException(); 177bool IsString(ITypeHandle typeHandle) => throw new NotImplementedException(); 184bool ContainsGCPointers(ITypeHandle typeHandle) => throw new NotImplementedException(); 186bool IsByRefLike(ITypeHandle typeHandle) => throw new NotImplementedException(); 190bool IsInlineArray(ITypeHandle typeHandle) => throw new NotImplementedException(); 195bool TryGetHFAElementSize(ITypeHandle typeHandle, out int elementSize) => throw new NotImplementedException(); 197bool RequiresAlign8(ITypeHandle typeHandle) => throw new NotImplementedException(); 200int GetClassAlignmentRequirement(ITypeHandle typeHandle) => throw new NotImplementedException(); 205bool TryGetSystemVAmd64EightByteClassification(ITypeHandle typeHandle, out SystemVAmd64EightByteClassification classification) => throw new NotImplementedException(); 207bool IsContinuationWithoutMetadata(ITypeHandle typeHandle) => throw new NotImplementedException(); 213IEnumerable<(uint Offset, uint Size)> GetGCDescSeries(ITypeHandle typeHandle, uint numComponents = 0) => throw new NotImplementedException(); 214bool IsDynamicStatics(ITypeHandle typeHandle) => throw new NotImplementedException(); 215ushort GetNumInterfaces(ITypeHandle typeHandle) => throw new NotImplementedException(); 218uint GetTypeDefToken(ITypeHandle typeHandle) => throw new NotImplementedException(); 219ushort GetNumVtableSlots(ITypeHandle typeHandle) => throw new NotImplementedException(); 220ushort GetNumMethods(ITypeHandle typeHandle) => throw new NotImplementedException(); 223uint GetTypeDefTypeAttributes(ITypeHandle typeHandle) => throw new NotImplementedException(); 224ushort GetNumInstanceFields(ITypeHandle typeHandle) => throw new NotImplementedException(); 225ushort GetNumStaticFields(ITypeHandle typeHandle) => throw new NotImplementedException(); 226ushort GetNumThreadStaticFields(ITypeHandle typeHandle) => throw new NotImplementedException(); 227IEnumerable<TargetPointer> GetFieldDescList(ITypeHandle typeHandle) => throw new NotImplementedException(); 229bool IsTrackedReferenceWithFinalizer(ITypeHandle typeHandle) => throw new NotImplementedException(); 230TargetPointer GetGCStaticsBasePointer(ITypeHandle typeHandle) => throw new NotImplementedException(); 231TargetPointer GetNonGCStaticsBasePointer(ITypeHandle typeHandle) => throw new NotImplementedException(); 232TargetPointer GetGCThreadStaticsBasePointer(ITypeHandle typeHandle, TargetPointer threadPtr) => throw new NotImplementedException(); 233TargetPointer GetNonGCThreadStaticsBasePointer(ITypeHandle typeHandle, TargetPointer threadPtr) => throw new NotImplementedException(); 236ReadOnlySpan<ITypeHandle> GetInstantiation(ITypeHandle typeHandle) => throw new NotImplementedException(); 237public bool IsClassInited(ITypeHandle typeHandle) => throw new NotImplementedException(); 238public bool IsInitError(ITypeHandle typeHandle) => throw new NotImplementedException(); 239bool IsGenericTypeDefinition(ITypeHandle typeHandle) => throw new NotImplementedException(); 240bool ContainsGenericVariables(ITypeHandle typeHandle) => throw new NotImplementedException(); 241bool IsCollectible(ITypeHandle typeHandle) => throw new NotImplementedException(); 243bool HasTypeParam(ITypeHandle typeHandle) => throw new NotImplementedException(); 248CorElementType GetSignatureCorElementType(ITypeHandle typeHandle) => throw new NotImplementedException(); 249bool IsValueType(ITypeHandle typeHandle) => throw new NotImplementedException(); 254CorElementType GetInternalCorElementType(ITypeHandle typeHandle) => throw new NotImplementedException(); 257bool IsEnum(ITypeHandle typeHandle) => throw new NotImplementedException(); 260bool IsDelegate(ITypeHandle typeHandle) => throw new NotImplementedException(); 263bool IsArray(ITypeHandle typeHandle, out uint rank) => throw new NotImplementedException(); 264ITypeHandle GetTypeParam(ITypeHandle typeHandle) => throw new NotImplementedException(); 265ITypeHandle? GetConstructedType(ITypeHandle? typeHandle, CorElementType corElementType, int rank, ImmutableArray<ITypeHandle?> typeArguments, SignatureCallingConvention callConv = SignatureCallingConvention.Default) => throw new NotImplementedException(); 266ITypeHandle GetPrimitiveType(CorElementType typeCode) => throw new NotImplementedException(); 267bool IsGenericVariable(ITypeHandle typeHandle, out TargetPointer module, out uint token, out uint index) => throw new NotImplementedException(); 268bool IsFunctionPointer(ITypeHandle typeHandle, out ReadOnlySpan<ITypeHandle> retAndArgTypes, out SignatureCallingConvention callConv) => throw new NotImplementedException(); 269bool IsPointer(ITypeHandle typeHandle) => throw new NotImplementedException(); 270bool IsTypeDesc(ITypeHandle typeHandle) => throw new NotImplementedException(); 280ReadOnlySpan<ITypeHandle> GetGenericMethodInstantiation(MethodDescHandle methodDesc) => throw new NotImplementedException(); 359ITypeHandle? GetFieldDescApproxTypeHandle(TargetPointer fieldDescPointer) => throw new NotImplementedException(); 361TargetPointer GetFieldDescByName(ITypeHandle typeHandle, string fieldName) => throw new NotImplementedException();
Contracts\ISignature.cs (2)
12ITypeHandle? DecodeFieldSignature(BlobHandle blobHandle, ModuleHandle moduleHandle, ITypeHandle? ctx) => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (230)
Contracts\ByRefPointerOffsetsReporter.cs (4)
24public IEnumerable<ulong> Find(ITypeHandle typeHandle) 57ITypeHandle? fieldTypeHandle = _rts.GetFieldDescApproxTypeHandle(fieldDesc); 73private IEnumerable<ulong> FindCore(ITypeHandle typeHandle, ulong baseOffset, int depth) 92ITypeHandle? fieldTypeHandle = fieldType == CorElementType.ValueType
Contracts\CallingConvention\CallingConvention_1.cs (7)
60ITypeHandle owningTypeHandle = rts.GetTypeHandle(rts.GetMethodTable(methodDesc)); 87ITypeHandle enclosingType = rts.GetTypeHandle(rts.GetMTOfEnclosingClass(fieldDesc)); 114private ModuleHandle GetModuleHandle(ITypeHandle typeHandle) 197ITypeHandle owningType = rts.GetTypeHandle(methodTablePtr); 287ITypeHandle? probe = typeInfo.ExactTypeHandle ?? typeInfo.GenericTypeDefinition; 458ITypeHandle layoutType = 468if (arg.TypeInfo.ExactTypeHandle is ITypeHandle typeHandle && rts.ContainsGCPointers(typeHandle))
Contracts\CallingConvention\CdacTypeHandle.cs (3)
10using CdacITypeHandle = Microsoft.Diagnostics.DataContractReader.Contracts.ITypeHandle; 26public CdacTypeHandle(CdacITypeHandle? typeHandle, Target target, CallingConvention_1 callingConvention) 45private CdacITypeHandle? ExactTypeHandle => _typeInfo.ExactTypeHandle;
Contracts\CallingConvention\SignatureTypeInfo.cs (4)
13ITypeHandle? exactTypeHandle, 14ITypeHandle? genericTypeDefinition = null, 24public ITypeHandle? ExactTypeHandle { get; } 25public ITypeHandle? GenericTypeDefinition { get; }
Contracts\CallingConvention\SignatureTypeInfoProvider.cs (9)
47ITypeHandle? exactType = null; 50ImmutableArray<ITypeHandle?> exactArguments = typeArguments 74ITypeHandle exactType = _rts.GetGenericMethodInstantiation(method)[index]; 85if (context.OwningType.ExactTypeHandle is ITypeHandle exactOwningType) 87ITypeHandle exactType = _rts.GetInstantiation(exactOwningType)[index]; 156internal SignatureTypeInfo FromExactType(ITypeHandle exactType) 158ReadOnlySpan<ITypeHandle> exactArguments = _rts.GetInstantiation(exactType); 178ITypeHandle? exactType = elementType.ExactTypeHandle is null 191ITypeHandle? exactType = typeHandlePointer == TargetPointer.Null
Contracts\CodeVersions_1.cs (1)
345ITypeHandle typeHandle = rts.GetTypeHandle(mtAddr);
Contracts\ConditionalWeakTable_1.cs (1)
37ITypeHandle entriesTypeHandle = _target.Contracts.RuntimeTypeSystem.GetTypeHandle(entriesMT);
Contracts\Exception_1.cs (1)
67ITypeHandle stackTraceHandle = rtsContract.GetTypeHandle(mt);
Contracts\ExecutionManager\ExecutionManagerCore.cs (1)
826ITypeHandle th = rts.GetTypeHandle(mtPtr);
Contracts\ExternalMemoryHandles_1.cs (2)
38ITypeHandle typeHandle = _rts.GetTypeHandle(handle.TypeHandle); 62ITypeHandle typeHandle,
Contracts\ManagedTypeSource_1.cs (10)
17private readonly Dictionary<string, ITypeHandle?> _typeHandleCache = new(); 88public ITypeHandle GetTypeHandle(string fullyQualifiedName) 90if (!TryGetTypeHandle(fullyQualifiedName, out ITypeHandle? typeHandle)) 96public bool TryGetTypeHandle(string fullyQualifiedName, [NotNullWhen(true)] out ITypeHandle? typeHandle) 98if (_typeHandleCache.TryGetValue(fullyQualifiedName, out ITypeHandle? cached)) 139ITypeHandle ctx = rts.GetTypeHandle(enclosingMT); 174ITypeHandle ctx = rts.GetTypeHandle(enclosingMT); 193if (!TryResolveType(fullyQualifiedName, out ITypeHandle? th, out _, out _)) 209if (!TryResolveType(managedFqName, out ITypeHandle? th, out MetadataReader? mdReader, out TypeDefinition typeDef)) 254private bool TryResolveType(string managedFqName, [NotNullWhen(true)] out ITypeHandle? th, [NotNullWhen(true)] out MetadataReader? mdReader, out TypeDefinition typeDef)
Contracts\Object_1.cs (2)
83ITypeHandle typeHandle = typeSystemContract.GetTypeHandle(mt); 240ITypeHandle typeHandle = typeSystemContract.GetTypeHandle(mt);
Contracts\RuntimeMutableTypeSystem_1.cs (1)
29IEnumerable<TargetPointer> IRuntimeMutableTypeSystem.EnumerateAddedFieldDescs(ITypeHandle typeHandle, bool staticFields)
Contracts\RuntimeTypeSystem_1.cs (133)
35private readonly Dictionary<TypeKey, ITypeHandle> _typeHandles = new(); 97public TypeKey(ITypeHandle? typeHandle, CorElementType elementType, int rank, ImmutableArray<ITypeHandle?> typeArgs, SignatureCallingConvention callConv = SignatureCallingConvention.Default) 105public ITypeHandle? TypeHandle { get; } 108public ImmutableArray<ITypeHandle?> TypeArgs { get; } 129foreach (ITypeHandle? th in TypeArgs) 381Instantiation = System.Array.Empty<ITypeHandle>(); 385Instantiation = new ITypeHandle[numGenericArgs]; 398public ITypeHandle[] Instantiation { get; } 466public ITypeHandle GetTypeHandle(TargetPointer typeHandlePointer) 519public TargetPointer GetModule(ITypeHandle typeHandle) 546public TargetPointer GetCanonicalMethodTable(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? TargetPointer.Null : GetClassData(typeHandle).MethodTable; 547public bool IsCanonicalMethodTable(ITypeHandle typeHandle) => typeHandle.IsMethodTable() && _methodTables[typeHandle.Address].IsCanonMT; 548public TargetPointer GetParentMethodTable(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? TargetPointer.Null : _methodTables[typeHandle.Address].ParentMethodTable; 550public uint GetBaseSize(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : _methodTables[typeHandle.Address].Flags.BaseSize; 552public uint GetNumInstanceFieldBytes(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : _methodTables[typeHandle.Address].Flags.BaseSize - GetClassData(typeHandle).BaseSizePadding; 554public uint GetComponentSize(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : _methodTables[typeHandle.Address].Flags.ComponentSize; 556private TargetPointer GetClassPointer(ITypeHandle typeHandle) 567ITypeHandle canonMTHandle = GetTypeHandle(canonMTPtr); 575public bool TryGetSystemVAmd64EightByteClassification(ITypeHandle typeHandle, out SystemVAmd64EightByteClassification classification) 607private Data.EEClass GetClassData(ITypeHandle typeHandle) 614public bool IsFreeObjectMethodTable(ITypeHandle typeHandle) => FreeObjectMethodTablePointer == typeHandle.Address; 616public bool IsObject(ITypeHandle typeHandle) => ObjectMethodTablePointer != TargetPointer.Null && ObjectMethodTablePointer == typeHandle.Address; 618public bool IsString(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsString; 647public bool ContainsGCPointers(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.ContainsGCPointers; 648public bool IsByRefLike(ITypeHandle typeHandle) => typeHandle.IsMethodTable() && _methodTables[typeHandle.Address].Flags.IsByRefLike; 649public bool IsInlineArray(ITypeHandle typeHandle) => typeHandle.IsMethodTable() && GetClassData(typeHandle).IsInlineArray; 657public bool TryGetHFAElementSize(ITypeHandle typeHandle, out int elementSize) 676ITypeHandle current = typeHandle; 708ITypeHandle? next = ((IRuntimeTypeSystem)this).GetFieldDescApproxTypeHandle(firstField); 723private int GetVectorHFAElementSize(ITypeHandle typeHandle) 777ReadOnlySpan<ITypeHandle> instantiation = ((IRuntimeTypeSystem)this).GetInstantiation(typeHandle); 798public bool RequiresAlign8(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.RequiresAlign8; 802public int GetClassAlignmentRequirement(ITypeHandle typeHandle) 834public bool IsContinuationWithoutMetadata(ITypeHandle typeHandle) => typeHandle.IsMethodTable() 840IEnumerable<(uint Offset, uint Size)> IRuntimeTypeSystem.GetGCDescSeries(ITypeHandle typeHandle, uint numComponents) 914public bool IsDynamicStatics(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsDynamicStatics; 915public ushort GetNumInterfaces(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : _methodTables[typeHandle.Address].NumInterfaces; 917public uint GetTypeDefToken(ITypeHandle typeHandle) 924public ushort GetNumVtableSlots(ITypeHandle typeHandle) 932public ushort GetNumMethods(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumMethods; 933public uint GetTypeDefTypeAttributes(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : GetClassData(typeHandle).CorTypeAttr; 934public ushort GetNumInstanceFields(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumInstanceFields; 935public ushort GetNumStaticFields(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumStaticFields; 936public ushort GetNumThreadStaticFields(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumThreadStaticFields; 937public IEnumerable<TargetPointer> GetFieldDescList(ITypeHandle typeHandle) 951private (TargetPointer ListStart, uint FieldDescSize, int TotalFields) GetFieldDescListLayout(ITypeHandle typeHandle) 960ITypeHandle parentHandle = GetTypeHandle(parentMT); 966public bool IsTrackedReferenceWithFinalizer(ITypeHandle typeHandle) => typeHandle.IsMethodTable() && _methodTables[typeHandle.Address].Flags.IsTrackedReferenceWithFinalizer; 967private TargetPointer GetDynamicStaticsInfo(ITypeHandle typeHandle) 980private Data.ThreadStaticsInfo GetThreadStaticsInfo(ITypeHandle typeHandle) 989public TargetPointer GetGCThreadStaticsBasePointer(ITypeHandle typeHandle, TargetPointer threadPtr) 998public TargetPointer GetNonGCThreadStaticsBasePointer(ITypeHandle typeHandle, TargetPointer threadPtr) 1007public TargetPointer GetGCStaticsBasePointer(ITypeHandle typeHandle) 1016public TargetPointer GetNonGCStaticsBasePointer(ITypeHandle typeHandle) 1025public ReadOnlySpan<ITypeHandle> GetInstantiation(ITypeHandle typeHandle) 1037public bool IsClassInited(ITypeHandle typeHandle) 1046public bool IsInitError(ITypeHandle typeHandle) 1059public ITypeHandle[] TypeHandles { get; } 1075TypeHandles = new ITypeHandle[numberOfGenericArgs]; 1083public bool IsGenericTypeDefinition(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsGenericTypeDefinition; 1084public bool ContainsGenericVariables(ITypeHandle typeHandle) 1099_ = IsFunctionPointer(typeHandle, out ReadOnlySpan<ITypeHandle> signatureTypeArgs, out _); 1100foreach (ITypeHandle sigTypeArg in signatureTypeArgs) 1112public bool IsCollectible(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsCollectible; 1113public bool HasTypeParam(ITypeHandle typeHandle) 1135public CorElementType GetSignatureCorElementType(ITypeHandle typeHandle) 1166public CorElementType GetInternalCorElementType(ITypeHandle typeHandle) 1179public bool IsValueType(ITypeHandle typeHandle) 1195public bool IsEnum(ITypeHandle typeHandle) 1207public bool IsDelegate(ITypeHandle typeHandle) 1217public bool IsArray(ITypeHandle typeHandle, out uint rank) 1242public ITypeHandle GetTypeParam(ITypeHandle typeHandle) 1268private ITypeHandle GetRootTypeParam(ITypeHandle typeHandle) 1270ITypeHandle current = typeHandle; 1278private bool GenericInstantiationMatch(ITypeHandle genericType, ITypeHandle potentialMatch, ImmutableArray<ITypeHandle?> typeArguments) 1280ReadOnlySpan<ITypeHandle> instantiation = GetInstantiation(potentialMatch); 1292if (typeArguments[i] is not ITypeHandle typeArgument || instantiation[i].Address != typeArgument.Address) 1298private bool ArrayPtrMatch(ITypeHandle elementType, CorElementType corElementType, int rank, ITypeHandle potentialMatch) 1308private bool FnPtrMatch(ITypeHandle candidate, ImmutableArray<ITypeHandle?> retAndArgTypes, SignatureCallingConvention callConv) 1310if (!IsFunctionPointer(candidate, out ReadOnlySpan<ITypeHandle> candidateRetAndArgs, out SignatureCallingConvention candidateCallConv)) 1318if (retAndArgTypes[i] is not ITypeHandle retOrArgType || candidateRetAndArgs[i].Address != retOrArgType.Address) 1324private bool IsLoaded(ITypeHandle typeHandle) 1339private uint GetConstructedTypeHash(ITypeHandle? typeHandle, CorElementType elementType, ImmutableArray<ITypeHandle?> typeArguments, SignatureCallingConvention callConv) 1347foreach (ITypeHandle? argument in typeArguments) 1358foreach (ITypeHandle? argument in typeArguments) 1375ITypeHandle? IRuntimeTypeSystem.GetConstructedType(ITypeHandle? typeHandle, CorElementType corElementType, int rank, ImmutableArray<ITypeHandle?> typeArguments, SignatureCallingConvention callConv) 1379foreach (ITypeHandle? typeArgument in typeArguments) 1384if (_typeHandles.TryGetValue(new TypeKey(typeHandle, corElementType, rank, typeArguments, callConv), out ITypeHandle? existing) && existing is not null) 1396ITypeHandle potentialMatch; 1427private TargetPointer ComputeLoaderModule(TargetPointer definitionModule, ImmutableArray<ITypeHandle?> inst) 1442foreach (ITypeHandle? nullableArg in inst) 1444ITypeHandle arg = nullableArg!; 1498ITypeHandle IRuntimeTypeSystem.GetPrimitiveType(CorElementType typeCode) 1506public bool IsGenericVariable(ITypeHandle typeHandle, out TargetPointer module, out uint token, out uint index) 1530public bool IsFunctionPointer(ITypeHandle typeHandle, out ReadOnlySpan<ITypeHandle> retAndArgTypes, out SignatureCallingConvention callConv) 1549public bool IsPointer(ITypeHandle typeHandle) 1559public bool IsTypeDesc(ITypeHandle typeHandle) => typeHandle.IsTypeDesc(); 1567public TargetPointer GetLoaderModule(ITypeHandle typeHandle) 1597public ITypeHandle[] TypeHandles { get; } 1606TypeHandles = new ITypeHandle[numberOfRetAndArgTypes]; 1678public ReadOnlySpan<ITypeHandle> GetGenericMethodInstantiation(MethodDescHandle methodDescHandle) 1994private TargetPointer GetAddressOfSlot(ITypeHandle typeHandle, uint slotNum) 2055ITypeHandle mt = GetTypeHandle(mtAddr); 2115private IEnumerable<MethodDescHandle> GetIntroducedMethods(ITypeHandle typeHandle) 2144ITypeHandle methodTable = GetTypeHandle(methodDesc.MethodTable); 2145ITypeHandle canonicalMethodTable = GetTypeHandle(GetCanonicalMethodTable(methodTable)); 2168IEnumerable<TargetPointer> IRuntimeTypeSystem.GetIntroducedMethodDescs(ITypeHandle typeHandle) 2173ITypeHandle canonMT = GetTypeHandle(GetCanonicalMethodTable(typeHandle)); 2182TargetPointer IRuntimeTypeSystem.GetMethodDescForSlot(ITypeHandle typeHandle, ushort slot) 2188ITypeHandle canonMT = GetTypeHandle(GetCanonicalMethodTable(typeHandle)); 2207private TargetPointer GetMethodDescForVtableSlot(ITypeHandle typeHandle, ushort slot) 2215ITypeHandle canonMT = GetTypeHandle(cannonMTPTr); 2228ITypeHandle lookupMT = GetTypeHandle(lookupMTPtr); 2247TargetCodePointer IRuntimeTypeSystem.GetSlot(ITypeHandle typeHandle, uint slot) 2309ITypeHandle typeHandle = GetTypeHandle(methodTablePointer); 2421ITypeHandle typeHandle = GetTypeHandle(methodTablePointer); 2429ITypeHandle typeHandle = GetTypeHandle(methodTablePointer); 2485ITypeHandle? IRuntimeTypeSystem.GetFieldDescApproxTypeHandle(TargetPointer fieldDescPointer) 2492ITypeHandle enclosingType = GetTypeHandle(enclosingMT); 2532TargetPointer IRuntimeTypeSystem.GetFieldDescByName(ITypeHandle typeHandle, string fieldName) 2593ITypeHandle ctx = GetTypeHandle(enclosingMT);
Contracts\Signature\Signature_1.cs (9)
21private readonly Dictionary<ModuleHandle, SignatureTypeProvider<ITypeHandle?>> _thProviders = []; 33private SignatureTypeProvider<ITypeHandle?> GetTypeHandleProvider(ModuleHandle moduleHandle) 35if (_thProviders.TryGetValue(moduleHandle, out SignatureTypeProvider<ITypeHandle?>? thProvider)) 40SignatureTypeProvider<ITypeHandle?> newProvider = new(_target, moduleHandle); 45ITypeHandle? ISignature.DecodeFieldSignature(BlobHandle blobHandle, ModuleHandle moduleHandle, ITypeHandle? ctx) 47SignatureTypeProvider<ITypeHandle?> provider = GetTypeHandleProvider(moduleHandle); 51RuntimeSignatureDecoder<ITypeHandle?, ITypeHandle?> decoder = new(provider, _target, mdReader, ctx);
Contracts\Signature\SignatureTypeProvider.cs (32)
13public class SignatureTypeProvider<T> : IRuntimeSignatureTypeProvider<ITypeHandle?, T> 28public ITypeHandle? GetArrayType(ITypeHandle? elementType, ArrayShape shape) 31public ITypeHandle? GetByReferenceType(ITypeHandle? elementType) 34public ITypeHandle? GetFunctionPointerType(MethodSignature<ITypeHandle?> signature) 37public ITypeHandle? GetGenericInstantiation(ITypeHandle? genericType, ImmutableArray<ITypeHandle?> typeArguments) 40public ITypeHandle? GetGenericMethodParameter(T context, int index) 49public ITypeHandle? GetGenericTypeParameter(T context, int index) 51if (typeof(T) == typeof(ITypeHandle)) 53ITypeHandle? typeContext = (ITypeHandle?)(object?)context; 61ITypeHandle declaringType = _runtimeTypeSystem.GetTypeHandle(_runtimeTypeSystem.GetMethodTable(methodContext)); 66public ITypeHandle? GetModifiedType(ITypeHandle? modifier, ITypeHandle? unmodifiedType, bool isRequired) 69public ITypeHandle? GetPinnedType(ITypeHandle? elementType) 72public ITypeHandle? GetPointerType(ITypeHandle? elementType) 75public ITypeHandle? GetPrimitiveType(PrimitiveTypeCode typeCode) 78public ITypeHandle? GetSZArrayType(ITypeHandle? elementType) 81public ITypeHandle? GetTypeFromDefinition(MetadataReader reader, TypeDefinitionHandle handle, byte rawTypeKind) 92public ITypeHandle? GetTypeFromReference(MetadataReader reader, TypeReferenceHandle handle, byte rawTypeKind) 103public ITypeHandle? GetTypeFromSpecification(MetadataReader reader, T context, TypeSpecificationHandle handle, byte rawTypeKind) 106public ITypeHandle? GetInternalType(TargetPointer typeHandlePointer) 111public ITypeHandle? GetInternalModifiedType(TargetPointer typeHandlePointer, ITypeHandle? unmodifiedType, bool isRequired)
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (1)
311ITypeHandle mtHandle = rtsContract.GetTypeHandle(stubDispatchFrame.RepresentativeMTPtr);
Contracts\StackWalk\FrameHandling\MethodGCRefMapLookup.cs (2)
199ITypeHandle owner = _rts.GetTypeHandle(_rts.GetMethodTable(method)); 200ITypeHandle implementationOwner = _rts.GetTypeHandle(_rts.GetMethodTable(implementation));
Contracts\StackWalk\GC\GCInteriorPointerResolver.cs (1)
79ITypeHandle handle = _rts.GetTypeHandle(mt);
Generated\361d1da7f942c932\Microsoft_Diagnostics_DataContractReader_Data.NativeObjectWrapper.g.cs (1)
15public static ITypeHandle TypeHandle(Target target)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TypeNameResolver.g.cs (2)
11public static ITypeHandle GetTypeHandle(Target target, string[] names) 15if (target.Contracts.ManagedTypeSource.TryGetTypeHandle(name, out ITypeHandle? th))
RuntimeTypeSystemHelpers\ExtensionMethods.cs (3)
10public static bool IsTypeDesc(this ITypeHandle type) 15public static bool IsMethodTable(this ITypeHandle type) 20public static TargetPointer TypeDescAddress(this ITypeHandle type)
Microsoft.Diagnostics.DataContractReader.Legacy (219)
ClrDataExceptionState.cs (1)
155ITypeHandle typeHandle = _target.Contracts.RuntimeTypeSystem.GetTypeHandle(
ClrDataFrame.cs (10)
469ITypeHandle typeHandle = rts.GetTypeHandle(mtAddr); 503ITypeHandle? typeHandle; 660private ITypeHandle? GetTypeHandleFromSignature( 670SignatureDecoder<ITypeHandle?, MethodDescHandle> decoder = new(provider, mdReader, mdh); 675MethodSignature<ITypeHandle?> methodSig = decoder.DecodeMethodSignature(ref sigReader); 685ImmutableArray<ITypeHandle?> localTypes = decoder.DecodeLocalSignature(ref localSigReader); 837ReadOnlySpan<ITypeHandle> methodInst = rts.GetGenericMethodInstantiation(mdh); 849ITypeHandle declaringType = rts.GetTypeHandle(mtAddr); 850ReadOnlySpan<ITypeHandle> typeInst = rts.GetInstantiation(declaringType); 856private static (uint Flags, int Size) ResolveGenericParam(IRuntimeTypeSystem rts, ITypeHandle resolvedType)
ClrDataMethodDefinition.cs (1)
97ITypeHandle mt = rts.GetTypeHandle(mtAddr);
ClrDataMethodInstance.cs (1)
118ITypeHandle mainMT = rts.GetTypeHandle(mtAddr);
ClrDataTypeDefinition.cs (2)
22private readonly ITypeHandle? _typeHandle; 29ITypeHandle? typeHandle,
ClrDataTypeInstance.cs (4)
17private readonly ITypeHandle _typeHandle; 20internal ITypeHandle TypeHandle => _typeHandle; 23public ClrDataTypeInstance(Target target, ITypeHandle typeHandle, IXCLRDataTypeInstance? legacyImpl, Lock apiLock) 208ITypeHandle? definitionType = null;
ClrDataValue.cs (16)
38private readonly ITypeHandle? _typeHandle; 47ITypeHandle? typeHandle, 508ITypeHandle? typeHandle = null; 589ITypeHandle arrayType = rts.GetTypeHandle(_target.Contracts.Object.GetMethodTableAddress(_baseAddress)); 649ITypeHandle arrayType = rts.GetTypeHandle(_target.Contracts.Object.GetMethodTableAddress(_baseAddress)); 653ITypeHandle elementType = rts.GetTypeParam(arrayType); 813(string fieldName, uint fieldToken, FieldDefinition fieldDefinition, ITypeHandle enclosingType) = GetFieldMetadata(entry.FieldDesc); 903ITypeHandle? typeHandle = !includeParents && fromType is ClrDataTypeInstance fromTypeInstance 912List<ITypeHandle> types = []; 913ITypeHandle current = typeHandle; 939private (string Name, uint Token, FieldDefinition Definition, ITypeHandle EnclosingType) GetFieldMetadata(TargetPointer fieldDesc) 942ITypeHandle enclosingType = rts.GetTypeHandle(rts.GetMTOfEnclosingClass(fieldDesc)); 954ITypeHandle enclosingType, 959ITypeHandle? fieldType = rts.GetFieldDescApproxTypeHandle(fieldDesc); 1012ITypeHandle? typeHandle, 1070private ulong GetTypeSize(ITypeHandle typeHandle)
Dbi\DacDbiImpl.cs (87)
315ITypeHandle typeHandle = rts.GetTypeHandle(methodTable); 2363ITypeHandle mt = rts.GetTypeHandle(mtAddr); 2531ITypeHandle typeHandle = rts.GetTypeHandle(mtPtr); 2787ITypeHandle th = rts.GetTypeHandle(new TargetPointer(thExact)); 3133ITypeHandle th = rts.GetTypeHandle(new TargetPointer(vmTypeHandle)); 3161ITypeHandle typeHandle = rts.GetTypeHandle(new TargetPointer(vmTypeHandle)); 3200ITypeHandle thExactHandle = rts.GetTypeHandle(thExact); 3202ITypeHandle thApprox = thExactHandle; 3254ITypeHandle? thExactHandle = vmThExact == 0 ? null : rts.GetTypeHandle(vmThExact); 3258ITypeHandle thApproxHandle = rts.GetTypeHandle(vmThApprox); 3289ITypeHandle? thExact, 3290ITypeHandle thApprox, 3362ITypeHandle enclosingTh = rts.GetTypeHandle(enclosingMT); 3463ITypeHandle th = rts.GetTypeHandle(new TargetPointer(vmTypeHandle)); 3493ITypeHandle th = rts.GetTypeHandle(mtAddr); 3618ITypeHandle canonTh = rts.GetTypeHandle(canonMtPtr); 3621ITypeHandle? th = walk.ReadLoadedTypeHandle(); 3654ITypeHandle? th = null; 3698private ITypeHandle BasicTypeInfoToTypeHandle(IRuntimeTypeSystem rts, DebuggerIPCE_BasicTypeData* pData) 3701ITypeHandle th; 3727private ITypeHandle GetClassOrValueTypeHandle(IRuntimeTypeSystem rts, DebuggerIPCE_BasicTypeData* pData) 3738private ITypeHandle GetExactArrayTypeHandle(IRuntimeTypeSystem rts, DebuggerIPCE_ExpandedTypeData* pTopLevel, ArgInfoList* pArgInfo) 3742ITypeHandle elementType = BasicTypeInfoToTypeHandle(rts, &pArgInfo->m_pList[0]); 3745return rts.GetConstructedType(elementType, et, rank, ImmutableArray<ITypeHandle?>.Empty) 3749private ITypeHandle GetExactPtrOrByRefTypeHandle(IRuntimeTypeSystem rts, DebuggerIPCE_ExpandedTypeData* pTopLevel, ArgInfoList* pArgInfo) 3753ITypeHandle referent = BasicTypeInfoToTypeHandle(rts, &pArgInfo->m_pList[0]); 3755return rts.GetConstructedType(referent, et, 0, ImmutableArray<ITypeHandle?>.Empty) 3759private ITypeHandle GetExactClassTypeHandle(IRuntimeTypeSystem rts, DebuggerIPCE_ExpandedTypeData* pTopLevel, ArgInfoList* pArgInfo) 3763ITypeHandle typeConstructor = LookupTypeDefOrRefInAssembly(vmAssembly, metadataToken); 3769ImmutableArray<ITypeHandle?>.Builder builder = ImmutableArray.CreateBuilder<ITypeHandle?>(argCount); 3777private ITypeHandle GetExactFnPtrTypeHandle(IRuntimeTypeSystem rts, ArgInfoList* pArgInfo) 3780ImmutableArray<ITypeHandle?>.Builder builder = ImmutableArray.CreateBuilder<ITypeHandle?>(argCount); 3811ITypeHandle thRepMt = rts.GetTypeHandle(rts.GetMethodTable(pRepMethod)); 3817ITypeHandle thSpecificClass = thRepMt; 3846ITypeHandle thFromThis = rts.GetTypeHandle(new TargetPointer(genericsToken)); 3847ITypeHandle? thMatch = GetMethodTableMatchingParentClass(rts, thFromThis, thRepMt); 3870ITypeHandle thSpecMethodMt = rts.GetTypeHandle(specMethodMtPtr); 3871ITypeHandle? thMatchingParent = GetMethodTableMatchingParentClass(rts, thSpecificClass, thSpecMethodMt); 3872ReadOnlySpan<ITypeHandle> classInst = thMatchingParent is null 3875ReadOnlySpan<ITypeHandle> methodInst = rts.GetGenericMethodInstantiation(pSpecificMethod); 3882ITypeHandle thCanon = rts.GetTypeHandle(canonMtPtr); 4104internal ITypeHandle LookupTypeDefOrRefInAssembly(ulong vmAssembly, uint metadataToken) 4106ITypeHandle? th = TryLookupTypeDefOrRefInAssembly(vmAssembly, metadataToken); 4112internal ITypeHandle? TryLookupTypeDefOrRefInAssembly(ulong vmAssembly, uint metadataToken) 4148ITypeHandle typeHandle = rts.GetTypeHandle(new TargetPointer(vmTypeHandle)); 4149ReadOnlySpan<ITypeHandle> instantiation = rts.GetInstantiation(typeHandle); 4226ITypeHandle typeHandle = rts.GetPrimitiveType((CorElementType)simpleType); 4278ITypeHandle typeHandle = rts.GetTypeHandle(parentMT); 4468ITypeHandle th = rts.GetTypeHandle(info.TypeHandle); 4507ITypeHandle th = rts.GetTypeHandle(mtAddr); 4547ITypeHandle th = rts.GetTypeHandle(mt); 4610ITypeHandle? th = null; 5513ITypeHandle typeHandle = rts.GetTypeHandle(new TargetPointer(id)); 5525ITypeHandle parentHandle = rts.GetTypeHandle(parentMT); 5566ITypeHandle enclosingTypeHandle = rts.GetTypeHandle(enclosingMT); 5581ITypeHandle? fieldTypeHandle = signature.DecodeFieldSignature(fieldDef.Signature, enclosingModuleHandle, enclosingTypeHandle); 5599ITypeHandle mtHandle = (signatureType == CorElementType.Ptr || signatureType == CorElementType.FnPtr) 5665ITypeHandle typeHandle = rts.GetTypeHandle(new TargetPointer((ulong)id)); 5674ITypeHandle parentHandle = rts.GetTypeHandle(parentMT); 5722ITypeHandle arrayOrStringTypeHandle = rts.GetTypeHandle(new TargetPointer(id)); 5727ITypeHandle charTypeHandle = rts.GetPrimitiveType(CorElementType.Char); 5743ITypeHandle componentTypeHandle = rts.GetTypeParam(arrayOrStringTypeHandle); 6261ITypeHandle typeHandle = rts.GetTypeHandle(mtPtr); 6327ITypeHandle typeHandle = rts.GetTypeHandle(mt); 7475private void FillExpandedTypeDataWithCanonFallback(IRuntimeTypeSystem rts, ITypeHandle typeHandle, ITypeHandle thCanon, DebuggerIPCE_ExpandedTypeData* pTypeInfo) 7489private static bool HasSameTypeDefAs(IRuntimeTypeSystem rts, ITypeHandle a, ITypeHandle b) 7503private static ITypeHandle? GetMethodTableMatchingParentClass(IRuntimeTypeSystem rts, ITypeHandle start, ITypeHandle parent) 7505ITypeHandle current = start; 7521private void TypeHandleToExpandedTypeInfoImpl(IRuntimeTypeSystem rts, AreValueTypesBoxed boxed, ITypeHandle typeHandle, DebuggerIPCE_ExpandedTypeData* pTypeInfo) 7568private static CorElementType GetElementType(IRuntimeTypeSystem rts, ITypeHandle? typeHandle) 7584private static ITypeHandle UpCastTypeIfNeeded(IRuntimeTypeSystem rts, ITypeHandle typeHandle) 7597private void FillArrayTypeInfo(IRuntimeTypeSystem rts, ITypeHandle typeHandle, DebuggerIPCE_ExpandedTypeData* pTypeInfo) 7602ITypeHandle elemTypeHandle = rts.GetTypeParam(typeHandle); 7607private void FillPtrTypeInfo(IRuntimeTypeSystem rts, AreValueTypesBoxed boxed, ITypeHandle typeHandle, DebuggerIPCE_ExpandedTypeData* pTypeInfo) 7615ITypeHandle paramTypeHandle = rts.GetTypeParam(typeHandle); 7621private void FillClassTypeInfo(IRuntimeTypeSystem rts, ITypeHandle typeHandle, DebuggerIPCE_ExpandedTypeData* pTypeInfo) 7629ReadOnlySpan<ITypeHandle> instantiation = rts.GetInstantiation(typeHandle); 7644private void FillFnPtrTypeInfo(IRuntimeTypeSystem rts, AreValueTypesBoxed boxed, ITypeHandle typeHandle, DebuggerIPCE_ExpandedTypeData* pTypeInfo) 7659internal void FillBasicTypeInfo(IRuntimeTypeSystem rts, ITypeHandle typeHandle, out DebuggerIPCE_BasicTypeData typeInfo) 7685ReadOnlySpan<ITypeHandle> instantiation = rts.GetInstantiation(typeHandle);
Dbi\Helpers\HeapWalk.cs (1)
116ITypeHandle handle = _rts.GetTypeHandle(mt);
Dbi\TypeDataWalk.cs (23)
22private readonly ITypeHandle _canonTh; 26public TypeDataWalk(Target target, IRuntimeTypeSystem rts, ITypeHandle canonTh, DebuggerIPCE_TypeArgData* pData, uint nData) 58public ITypeHandle? ReadLoadedTypeHandle() 92private ITypeHandle? ReadLoadedTypeArg() 117private ITypeHandle? ReadLoadedInstantiation(ulong vmAssembly, uint metadataToken, uint nTypeArgs) 119ITypeHandle? typeDef = TryLookupTypeDefOrRefInAssembly(vmAssembly, metadataToken); 126ImmutableArray<ITypeHandle?>.Builder builder = ImmutableArray.CreateBuilder<ITypeHandle?>((int)nTypeArgs); 129ITypeHandle? th = ReadLoadedTypeArg(); 138private ITypeHandle? ArrayTypeArg(DebuggerIPCE_TypeArgData* pInfo) 140ITypeHandle? elem = ReadLoadedTypeArg(); 145return _rts.GetConstructedType(elem, et, rank, ImmutableArray<ITypeHandle?>.Empty); 148private ITypeHandle? PtrOrByRefTypeArg(DebuggerIPCE_TypeArgData* pInfo) 150ITypeHandle? referent = ReadLoadedTypeArg(); 154return _rts.GetConstructedType(referent, et, 0, ImmutableArray<ITypeHandle?>.Empty); 160private ITypeHandle? ClassTypeArg(DebuggerIPCE_TypeArgData* pInfo) 167ITypeHandle? typeDef = TryLookupTypeDefOrRefInAssembly(vmAssembly, metadataToken); 181private ITypeHandle? FnPtrTypeArg(DebuggerIPCE_TypeArgData* pInfo) 184ImmutableArray<ITypeHandle?>.Builder builder = ImmutableArray.CreateBuilder<ITypeHandle?>((int)numTypeArgs); 187ITypeHandle? th = ReadLoadedTypeArg(); 197private ITypeHandle ObjRefOrPrimitiveTypeArg(DebuggerIPCE_TypeArgData* pInfo, CorElementType elementType) 209private ITypeHandle? TryLookupTypeDefOrRefInAssembly(ulong vmAssembly, uint metadataToken)
EnumMemory\ObjectCollector.cs (9)
62ITypeHandle type = types.GetTypeHandle(methodTable); 88private bool EnumerateTypeHierarchy(ITypeHandle type) 110private void EnumerateMethodTableData(ITypeHandle type) 129private void EnumerateArray(IObject objects, TargetPointer objectAddress, ITypeHandle type) 133ITypeHandle elementType = types.GetTypeParam(type); 171ITypeHandle exceptionType = types.GetTypeHandle(exceptionMethodTable); 172ITypeHandle objectType = types.GetTypeHandle(types.GetWellKnownMethodTable(WellKnownMethodTable.Object)); 173ITypeHandle derivedType = types.GetTypeHandle(methodTable); 234ITypeHandle type = types.GetTypeHandle(methodTable);
SigFormat.cs (10)
21ReadOnlySpan<ITypeHandle> typeInstantiation, 22ReadOnlySpan<ITypeHandle> methodInstantiation, 39ReadOnlySpan<ITypeHandle> typeInstantiation, 40ReadOnlySpan<ITypeHandle> methodInstantiation, 98ReadOnlySpan<ITypeHandle> typeInstantiation, 99ReadOnlySpan<ITypeHandle> methodInstantiation, 160ITypeHandle th = runtimeTypeSystem.GetTypeHandle(typeHandlePointer); 311private static void AddType(Target target, StringBuilder stringBuilder, ITypeHandle? typeHandle) 364ReadOnlySpan<ITypeHandle> instantiation = runtimeTypeSystem.GetInstantiation(typeHandle); 420runtimeTypeSystem.IsFunctionPointer(typeHandle, out ReadOnlySpan<ITypeHandle> retAndArgTypes, out SignatureCallingConvention callConv);
SOSDacImpl.cs (25)
1123ITypeHandle ctx = rtsContract.GetTypeHandle(enclosingMT); 1129ITypeHandle? foundTypeHandle = rtsContract.GetFieldDescApproxTypeHandle(fieldDescTargetPtr); 1148ITypeHandle paramTypeHandle = rtsContract.GetTypeParam(foundTypeHandle); 2421ITypeHandle typeHandle = rtsContract.GetTypeHandle(methodTableAddr); 2911ITypeHandle methodTable = contract.GetTypeHandle(mt.ToTargetPointer(_target)); 2985ITypeHandle typeHandle = rtsContract.GetTypeHandle(mtAddress); 3026ITypeHandle methodTableHandle = contract.GetTypeHandle(eeClassReallyCanonMT.ToTargetPointer(_target)); 3057ITypeHandle methodTableHandle = typeSystemContract.GetTypeHandle(mt.ToTargetPointer(_target, overrideCheck: true)); 3130ITypeHandle methodTableHandle = rts.GetTypeHandle(methodTable); // validate MT 3378ITypeHandle typeHandle = rts.GetTypeHandle(mt); 3451ITypeHandle handle = runtimeTypeSystemContract.GetTypeHandle(mt); 3493ITypeHandle element = runtimeTypeSystemContract.GetTypeParam(handle); 5594ITypeHandle typeHandle = rtsContract.GetTypeHandle(mt.ToTargetPointer(_target)); 5758ITypeHandle typeHandle = rts.GetTypeHandle(mt); 5820ITypeHandle typeHandle = rts.GetTypeHandle(ptr); 6187ITypeHandle methodTableHandle = rtsContract.GetTypeHandle(methodTable.ToTargetPointer(_target)); 6480ITypeHandle mtHandle = rtsContract.GetTypeHandle(mt); 6934ITypeHandle typeHandle = rtsContract.GetTypeHandle(methodTable.ToTargetPointer(_target)); 6976ITypeHandle typeHandle = rtsContract.GetTypeHandle(methodTablePtr); 7030ITypeHandle methodTableHandle = rtsContract.GetTypeHandle(methodTable.ToTargetPointer(_target)); 7065private readonly ITypeHandle _methodTable; 7072public SOSMethodEnum(Target target, ITypeHandle methodTable, ISOSMethodEnum? legacyMethodEnum, Lock apiLock) 7109ITypeHandle typeHandle = _rts.GetTypeHandle(mtAddr); 7133ITypeHandle typeHandle = _rts.GetTypeHandle(mtAddr); 7257ITypeHandle methodTableHandle = rts.GetTypeHandle(mt.ToTargetPointer(_target));
SOSDacImpl.IXCLRDataProcess.cs (6)
858private IEnumerable<ITypeHandle> IterateTypeParams(Contracts.ModuleHandle moduleHandle) 905ITypeHandle mainMT = _rts.GetTypeHandle(mtAddr); 919ITypeHandle methodTypeHandle = _rts.GetTypeHandle(_rts.GetMethodTable(methodDesc)); 942foreach (ITypeHandle typeParam in IterateTypeParams(moduleHandle)) 956ITypeHandle cmtHandle = _rts.GetTypeHandle(cmt); 985ITypeHandle mt = rts.GetTypeHandle(mtAddr);
TypeHandleExtensions.cs (4)
15public static string GetName(this ITypeHandle typeHandle, Target target) 22private static void AppendName(ITypeHandle typeHandle, Target target, StringBuilder result) 55ReadOnlySpan<ITypeHandle> instantiation = runtimeTypeSystem.GetInstantiation(typeHandle); 62private static void AppendTypeDescName(ITypeHandle typeHandle, Target target, StringBuilder result)
TypeNameBuilder.cs (19)
65public static void AppendMethodImpl(Target target, StringBuilder stringBuilder, Contracts.MethodDescHandle method, ReadOnlySpan<ITypeHandle> typeInstantiation, TypeNameFormat format) 70ITypeHandle? th = null; 125ITypeHandle methodType = th ?? throw new InvalidOperationException("Metadata-backed method has no declaring type."); 133ReadOnlySpan<ITypeHandle> genericMethodInstantiation = runtimeTypeSystem.GetGenericMethodInstantiation(method); 146ReadOnlySpan<ITypeHandle> typeInstantiationSigFormat = default; 162public static ITypeHandle GetExactOwningType(IRuntimeTypeSystem runtimeTypeSystem, ITypeHandle possiblyDerivedType, MethodDescHandle method) 164ITypeHandle approxOwner = runtimeTypeSystem.GetTypeHandle(runtimeTypeSystem.GetMethodTable(method)); 188public static void AppendType(Target target, StringBuilder stringBuilder, ITypeHandle? typeHandle, TypeNameFormat format) 193public static void AppendType(Target target, StringBuilder stringBuilder, ITypeHandle? typeHandle, ReadOnlySpan<ITypeHandle> typeInstantiation, TypeNameFormat format) 199private static void AppendTypeCore(ref TypeNameBuilder tnb, ITypeHandle? typeHandle, ReadOnlySpan<ITypeHandle> instantiation, TypeNameFormat format) 245else if (typeSystemContract.IsFunctionPointer(typeHandle, out ReadOnlySpan<ITypeHandle> retAndArgTypes, out SignatureCallingConvention callConv)) 303ReadOnlySpan<ITypeHandle> instantiationSpan = typeSystemContract.GetInstantiation(typeHandle); 333internal static void AppendInst(Target target, StringBuilder stringBuilder, ReadOnlySpan<ITypeHandle> inst, TypeNameFormat format) 339private static void AppendInst(ref TypeNameBuilder tnb, ReadOnlySpan<ITypeHandle> inst, TypeNameFormat format) 342foreach (ITypeHandle arg in inst) 510private static void AppendContinuationName(ref TypeNameBuilder tnb, IRuntimeTypeSystem typeSystemContract, ITypeHandle typeHandle)