47 references to _methodTables
Microsoft.Diagnostics.DataContractReader.Contracts (47)
Contracts\RuntimeTypeSystem_1.cs (47)
43
_methodTables
.Clear();
495
if (
_methodTables
.ContainsKey(typeHandlePointer))
514
_ =
_methodTables
.TryAdd(methodTablePointer, trustedMethodTable);
523
_ =
_methodTables
.TryAdd(methodTablePointer, trustedMethodTable);
535
_ =
_methodTables
.TryAdd(methodTablePointer, trustedMethodTableF);
542
return
_methodTables
[typeHandle.Address].Module;
566
public bool IsCanonicalMethodTable(ITypeHandle typeHandle) => typeHandle.IsMethodTable() &&
_methodTables
[typeHandle.Address].IsCanonMT;
567
public TargetPointer GetParentMethodTable(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? TargetPointer.Null :
_methodTables
[typeHandle.Address].ParentMethodTable;
569
public uint GetBaseSize(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 :
_methodTables
[typeHandle.Address].Flags.BaseSize;
571
public uint GetNumInstanceFieldBytes(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 :
_methodTables
[typeHandle.Address].Flags.BaseSize - GetClassData(typeHandle).BaseSizePadding;
573
public uint GetComponentSize(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 :
_methodTables
[typeHandle.Address].Flags.ComponentSize;
579
MethodTable methodTable =
_methodTables
[typeHandle.Address];
587
MethodTable canonMT =
_methodTables
[canonMTHandle.Address];
637
public bool IsString(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.IsString;
666
public bool ContainsGCPointers(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.ContainsGCPointers;
667
public bool IsByRefLike(ITypeHandle typeHandle) => typeHandle.IsMethodTable() &&
_methodTables
[typeHandle.Address].Flags.IsByRefLike;
682
if (!typeHandle.IsMethodTable() || !
_methodTables
[typeHandle.Address].Flags.IsHFA)
690
elementSize =
_methodTables
[typeHandle.Address].Flags.RequiresAlign8 ? 8 : 4;
743
if (!typeHandle.IsMethodTable() || !
_methodTables
[typeHandle.Address].Flags.IsIntrinsicType)
816
public bool RequiresAlign8(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.RequiresAlign8;
854
&&
_methodTables
[typeHandle.Address].ParentMethodTable == ContinuationMethodTablePointer
932
public bool IsDynamicStatics(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.IsDynamicStatics;
933
public ushort GetNumInterfaces(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 :
_methodTables
[typeHandle.Address].NumInterfaces;
939
MethodTable methodTable =
_methodTables
[typeHandle.Address];
946
MethodTable methodTable =
_methodTables
[typeHandle.Address];
984
public bool IsTrackedReferenceWithFinalizer(ITypeHandle typeHandle) => typeHandle.IsMethodTable() &&
_methodTables
[typeHandle.Address].Flags.IsTrackedReferenceWithFinalizer;
990
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1000
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1048
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1059
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1068
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1081
MethodTable methodTable = rts.
_methodTables
[typePointer];
1101
public bool IsGenericTypeDefinition(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.IsGenericTypeDefinition;
1127
return
_methodTables
[typeHandle.Address].Flags.ContainsGenericVariables;
1130
public bool IsCollectible(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.IsCollectible;
1135
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1157
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1201
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1221
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1239
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1264
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1352
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1569
MethodTable mt =
_methodTables
[typeHandle.Address];
1912
return
_methodTables
[methodDesc.MethodTable];
1949
MethodTable mt =
_methodTables
[typeHandle.Address];
2266
Debug.Assert(
_methodTables
[typeHandle.Address].IsCanonMT);
2376
Debug.Assert(
_methodTables
[typeHandle.Address].IsCanonMT);