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