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;
819
&&
_methodTables
[typeHandle.Address].ParentMethodTable == ContinuationMethodTablePointer
897
public bool IsDynamicStatics(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.IsDynamicStatics;
898
public ushort GetNumInterfaces(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? (ushort)0 :
_methodTables
[typeHandle.Address].NumInterfaces;
904
MethodTable methodTable =
_methodTables
[typeHandle.Address];
911
MethodTable methodTable =
_methodTables
[typeHandle.Address];
949
public bool IsTrackedReferenceWithFinalizer(ITypeHandle typeHandle) => typeHandle.IsMethodTable() &&
_methodTables
[typeHandle.Address].Flags.IsTrackedReferenceWithFinalizer;
955
MethodTable methodTable =
_methodTables
[typeHandle.Address];
965
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1013
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1024
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1033
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1046
MethodTable methodTable = rts.
_methodTables
[typePointer];
1066
public bool IsGenericTypeDefinition(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.IsGenericTypeDefinition;
1092
return
_methodTables
[typeHandle.Address].Flags.ContainsGenericVariables;
1095
public bool IsCollectible(ITypeHandle typeHandle) => !typeHandle.IsMethodTable() ? false :
_methodTables
[typeHandle.Address].Flags.IsCollectible;
1100
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1122
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1166
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1186
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1204
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1229
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1317
MethodTable methodTable =
_methodTables
[typeHandle.Address];
1534
MethodTable mt =
_methodTables
[typeHandle.Address];
1877
return
_methodTables
[methodDesc.MethodTable];
1914
MethodTable mt =
_methodTables
[typeHandle.Address];
2231
Debug.Assert(
_methodTables
[typeHandle.Address].IsCanonMT);
2341
Debug.Assert(
_methodTables
[typeHandle.Address].IsCanonMT);