47 references to _methodTables
Microsoft.Diagnostics.DataContractReader.Contracts (47)
Contracts\RuntimeTypeSystem_1.cs (47)
48
_methodTables
.Clear();
476
if (
_methodTables
.ContainsKey(typeHandlePointer))
495
_ =
_methodTables
.TryAdd(methodTablePointer, trustedMethodTable);
504
_ =
_methodTables
.TryAdd(methodTablePointer, trustedMethodTable);
516
_ =
_methodTables
.TryAdd(methodTablePointer, trustedMethodTableF);
523
return
_methodTables
[typeHandle.Address].Module;
547
public bool IsCanonicalMethodTable(ITypeHandle typeHandle) => typeHandle.IsMethodTable() &&
_methodTables
[typeHandle.Address].IsCanonMT;
548
public TargetPointer GetParentMethodTable(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? TargetPointer.Null :
_methodTables
[typeHandle.Address].ParentMethodTable;
550
public uint GetBaseSize(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 :
_methodTables
[typeHandle.Address].Flags.BaseSize;
552
public uint GetNumInstanceFieldBytes(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 :
_methodTables
[typeHandle.Address].Flags.BaseSize - GetClassData(typeHandle).BaseSizePadding;
554
public uint GetComponentSize(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (uint)0 :
_methodTables
[typeHandle.Address].Flags.ComponentSize;
560
MethodTable methodTable =
_methodTables
[typeHandle.Address];
568
MethodTable canonMT =
_methodTables
[canonMTHandle.Address];
618
public bool IsString(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.IsString;
647
public bool ContainsGCPointers(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.ContainsGCPointers;
648
public bool IsByRefLike(ITypeHandle typeHandle) => typeHandle.IsMethodTable() &&
_methodTables
[typeHandle.Address].Flags.IsByRefLike;
664
if (!typeHandle.IsMethodTable() || !
_methodTables
[typeHandle.Address].Flags.IsHFA)
672
elementSize =
_methodTables
[typeHandle.Address].Flags.RequiresAlign8 ? 8 : 4;
725
if (!typeHandle.IsMethodTable() || !
_methodTables
[typeHandle.Address].Flags.IsIntrinsicType)
798
public bool RequiresAlign8(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.RequiresAlign8;
836
&&
_methodTables
[typeHandle.Address].ParentMethodTable == ContinuationMethodTablePointer
914
public bool IsDynamicStatics(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.IsDynamicStatics;
915
public ushort GetNumInterfaces(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 :
_methodTables
[typeHandle.Address].NumInterfaces;
921
MethodTable methodTable =
_methodTables
[typeHandle.Address];
928
MethodTable methodTable =
_methodTables
[typeHandle.Address];
966
public bool IsTrackedReferenceWithFinalizer(ITypeHandle typeHandle) => typeHandle.IsMethodTable() &&
_methodTables
[typeHandle.Address].Flags.IsTrackedReferenceWithFinalizer;
972
MethodTable methodTable =
_methodTables
[typeHandle.Address];
982
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1030
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1041
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1050
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1063
MethodTable methodTable = rts.
_methodTables
[typePointer];
1083
public bool IsGenericTypeDefinition(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.IsGenericTypeDefinition;
1109
return
_methodTables
[typeHandle.Address].Flags.ContainsGenericVariables;
1112
public bool IsCollectible(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.IsCollectible;
1117
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1139
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1183
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1203
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1221
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1246
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1334
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1588
MethodTable mt =
_methodTables
[typeHandle.Address];
1965
return
_methodTables
[methodDesc.MethodTable];
2002
MethodTable mt =
_methodTables
[typeHandle.Address];
2310
Debug.Assert(
_methodTables
[typeHandle.Address].IsCanonMT);
2422
Debug.Assert(
_methodTables
[typeHandle.Address].IsCanonMT);