1 | // |
2 | // Copyright (c) Microsoft. All rights reserved. |
3 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
4 | // |
5 | |
6 | //---------------------------------------------------------- |
7 | // lwmlist.h - List of all LightWeightMap in MethodContext. |
8 | // To use, #define LWM(map, key, value) to something. |
9 | // If you need to distinguish DenseLightWeightMap, #define DENSELWM(map, value) as well. |
10 | //---------------------------------------------------------- |
11 | |
12 | #ifndef LWM |
13 | #error Define LWM before including this file. |
14 | #endif |
15 | |
16 | // If the key is needed, then DENSELWM must be defined. |
17 | #ifndef DENSELWM |
18 | #define DENSELWM(map, value) LWM(map, this_is_an_error, value) |
19 | #endif |
20 | |
21 | LWM(AppendClassName, Agnostic_AppendClassName, DWORD) |
22 | LWM(AreTypesEquivalent, DLDL, DWORD) |
23 | LWM(AsCorInfoType, DWORDLONG, DWORD) |
24 | LWM(CanAccessClass, Agnostic_CanAccessClassIn, Agnostic_CanAccessClassOut) |
25 | LWM(CanAccessFamily, DLDL, DWORD) |
26 | LWM(CanCast, DLDL, DWORD) |
27 | LWM(CanGetCookieForPInvokeCalliSig, CanGetCookieForPInvokeCalliSigValue, DWORD) |
28 | LWM(CanGetVarArgsHandle, CanGetVarArgsHandleValue, DWORD) |
29 | LWM(CanInline, DLDL, Agnostic_CanInline) |
30 | LWM(CanInlineTypeCheck, DLD, DWORD) |
31 | LWM(CanInlineTypeCheckWithObjectVTable, DWORDLONG, DWORD) |
32 | LWM(CanSkipMethodVerification, DLD, DWORD) |
33 | LWM(CanTailCall, Agnostic_CanTailCall, DWORD) |
34 | LWM(CheckMethodModifier, Agnostic_CheckMethodModifier, DWORD) |
35 | LWM(CompareTypesForCast, DLDL, DWORD) |
36 | LWM(CompareTypesForEquality, DLDL, DWORD) |
37 | LWM(CompileMethod, DWORD, Agnostic_CompileMethod) |
38 | LWM(ConstructStringLiteral, DLD, DLD) |
39 | LWM(ConvertPInvokeCalliToCall, DLD, DWORDLONG) |
40 | LWM(EmbedClassHandle, DWORDLONG, DLDL) |
41 | LWM(EmbedFieldHandle, DWORDLONG, DLDL) |
42 | LWM(EmbedGenericHandle, Agnostic_EmbedGenericHandle, Agnostic_CORINFO_GENERICHANDLE_RESULT) |
43 | LWM(EmbedMethodHandle, DWORDLONG, DLDL) |
44 | LWM(EmbedModuleHandle, DWORDLONG, DLDL) |
45 | DENSELWM(EmptyStringLiteral, DLD) |
46 | DENSELWM(ErrorList, DWORD) |
47 | LWM(FilterException, DWORD, DWORD) |
48 | LWM(FindCallSiteSig, Agnostic_FindCallSiteSig, Agnostic_CORINFO_SIG_INFO) |
49 | LWM(FindNameOfToken, DLD, DLD) |
50 | LWM(FindSig, Agnostic_FindSig, Agnostic_CORINFO_SIG_INFO) |
51 | LWM(GetAddressOfPInvokeFixup, DWORDLONG, DLDL) |
52 | LWM(GetAddressOfPInvokeTarget, DWORDLONG, DLD) |
53 | LWM(GetAddrOfCaptureThreadGlobal, DWORD, DLDL) |
54 | LWM(GetArgClass, GetArgClassValue, Agnostic_GetArgClass_Value) |
55 | LWM(GetArgNext, DWORDLONG, DWORDLONG) |
56 | LWM(GetArgType, GetArgTypeValue, Agnostic_GetArgType_Value) |
57 | LWM(GetArrayInitializationData, DLD, DWORDLONG) |
58 | LWM(GetArrayRank, DWORDLONG, DWORD) |
59 | LWM(GetBBProfileData, DWORDLONG, Agnostic_GetBBProfileData) |
60 | LWM(GetBoundaries, DWORDLONG, Agnostic_GetBoundaries) |
61 | LWM(GetBoxHelper, DWORDLONG, DWORD) |
62 | LWM(GetBuiltinClass, DWORD, DWORDLONG) |
63 | LWM(GetCallInfo, Agnostic_GetCallInfo, Agnostic_CORINFO_CALL_INFO) |
64 | LWM(GetCastingHelper, Agnostic_GetCastingHelper, DWORD) |
65 | LWM(GetChildType, DWORDLONG, DLD) |
66 | LWM(GetClassAlignmentRequirement, DLD, DWORD) |
67 | LWM(GetClassAttribs, DWORDLONG, DWORD) |
68 | LWM(GetClassDomainID, DWORDLONG, DLD) |
69 | LWM(GetClassGClayout, DWORDLONG, Agnostic_GetClassGClayout) |
70 | LWM(GetClassModuleIdForStatics, DWORDLONG, Agnostic_GetClassModuleIdForStatics) |
71 | LWM(GetClassName, DWORDLONG, DWORD) |
72 | LWM(GetClassNameFromMetadata, DLD, DD) |
73 | LWM(GetTypeInstantiationArgument, DWORDLONG, DWORDLONG) |
74 | LWM(GetClassNumInstanceFields, DWORDLONG, DWORD) |
75 | LWM(GetClassSize, DWORDLONG, DWORD) |
76 | LWM(GetHeapClassSize, DWORDLONG, DWORD) |
77 | LWM(CanAllocateOnStack, DWORDLONG, DWORD) |
78 | LWM(GetCookieForPInvokeCalliSig, GetCookieForPInvokeCalliSigValue, DLDL) |
79 | LWM(GetDefaultEqualityComparerClass, DWORDLONG, DWORDLONG) |
80 | LWM(GetDelegateCtor, Agnostic_GetDelegateCtorIn, Agnostic_GetDelegateCtorOut) |
81 | LWM(GetEEInfo, DWORD, Agnostic_CORINFO_EE_INFO) |
82 | LWM(GetEHinfo, DLD, Agnostic_CORINFO_EH_CLAUSE) |
83 | LWM(GetFieldAddress, DWORDLONG, Agnostic_GetFieldAddress) |
84 | LWM(GetStaticFieldCurrentClass, DWORDLONG, Agnostic_GetStaticFieldCurrentClass) |
85 | LWM(GetFieldClass, DWORDLONG, DWORDLONG) |
86 | LWM(GetFieldInClass, DLD, DWORDLONG) |
87 | LWM(GetFieldInfo, Agnostic_GetFieldInfo, Agnostic_CORINFO_FIELD_INFO) |
88 | LWM(GetFieldName, DWORDLONG, DD) |
89 | LWM(GetFieldOffset, DWORDLONG, DWORD) |
90 | LWM(GetFieldThreadLocalStoreID, DWORDLONG, DLD) |
91 | LWM(GetFieldType, DLDL, DLD) |
92 | LWM(GetFunctionEntryPoint, DLD, DLD) |
93 | LWM(GetFunctionFixedEntryPoint, DWORDLONG, Agnostic_CORINFO_CONST_LOOKUP) |
94 | LWM(GetGSCookie, DWORD, DLDL) |
95 | LWM(GetHelperFtn, DWORD, DLDL) |
96 | LWM(GetHelperName, DWORD, DWORD) |
97 | LWM(GetHFAType, DWORDLONG, DWORD) |
98 | LWM(GetInlinedCallFrameVptr, DWORD, DLDL) |
99 | LWM(GetIntConfigValue, Agnostic_ConfigIntInfo, DWORD) |
100 | LWM(GetIntrinsicID, DWORDLONG, DD) |
101 | LWM(GetJitFlags, DWORD, DD) |
102 | LWM(GetJitTimeLogFilename, DWORD, DWORD) |
103 | LWM(GetJustMyCodeHandle, DWORDLONG, DLDL) |
104 | LWM(GetLazyStringLiteralHelper, DWORDLONG, DWORD) |
105 | LWM(GetLocationOfThisType, DWORDLONG, Agnostic_CORINFO_LOOKUP_KIND) |
106 | LWM(GetMethodAttribs, DWORDLONG, DWORD) |
107 | LWM(GetMethodClass, DWORDLONG, DWORDLONG) |
108 | LWM(GetMethodDefFromMethod, DWORDLONG, DWORD) |
109 | LWM(GetMethodHash, DWORDLONG, DWORD) |
110 | LWM(GetMethodInfo, DWORDLONG, Agnostic_GetMethodInfo) |
111 | LWM(GetMethodName, DLD, DD) |
112 | LWM(GetMethodNameFromMetadata, Agnostic_CORINFO_METHODNAME_TOKENin, Agnostic_CORINFO_METHODNAME_TOKENout) |
113 | LWM(GetMethodSig, DLDL, Agnostic_CORINFO_SIG_INFO) |
114 | LWM(GetMethodSync, DWORDLONG, DLDL) |
115 | LWM(GetMethodVTableOffset, DWORDLONG, DDD) |
116 | LWM(GetNewArrHelper, DWORDLONG, DWORD) |
117 | LWM(GetNewHelper, Agnostic_GetNewHelper, DD) |
118 | LWM(GetParentType, DWORDLONG, DWORDLONG) |
119 | LWM(GetPInvokeUnmanagedTarget, DWORDLONG, DLDL) |
120 | LWM(GetProfilingHandle, DWORD, Agnostic_GetProfilingHandle) |
121 | LWM(GetReadyToRunHelper, GetReadyToRunHelper_TOKENin, GetReadyToRunHelper_TOKENout) |
122 | LWM(GetReadyToRunDelegateCtorHelper, GetReadyToRunDelegateCtorHelper_TOKENIn, Agnostic_CORINFO_LOOKUP) |
123 | LWM(GetRelocTypeHint, DWORDLONG, DWORD) |
124 | LWM(GetSecurityPrologHelper, DWORDLONG, DWORD) |
125 | LWM(GetSharedCCtorHelper, DWORDLONG, DWORD) |
126 | LWM(GetStringConfigValue, DWORD, DWORD) |
127 | LWM(GetSystemVAmd64PassStructInRegisterDescriptor, DWORDLONG, Agnostic_GetSystemVAmd64PassStructInRegisterDescriptor) |
128 | LWM(GetTailCallCopyArgsThunk, Agnostic_GetTailCallCopyArgsThunk, DWORDLONG) |
129 | LWM(GetThreadTLSIndex, DWORD, DLD) |
130 | LWM(GetTokenTypeAsHandle, GetTokenTypeAsHandleValue, DWORDLONG) |
131 | LWM(GetTypeForBox, DWORDLONG, DWORDLONG) |
132 | LWM(GetTypeForPrimitiveValueClass, DWORDLONG, DWORD) |
133 | LWM(GetTypeForPrimitiveNumericClass, DWORDLONG, DWORD) |
134 | LWM(GetUnboxedEntry, DWORDLONG, DLD); |
135 | LWM(GetUnBoxHelper, DWORDLONG, DWORD) |
136 | LWM(GetUnmanagedCallConv, DWORDLONG, DWORD) |
137 | LWM(GetVarArgsHandle, GetVarArgsHandleValue, DLDL) |
138 | LWM(GetVars, DWORDLONG, Agnostic_GetVars) |
139 | DENSELWM(HandleException, DWORD) |
140 | LWM(InitClass, Agnostic_InitClass, DWORD) |
141 | LWM(InitConstraintsForVerification, DWORDLONG, DD) |
142 | LWM(IsCompatibleDelegate, Agnostic_IsCompatibleDelegate, DD) |
143 | LWM(IsDelegateCreationAllowed, DLDL, DWORD) |
144 | LWM(IsFieldStatic, DWORDLONG, DWORD) |
145 | LWM(IsInSIMDModule, DWORDLONG, DWORD) |
146 | LWM(IsInstantiationOfVerifiedGeneric, DWORDLONG, DWORD) |
147 | LWM(IsSDArray, DWORDLONG, DWORD) |
148 | LWM(IsStructRequiringStackAllocRetBuf, DWORDLONG, DWORD) |
149 | LWM(IsValidStringRef, DLD, DWORD) |
150 | LWM(IsValidToken, DLD, DWORD) |
151 | LWM(IsValueClass, DWORDLONG, DWORD) |
152 | LWM(IsWriteBarrierHelperRequired, DWORDLONG, DWORD) |
153 | LWM(MergeClasses, DLDL, DWORDLONG) |
154 | LWM(PInvokeMarshalingRequired, PInvokeMarshalingRequiredValue, DWORD) |
155 | LWM(ResolveToken, Agnostic_CORINFO_RESOLVED_TOKENin, ResolveTokenValue) |
156 | LWM(ResolveVirtualMethod, Agnostic_ResolveVirtualMethod, DWORDLONG) |
157 | LWM(TryResolveToken, Agnostic_CORINFO_RESOLVED_TOKENin, TryResolveTokenValue) |
158 | LWM(SatisfiesClassConstraints, DWORDLONG, DWORD) |
159 | LWM(SatisfiesMethodConstraints, DLDL, DWORD) |
160 | LWM(ShouldEnforceCallvirtRestriction, DWORDLONG, DWORD) |
161 | |
162 | #undef LWM |
163 | #undef DENSELWM |
164 | |