13 instantiations of TypeHandle
Microsoft.Diagnostics.DataContractReader.Contracts (13)
Contracts\RuntimeTypeSystem_1.cs (10)
461return new TypeHandle(typeHandlePointer); 468return new TypeHandle(typeHandlePointer); 479return new TypeHandle(methodTablePointer); 488return new TypeHandle(methodTablePointer); 500return new TypeHandle(methodTablePointer); 1029return new TypeHandle(TargetPointer.Null); 1053return new TypeHandle(TargetPointer.Null); 1146return new TypeHandle(TargetPointer.Null); 1164return new TypeHandle(TargetPointer.Null); 1173return new TypeHandle(TargetPointer.Null);
Contracts\Signature\SignatureTypeProvider.cs (3)
79return typeHandlePtr == TargetPointer.Null ? new TypeHandle(TargetPointer.Null) : _runtimeTypeSystem.GetTypeHandle(typeHandlePtr); 87return typeHandlePtr == TargetPointer.Null ? new TypeHandle(TargetPointer.Null) : _runtimeTypeSystem.GetTypeHandle(typeHandlePtr); 95? new TypeHandle(TargetPointer.Null)
303 references to TypeHandle
Microsoft.Diagnostics.DataContractReader.Abstractions (60)
Contracts\IRuntimeTypeSystem.cs (58)
105TypeHandle GetTypeHandle(TargetPointer address) => throw new NotImplementedException(); 106TargetPointer GetModule(TypeHandle typeHandle) => throw new NotImplementedException(); 107TargetPointer GetLoaderModule(TypeHandle typeHandle) => throw new NotImplementedException(); 111TargetPointer GetCanonicalMethodTable(TypeHandle typeHandle) => throw new NotImplementedException(); 112TargetPointer GetParentMethodTable(TypeHandle typeHandle) => throw new NotImplementedException(); 114TargetPointer GetMethodDescForSlot(TypeHandle methodTable, ushort slot) => throw new NotImplementedException(); 115IEnumerable<TargetPointer> GetIntroducedMethodDescs(TypeHandle methodTable) => throw new NotImplementedException(); 116TargetCodePointer GetSlot(TypeHandle typeHandle, uint slot) => throw new NotImplementedException(); 118uint GetBaseSize(TypeHandle typeHandle) => throw new NotImplementedException(); 120uint GetComponentSize(TypeHandle typeHandle) => throw new NotImplementedException(); 123bool IsFreeObjectMethodTable(TypeHandle typeHandle) => throw new NotImplementedException(); 124bool IsString(TypeHandle typeHandle) => throw new NotImplementedException(); 125bool IsObjRef(TypeHandle typeHandle) => throw new NotImplementedException(); 127bool ContainsGCPointers(TypeHandle typeHandle) => throw new NotImplementedException(); 129bool RequiresAlign8(TypeHandle typeHandle) => throw new NotImplementedException(); 131bool IsContinuation(TypeHandle typeHandle) => throw new NotImplementedException(); 137IEnumerable<(uint Offset, uint Size)> GetGCDescSeries(TypeHandle typeHandle, uint numComponents = 0) => throw new NotImplementedException(); 138bool IsDynamicStatics(TypeHandle typeHandle) => throw new NotImplementedException(); 139ushort GetNumInterfaces(TypeHandle typeHandle) => throw new NotImplementedException(); 142uint GetTypeDefToken(TypeHandle typeHandle) => throw new NotImplementedException(); 143ushort GetNumVtableSlots(TypeHandle typeHandle) => throw new NotImplementedException(); 144ushort GetNumMethods(TypeHandle typeHandle) => throw new NotImplementedException(); 147uint GetTypeDefTypeAttributes(TypeHandle typeHandle) => throw new NotImplementedException(); 148ushort GetNumInstanceFields(TypeHandle typeHandle) => throw new NotImplementedException(); 149ushort GetNumStaticFields(TypeHandle typeHandle) => throw new NotImplementedException(); 150ushort GetNumThreadStaticFields(TypeHandle typeHandle) => throw new NotImplementedException(); 151TargetPointer GetFieldDescList(TypeHandle typeHandle) => throw new NotImplementedException(); 153bool IsTrackedReferenceWithFinalizer(TypeHandle typeHandle) => throw new NotImplementedException(); 154TargetPointer GetGCStaticsBasePointer(TypeHandle typeHandle) => throw new NotImplementedException(); 155TargetPointer GetNonGCStaticsBasePointer(TypeHandle typeHandle) => throw new NotImplementedException(); 156TargetPointer GetGCThreadStaticsBasePointer(TypeHandle typeHandle, TargetPointer threadPtr) => throw new NotImplementedException(); 157TargetPointer GetNonGCThreadStaticsBasePointer(TypeHandle typeHandle, TargetPointer threadPtr) => throw new NotImplementedException(); 160ReadOnlySpan<TypeHandle> GetInstantiation(TypeHandle typeHandle) => throw new NotImplementedException(); 161public bool IsClassInited(TypeHandle typeHandle) => throw new NotImplementedException(); 162public bool IsInitError(TypeHandle typeHandle) => throw new NotImplementedException(); 163bool IsGenericTypeDefinition(TypeHandle typeHandle) => throw new NotImplementedException(); 164bool ContainsGenericVariables(TypeHandle typeHandle) => throw new NotImplementedException(); 165bool IsCollectible(TypeHandle typeHandle) => throw new NotImplementedException(); 167bool HasTypeParam(TypeHandle typeHandle) => throw new NotImplementedException(); 172CorElementType GetSignatureCorElementType(TypeHandle typeHandle) => throw new NotImplementedException(); 173bool IsValueType(TypeHandle typeHandle) => throw new NotImplementedException(); 178CorElementType GetInternalCorElementType(TypeHandle typeHandle) => throw new NotImplementedException(); 181bool IsEnum(TypeHandle typeHandle) => throw new NotImplementedException(); 184bool IsArray(TypeHandle typeHandle, out uint rank) => throw new NotImplementedException(); 185TypeHandle GetTypeParam(TypeHandle typeHandle) => throw new NotImplementedException(); 186TypeHandle GetConstructedType(TypeHandle typeHandle, CorElementType corElementType, int rank, ImmutableArray<TypeHandle> typeArguments) => throw new NotImplementedException(); 187TypeHandle GetPrimitiveType(CorElementType typeCode) => throw new NotImplementedException(); 188TypeHandle GetTypeByNameAndModule(string name, string nameSpace, ModuleHandle moduleHandle) => throw new NotImplementedException(); 189bool IsGenericVariable(TypeHandle typeHandle, out TargetPointer module, out uint token) => throw new NotImplementedException(); 190bool IsFunctionPointer(TypeHandle typeHandle, out ReadOnlySpan<TypeHandle> retAndArgTypes, out byte callConv) => throw new NotImplementedException(); 191bool IsPointer(TypeHandle typeHandle) => throw new NotImplementedException(); 201ReadOnlySpan<TypeHandle> GetGenericMethodInstantiation(MethodDescHandle methodDesc) => throw new NotImplementedException(); 268TargetPointer GetFieldDescByName(TypeHandle typeHandle, string fieldName) => throw new NotImplementedException();
Contracts\ISignature.cs (2)
12TypeHandle DecodeFieldSignature(BlobHandle blobHandle, ModuleHandle moduleHandle, TypeHandle ctx) => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (166)
Contracts\CodeVersions_1.cs (2)
157TypeHandle mt = rts.GetTypeHandle(mtAddr); 345TypeHandle typeHandle = rts.GetTypeHandle(mtAddr);
Contracts\ConditionalWeakTable_1.cs (1)
98TypeHandle entriesTypeHandle = rts.GetTypeHandle(entriesMT);
Contracts\ExecutionManager\ExecutionManagerCore.cs (1)
519TypeHandle th = rts.GetTypeHandle(mtPtr);
Contracts\Object_1.cs (1)
62TypeHandle typeHandle = typeSystemContract.GetTypeHandle(mt);
Contracts\RuntimeTypeSystem_1.cs (106)
30private readonly Dictionary<TypeKey, TypeHandle> _typeHandles = new(); 31private readonly Dictionary<TypeKeyByName, TypeHandle> _typeHandlesByName = new(); 74public TypeKey(TypeHandle typeHandle, CorElementType elementType, int rank, ImmutableArray<TypeHandle> typeArgs) 81public TypeHandle TypeHandle { get; } 84public ImmutableArray<TypeHandle> TypeArgs { get; } 103foreach (TypeHandle th in TypeArgs) 367Instantiation = System.Array.Empty<TypeHandle>(); 371Instantiation = new TypeHandle[numGenericArgs]; 384public TypeHandle[] Instantiation { get; } 449public TypeHandle GetTypeHandle(TargetPointer typeHandlePointer) 502public TargetPointer GetModule(TypeHandle typeHandle) 529public TargetPointer GetCanonicalMethodTable(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? TargetPointer.Null : GetClassData(typeHandle).MethodTable; 530public TargetPointer GetParentMethodTable(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? TargetPointer.Null : _methodTables[typeHandle.Address].ParentMethodTable; 532public uint GetBaseSize(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : _methodTables[typeHandle.Address].Flags.BaseSize; 534public uint GetComponentSize(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : _methodTables[typeHandle.Address].Flags.ComponentSize; 536private TargetPointer GetClassPointer(TypeHandle typeHandle) 545TypeHandle canonMTHandle = GetTypeHandle(canonMTPtr); 554private Data.EEClass GetClassData(TypeHandle typeHandle) 561public bool IsFreeObjectMethodTable(TypeHandle typeHandle) => FreeObjectMethodTablePointer == typeHandle.Address; 563public bool IsString(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsString; 564public bool IsObjRef(TypeHandle typeHandle) 570public bool ContainsGCPointers(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.ContainsGCPointers; 571public bool RequiresAlign8(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.RequiresAlign8; 572public bool IsContinuation(TypeHandle typeHandle) => typeHandle.IsMethodTable() 576IEnumerable<(uint Offset, uint Size)> IRuntimeTypeSystem.GetGCDescSeries(TypeHandle typeHandle, uint numComponents) 650public bool IsDynamicStatics(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsDynamicStatics; 651public ushort GetNumInterfaces(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : _methodTables[typeHandle.Address].NumInterfaces; 653public uint GetTypeDefToken(TypeHandle typeHandle) 660public ushort GetNumVtableSlots(TypeHandle typeHandle) 668public ushort GetNumMethods(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumMethods; 669public uint GetTypeDefTypeAttributes(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 : GetClassData(typeHandle).CorTypeAttr; 670public ushort GetNumInstanceFields(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumInstanceFields; 671public ushort GetNumStaticFields(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumStaticFields; 672public ushort GetNumThreadStaticFields(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 : GetClassData(typeHandle).NumThreadStaticFields; 673public TargetPointer GetFieldDescList(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? TargetPointer.Null : GetClassData(typeHandle).FieldDescList; 674public bool IsTrackedReferenceWithFinalizer(TypeHandle typeHandle) => typeHandle.IsMethodTable() && _methodTables[typeHandle.Address].Flags.IsTrackedReferenceWithFinalizer; 675private TargetPointer GetDynamicStaticsInfo(TypeHandle typeHandle) 688private Data.ThreadStaticsInfo GetThreadStaticsInfo(TypeHandle typeHandle) 697public TargetPointer GetGCThreadStaticsBasePointer(TypeHandle typeHandle, TargetPointer threadPtr) 706public TargetPointer GetNonGCThreadStaticsBasePointer(TypeHandle typeHandle, TargetPointer threadPtr) 715public TargetPointer GetGCStaticsBasePointer(TypeHandle typeHandle) 724public TargetPointer GetNonGCStaticsBasePointer(TypeHandle typeHandle) 733public ReadOnlySpan<TypeHandle> GetInstantiation(TypeHandle typeHandle) 745public bool IsClassInited(TypeHandle typeHandle) 754public bool IsInitError(TypeHandle typeHandle) 767public TypeHandle[] TypeHandles { get; } 783TypeHandles = new TypeHandle[numberOfGenericArgs]; 791public bool IsGenericTypeDefinition(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsGenericTypeDefinition; 792public bool ContainsGenericVariables(TypeHandle typeHandle) 807_ = IsFunctionPointer(typeHandle, out ReadOnlySpan<TypeHandle> signatureTypeArgs, out _); 808foreach (TypeHandle sigTypeArg in signatureTypeArgs) 820public bool IsCollectible(TypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false : _methodTables[typeHandle.Address].Flags.IsCollectible; 821public bool HasTypeParam(TypeHandle typeHandle) 843public CorElementType GetSignatureCorElementType(TypeHandle typeHandle) 874public CorElementType GetInternalCorElementType(TypeHandle typeHandle) 887public bool IsValueType(TypeHandle typeHandle) 903public bool IsEnum(TypeHandle typeHandle) 920public bool IsArray(TypeHandle typeHandle, out uint rank) 945public TypeHandle GetTypeParam(TypeHandle typeHandle) 971private TypeHandle GetRootTypeParam(TypeHandle typeHandle) 973TypeHandle current = typeHandle; 981private bool GenericInstantiationMatch(TypeHandle genericType, TypeHandle potentialMatch, ImmutableArray<TypeHandle> typeArguments) 983ReadOnlySpan<TypeHandle> instantiation = GetInstantiation(potentialMatch); 1001private bool ArrayPtrMatch(TypeHandle elementType, CorElementType corElementType, int rank, TypeHandle potentialMatch) 1011private bool IsLoaded(TypeHandle typeHandle) 1026TypeHandle IRuntimeTypeSystem.GetConstructedType(TypeHandle typeHandle, CorElementType corElementType, int rank, ImmutableArray<TypeHandle> typeArguments) 1030if (_typeHandles.TryGetValue(new TypeKey(typeHandle, corElementType, rank, typeArguments), out TypeHandle existing)) 1035TypeHandle potentialMatch; 1056TypeHandle IRuntimeTypeSystem.GetPrimitiveType(CorElementType typeCode) 1098TypeHandle IRuntimeTypeSystem.GetTypeByNameAndModule(string name, string nameSpace, ModuleHandle moduleHandle) 1102if (_typeHandlesByName.TryGetValue(new TypeKeyByName(name, nameSpace, modulePtr), out TypeHandle existing)) 1174TypeHandle foundTypeHandle = rts.GetTypeHandle(typeHandlePtr); 1179public bool IsGenericVariable(TypeHandle typeHandle, out TargetPointer module, out uint token) 1201public bool IsFunctionPointer(TypeHandle typeHandle, out ReadOnlySpan<TypeHandle> retAndArgTypes, out byte callConv) 1220public bool IsPointer(TypeHandle typeHandle) 1230public TargetPointer GetLoaderModule(TypeHandle typeHandle) 1260public TypeHandle[] TypeHandles { get; } 1269TypeHandles = new TypeHandle[numberOfRetAndArgTypes]; 1341public ReadOnlySpan<TypeHandle> GetGenericMethodInstantiation(MethodDescHandle methodDescHandle) 1582private TargetPointer GetAddressOfSlot(TypeHandle typeHandle, uint slotNum) 1643TypeHandle mt = GetTypeHandle(mtAddr); 1702private IEnumerable<MethodDescHandle> GetIntroducedMethods(TypeHandle typeHandle) 1728IEnumerable<TargetPointer> IRuntimeTypeSystem.GetIntroducedMethodDescs(TypeHandle typeHandle) 1733TypeHandle canonMT = GetTypeHandle(GetCanonicalMethodTable(typeHandle)); 1742TargetPointer IRuntimeTypeSystem.GetMethodDescForSlot(TypeHandle typeHandle, ushort slot) 1748TypeHandle canonMT = GetTypeHandle(GetCanonicalMethodTable(typeHandle)); 1767private TargetPointer GetMethodDescForVtableSlot(TypeHandle typeHandle, ushort slot) 1775TypeHandle canonMT = GetTypeHandle(cannonMTPTr); 1788TypeHandle lookupMT = GetTypeHandle(lookupMTPtr); 1824TargetCodePointer IRuntimeTypeSystem.GetSlot(TypeHandle typeHandle, uint slot) 1886TypeHandle typeHandle = GetTypeHandle(methodTablePointer); 1974TypeHandle typeHandle = GetTypeHandle(methodTablePointer); 1982TypeHandle typeHandle = GetTypeHandle(methodTablePointer); 2032TargetPointer IRuntimeTypeSystem.GetFieldDescByName(TypeHandle typeHandle, string fieldName) 2090TypeHandle ctx = GetTypeHandle(enclosingMT); 2149TypeHandle th = rts.GetTypeByNameAndModule(typeName, @namespace, moduleHandle);
Contracts\Signature\Signature_1.cs (9)
21private readonly Dictionary<ModuleHandle, SignatureTypeProvider<TypeHandle>> _thProviders = []; 33private SignatureTypeProvider<TypeHandle> GetTypeHandleProvider(ModuleHandle moduleHandle) 35if (_thProviders.TryGetValue(moduleHandle, out SignatureTypeProvider<TypeHandle>? thProvider)) 40SignatureTypeProvider<TypeHandle> newProvider = new(_target, moduleHandle); 45TypeHandle ISignature.DecodeFieldSignature(BlobHandle blobHandle, ModuleHandle moduleHandle, TypeHandle ctx) 47SignatureTypeProvider<TypeHandle> provider = GetTypeHandleProvider(moduleHandle); 51RuntimeSignatureDecoder<TypeHandle, TypeHandle> decoder = new(provider, _target, mdReader, ctx);
Contracts\Signature\SignatureTypeProvider.cs (31)
13public class SignatureTypeProvider<T> : IRuntimeSignatureTypeProvider<TypeHandle, T> 28public TypeHandle GetArrayType(TypeHandle elementType, ArrayShape shape) 31public TypeHandle GetByReferenceType(TypeHandle elementType) 34public TypeHandle GetFunctionPointerType(MethodSignature<TypeHandle> signature) 37public TypeHandle GetGenericInstantiation(TypeHandle genericType, ImmutableArray<TypeHandle> typeArguments) 40public TypeHandle GetGenericMethodParameter(T context, int index) 49public TypeHandle GetGenericTypeParameter(T context, int index) 51TypeHandle typeContext; 52if (typeof(T) == typeof(TypeHandle)) 54typeContext = (TypeHandle)(object)context!; 59public TypeHandle GetModifiedType(TypeHandle modifier, TypeHandle unmodifiedType, bool isRequired) 62public TypeHandle GetPinnedType(TypeHandle elementType) 65public TypeHandle GetPointerType(TypeHandle elementType) 68public TypeHandle GetPrimitiveType(PrimitiveTypeCode typeCode) 71public TypeHandle GetSZArrayType(TypeHandle elementType) 74public TypeHandle GetTypeFromDefinition(MetadataReader reader, TypeDefinitionHandle handle, byte rawTypeKind) 82public TypeHandle GetTypeFromReference(MetadataReader reader, TypeReferenceHandle handle, byte rawTypeKind) 90public TypeHandle GetTypeFromSpecification(MetadataReader reader, T context, TypeSpecificationHandle handle, byte rawTypeKind) 93public TypeHandle GetInternalType(TargetPointer typeHandlePointer) 98public TypeHandle GetInternalModifiedType(TargetPointer typeHandlePointer, TypeHandle unmodifiedType, bool isRequired)
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (1)
119TypeHandle mtHandle = rtsContract.GetTypeHandle(stubDispatchFrame.RepresentativeMTPtr);
Contracts\StackWalk\GC\GcScanner.cs (1)
336TypeHandle typeHandle = rts.GetTypeHandle(methodTablePtr);
Contracts\StackWalk\GC\GcSignatureTypeProvider.cs (8)
31/// owning type's <see cref="TypeHandle"/> (used for VAR), and <see cref="MethodContext"/> 34internal readonly record struct GcSignatureContext(TypeHandle ClassContext, MethodDescHandle MethodContext); 90ReadOnlySpan<TypeHandle> instantiation = _target.Contracts.RuntimeTypeSystem.GetGenericMethodInstantiation(genericContext.MethodContext); 106TypeHandle classCtx = genericContext.ClassContext; 120ReadOnlySpan<TypeHandle> instantiation = rts.GetInstantiation(classCtx); 153/// resulting <see cref="TypeHandle"/>. Falls back to a <paramref name="rawTypeKind"/>-based 173/// Classify a resolved <see cref="TypeHandle"/>. Mirrors native 178private GcTypeKind ClassifyTypeHandle(TypeHandle typeHandle)
Contracts\SyncBlock_1.cs (2)
64TypeHandle lockType = rts.GetTypeByNameAndModule(LockName, LockNamespace, moduleHandle); 137private uint ReadUintField(TypeHandle enclosingType, string fieldName, IRuntimeTypeSystem rts, MetadataReader mdReader, TargetPointer dataAddr)
RuntimeTypeSystemHelpers\ExtensionMethods.cs (3)
10public static bool IsTypeDesc(this TypeHandle type) 15public static bool IsMethodTable(this TypeHandle type) 20public static TargetPointer TypeDescAddress(this TypeHandle type)
Microsoft.Diagnostics.DataContractReader.Legacy (77)
ClrDataFrame.cs (5)
415TypeHandle typeHandle = rts.GetTypeHandle(mtAddr); 751ReadOnlySpan<TypeHandle> methodInst = rts.GetGenericMethodInstantiation(mdh); 763TypeHandle declaringType = rts.GetTypeHandle(mtAddr); 764ReadOnlySpan<TypeHandle> typeInst = rts.GetInstantiation(declaringType); 770private static (uint Flags, int Size) ResolveGenericParam(IRuntimeTypeSystem rts, TypeHandle resolvedType)
ClrDataMethodDefinition.cs (1)
48TypeHandle mt = rts.GetTypeHandle(mtAddr);
ClrDataMethodInstance.cs (1)
66TypeHandle mainMT = rts.GetTypeHandle(mtAddr);
Dbi\DacDbiImpl.cs (9)
1277Contracts.TypeHandle th = rts.GetTypeHandle(new TargetPointer(thExact)); 1370Contracts.TypeHandle th = rts.GetTypeHandle(new TargetPointer(vmTypeHandle)); 1397TypeHandle typeHandle = rts.GetTypeHandle(new TargetPointer(vmTypeHandle)); 1556Contracts.TypeHandle typeHandle = rts.GetPrimitiveType((CorElementType)simpleType); 2033TypeHandle typeHandle = rts.GetTypeHandle(new TargetPointer((ulong)id)); 2042TypeHandle parentHandle = rts.GetTypeHandle(parentMT); 2086TypeHandle arrayOrStringTypeHandle = rts.GetTypeHandle(new TargetPointer(id)); 2091TypeHandle charTypeHandle = rts.GetPrimitiveType(CorElementType.Char); 2107TypeHandle componentTypeHandle = rts.GetTypeParam(arrayOrStringTypeHandle);
SigFormat.cs (10)
21ReadOnlySpan<TypeHandle> typeInstantiation, 22ReadOnlySpan<TypeHandle> methodInstantiation, 39ReadOnlySpan<TypeHandle> typeInstantiation, 40ReadOnlySpan<TypeHandle> methodInstantiation, 98ReadOnlySpan<TypeHandle> typeInstantiation, 99ReadOnlySpan<TypeHandle> methodInstantiation, 160TypeHandle th = runtimeTypeSystem.GetTypeHandle(typeHandlePointer); 311private static void AddType(Target target, StringBuilder stringBuilder, TypeHandle typeHandle) 361ReadOnlySpan<TypeHandle> instantiation = runtimeTypeSystem.GetInstantiation(typeHandle); 417runtimeTypeSystem.IsFunctionPointer(typeHandle, out ReadOnlySpan<TypeHandle> retAndArgTypes, out byte callConv);
SOSDacImpl.cs (25)
1093TypeHandle ctx = rtsContract.GetTypeHandle(enclosingMT); 1101TypeHandle foundTypeHandle = signatureContract.DecodeFieldSignature(fieldDef.Signature, moduleHandle, ctx); 1118TypeHandle paramTypeHandle = rtsContract.GetTypeParam(foundTypeHandle); 2337TypeHandle typeHandle = rtsContract.GetTypeHandle(methodTableAddr); 2813Contracts.TypeHandle methodTable = contract.GetTypeHandle(mt.ToTargetPointer(_target)); 2886TypeHandle typeHandle = rtsContract.GetTypeHandle(mtAddress); 2926Contracts.TypeHandle methodTableHandle = contract.GetTypeHandle(eeClassReallyCanonMT.ToTargetPointer(_target)); 2956Contracts.TypeHandle methodTableHandle = typeSystemContract.GetTypeHandle(mt.ToTargetPointer(_target, overrideCheck: true)); 3028TypeHandle methodTableHandle = rts.GetTypeHandle(methodTable); // validate MT 3269Contracts.TypeHandle typeHandle = rts.GetTypeHandle(mt); 3341TypeHandle handle = runtimeTypeSystemContract.GetTypeHandle(mt); 3383TypeHandle element = runtimeTypeSystemContract.GetTypeParam(handle); 5435Contracts.TypeHandle typeHandle = rtsContract.GetTypeHandle(mt.ToTargetPointer(_target)); 5589TypeHandle typeHandle = rts.GetTypeHandle(mt); 5650TypeHandle typeHandle = rts.GetTypeHandle(ptr); 6009Contracts.TypeHandle methodTableHandle = rtsContract.GetTypeHandle(methodTable.ToTargetPointer(_target)); 6295TypeHandle mtHandle = rtsContract.GetTypeHandle(mt); 6737Contracts.TypeHandle typeHandle = rtsContract.GetTypeHandle(methodTable.ToTargetPointer(_target)); 6778Contracts.TypeHandle typeHandle = rtsContract.GetTypeHandle(methodTablePtr); 6831Contracts.TypeHandle methodTableHandle = rtsContract.GetTypeHandle(methodTable.ToTargetPointer(_target)); 6865private readonly TypeHandle _methodTable; 6872public SOSMethodEnum(Target target, TypeHandle methodTable, ISOSMethodEnum? legacyMethodEnum) 6908TypeHandle typeHandle = _rts.GetTypeHandle(mtAddr); 6932TypeHandle typeHandle = _rts.GetTypeHandle(mtAddr); 7051TypeHandle methodTableHandle = rts.GetTypeHandle(mt.ToTargetPointer(_target));
SOSDacImpl.IXCLRDataProcess.cs (6)
302private IEnumerable<Contracts.TypeHandle> IterateTypeParams(Contracts.ModuleHandle moduleHandle) 349TypeHandle mainMT = _rts.GetTypeHandle(mtAddr); 363TypeHandle methodTypeHandle = _rts.GetTypeHandle(_rts.GetMethodTable(methodDesc)); 386foreach (Contracts.TypeHandle typeParam in IterateTypeParams(moduleHandle)) 400TypeHandle cmtHandle = _rts.GetTypeHandle(cmt); 429TypeHandle mt = rts.GetTypeHandle(mtAddr);
TypeNameBuilder.cs (20)
65public static void AppendMethodImpl(Target target, StringBuilder stringBuilder, Contracts.MethodDescHandle method, ReadOnlySpan<TypeHandle> typeInstantiation, TypeNameFormat format) 70TypeHandle th = default; 129ReadOnlySpan<TypeHandle> genericMethodInstantiation = runtimeTypeSystem.GetGenericMethodInstantiation(method); 149ReadOnlySpan<TypeHandle> typeInstantiationSigFormat = default; 165public static TypeHandle GetExactOwningType(IRuntimeTypeSystem runtimeTypeSystem, TypeHandle possiblyDerivedType, MethodDescHandle method) 167TypeHandle approxOwner = runtimeTypeSystem.GetTypeHandle(runtimeTypeSystem.GetMethodTable(method)); 191public static void AppendType(Target target, StringBuilder stringBuilder, Contracts.TypeHandle typeHandle, TypeNameFormat format) 196public static void AppendType(Target target, StringBuilder stringBuilder, Contracts.TypeHandle typeHandle, ReadOnlySpan<TypeHandle> typeInstantiation, TypeNameFormat format) 202private static void AppendTypeCore(ref TypeNameBuilder tnb, Contracts.TypeHandle typeHandle, ReadOnlySpan<Contracts.TypeHandle> instantiation, TypeNameFormat format) 219AppendTypeCore(ref tnb, typeSystemContract.GetTypeParam(typeHandle), default(ReadOnlySpan<Contracts.TypeHandle>), (TypeNameFormat)(format & ~TypeNameFormat.FormatAssembly)); 225AppendTypeCore(ref tnb, typeSystemContract.GetTypeParam(typeHandle), Array.Empty<Contracts.TypeHandle>(), format & ~TypeNameFormat.FormatAssembly); 248else if (typeSystemContract.IsFunctionPointer(typeHandle, out ReadOnlySpan<TypeHandle> retAndArgTypes, out byte callConv)) 306ReadOnlySpan<TypeHandle> instantiationSpan = typeSystemContract.GetInstantiation(typeHandle); 336private static void AppendInst(Target target, StringBuilder stringBuilder, ReadOnlySpan<TypeHandle> inst, TypeNameFormat format) 342private static void AppendInst(ref TypeNameBuilder tnb, ReadOnlySpan<TypeHandle> inst, TypeNameFormat format) 345foreach (TypeHandle arg in inst) 513private static void AppendContinuationName(ref TypeNameBuilder tnb, IRuntimeTypeSystem typeSystemContract, TypeHandle typeHandle)