@@ -213,25 +213,10 @@ inline var_types JITtype2varType(CorInfoType type)
213213 TYP_I_IMPL, // CORINFO_TYPE_NATIVEUINT = 0xd,
214214 TYP_FLOAT, // CORINFO_TYPE_FLOAT = 0xe,
215215 TYP_DOUBLE, // CORINFO_TYPE_DOUBLE = 0xf,
216- TYP_REF, // CORINFO_TYPE_STRING = 0x10, // Not used, should remove
217- TYP_I_IMPL, // CORINFO_TYPE_PTR = 0x11,
218- TYP_BYREF, // CORINFO_TYPE_BYREF = 0x12,
219- TYP_STRUCT, // CORINFO_TYPE_VALUECLASS = 0x13,
220- TYP_REF, // CORINFO_TYPE_CLASS = 0x14,
221- TYP_STRUCT, // CORINFO_TYPE_REFANY = 0x15,
222-
223- // Generic type variables only appear when we're doing
224- // verification of generic code, in which case we're running
225- // in "import only" mode. Annoyingly the "import only"
226- // mode of the JIT actually does a fair bit of compilation,
227- // so we have to trick the compiler into thinking it's compiling
228- // a real instantiation. We do that by just pretending we're
229- // compiling the "object" instantiation of the code, i.e. by
230- // turing all generic type variables refs, except for a few
231- // choice places to do with verification, where we use
232- // verification types and CLASS_HANDLEs to track the difference.
233-
234- TYP_REF, // CORINFO_TYPE_VAR = 0x16,
216+ TYP_I_IMPL, // CORINFO_TYPE_PTR = 0x10,
217+ TYP_BYREF, // CORINFO_TYPE_BYREF = 0x11,
218+ TYP_STRUCT, // CORINFO_TYPE_VALUECLASS = 0x12,
219+ TYP_REF, // CORINFO_TYPE_CLASS = 0x13,
235220 };
236221
237222 // spot check to make certain enumerations have not changed
@@ -244,7 +229,6 @@ inline var_types JITtype2varType(CorInfoType type)
244229 assert (varTypeMap[CORINFO_TYPE_DOUBLE] == TYP_DOUBLE);
245230 assert (varTypeMap[CORINFO_TYPE_VOID] == TYP_VOID);
246231 assert (varTypeMap[CORINFO_TYPE_VALUECLASS] == TYP_STRUCT);
247- assert (varTypeMap[CORINFO_TYPE_REFANY] == TYP_STRUCT);
248232
249233 assert (type < CORINFO_TYPE_COUNT);
250234 assert (varTypeMap[type] != TYP_UNDEF);
@@ -274,25 +258,11 @@ inline var_types JitType2PreciseVarType(CorInfoType type)
274258 TYP_U_IMPL, // CORINFO_TYPE_NATIVEUINT = 0xd,
275259 TYP_FLOAT, // CORINFO_TYPE_FLOAT = 0xe,
276260 TYP_DOUBLE, // CORINFO_TYPE_DOUBLE = 0xf,
277- TYP_REF, // CORINFO_TYPE_STRING = 0x10, // Not used, should remove
278- TYP_U_IMPL, // CORINFO_TYPE_PTR = 0x11,
279- TYP_BYREF, // CORINFO_TYPE_BYREF = 0x12,
280- TYP_STRUCT, // CORINFO_TYPE_VALUECLASS = 0x13,
281- TYP_REF, // CORINFO_TYPE_CLASS = 0x14,
282- TYP_STRUCT, // CORINFO_TYPE_REFANY = 0x15,
283-
284- // Generic type variables only appear when we're doing
285- // verification of generic code, in which case we're running
286- // in "import only" mode. Annoyingly the "import only"
287- // mode of the JIT actually does a fair bit of compilation,
288- // so we have to trick the compiler into thinking it's compiling
289- // a real instantiation. We do that by just pretending we're
290- // compiling the "object" instantiation of the code, i.e. by
291- // turing all generic type variables refs, except for a few
292- // choice places to do with verification, where we use
293- // verification types and CLASS_HANDLEs to track the difference.
294-
295- TYP_REF, // CORINFO_TYPE_VAR = 0x16,
261+ TYP_U_IMPL, // CORINFO_TYPE_PTR = 0x10,
262+ TYP_BYREF, // CORINFO_TYPE_BYREF = 0x11,
263+ TYP_STRUCT, // CORINFO_TYPE_VALUECLASS = 0x12,
264+ TYP_REF, // CORINFO_TYPE_CLASS = 0x13,
265+
296266 };
297267
298268 // spot check to make certain enumerations have not changed
@@ -305,7 +275,6 @@ inline var_types JitType2PreciseVarType(CorInfoType type)
305275 assert (preciseVarTypeMap[CORINFO_TYPE_DOUBLE] == TYP_DOUBLE);
306276 assert (preciseVarTypeMap[CORINFO_TYPE_VOID] == TYP_VOID);
307277 assert (preciseVarTypeMap[CORINFO_TYPE_VALUECLASS] == TYP_STRUCT);
308- assert (preciseVarTypeMap[CORINFO_TYPE_REFANY] == TYP_STRUCT);
309278
310279 assert (type < CORINFO_TYPE_COUNT);
311280 assert (preciseVarTypeMap[type] != TYP_UNDEF);
0 commit comments