blob: 24d4076b202b7bb51afd5c2dcfaabd58d34774ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Internal.Runtime
{
internal static class IndirectionConstants
{
/// <summary>
/// Flag set on pointers to indirection cells to distinguish them
/// from pointers to the object directly
/// </summary>
public const int IndirectionCellPointer = 0x1;
/// <summary>
/// Flag set on RVAs to indirection cells to distinguish them
/// from RVAs to the object directly
/// </summary>
public const uint RVAPointsToIndirection = 0x80000000u;
}
internal static class GCStaticRegionConstants
{
/// <summary>
/// Flag set if the corresponding GCStatic entry has not yet been initialized and
/// the corresponding MethodTable pointer has been changed into a instance pointer of
/// that MethodTable.
/// </summary>
public const int Uninitialized = 0x1;
/// <summary>
/// Flag set if the next pointer loc points to GCStaticsPreInitDataNode.
/// Otherise it is the next GCStatic entry.
/// </summary>
public const int HasPreInitializedData = 0x2;
public const int Mask = Uninitialized | HasPreInitializedData;
}
internal static class ArrayTypesConstants
{
/// <summary>
/// Maximum allowable size for array element types.
/// </summary>
public const int MaxSizeForValueClassInArray = 0xFFFF;
}
// keep in sync with GC_ALLOC_FLAGS in gcinterface.h
internal enum GC_ALLOC_FLAGS
{
GC_ALLOC_NO_FLAGS = 0,
GC_ALLOC_ZEROING_OPTIONAL = 16,
GC_ALLOC_PINNED_OBJECT_HEAP = 64,
}
internal static class SpecialDispatchMapSlot
{
public const ushort Diamond = 0xFFFE;
public const ushort Reabstraction = 0xFFFF;
}
internal static class SpecialGVMInterfaceEntry
{
public const uint Diamond = 0xFFFFFFFF;
public const uint Reabstraction = 0xFFFFFFFE;
}
internal static class StaticVirtualMethodContextSource
{
public const ushort None = 0;
public const ushort ContextFromThisClass = 1;
public const ushort ContextFromFirstInterface = 2;
}
internal enum RuntimeHelperKind
{
AllocateObject,
IsInst,
CastClass,
AllocateArray,
}
/// <summary>
/// Constants that describe the bits of the Flags field of MethodFixupCell.
/// </summary>
internal static class MethodFixupCellFlagsConstants
{
public const int CharSetMask = 0x7;
public const int IsObjectiveCMessageSendMask = 0x8;
public const int ObjectiveCMessageSendFunctionMask = 0x70;
public const int ObjectiveCMessageSendFunctionShift = 4;
}
}
|