212 T_ADDRESS, // T_ADDRESS = 15, |
212 T_ADDRESS, // T_ADDRESS = 15, |
213 T_CONFLICT // T_CONFLICT = 16, |
213 T_CONFLICT // T_CONFLICT = 16, |
214 }; |
214 }; |
215 |
215 |
216 |
216 |
217 int type2aelembytes[T_CONFLICT+1] = { |
217 int _type2aelembytes[T_CONFLICT+1] = { |
218 0, // 0 |
218 0, // 0 |
219 0, // 1 |
219 0, // 1 |
220 0, // 2 |
220 0, // 2 |
221 0, // 3 |
221 0, // 3 |
222 T_BOOLEAN_aelem_bytes, // T_BOOLEAN = 4, |
222 T_BOOLEAN_aelem_bytes, // T_BOOLEAN = 4, |
228 T_INT_aelem_bytes, // T_INT = 10, |
228 T_INT_aelem_bytes, // T_INT = 10, |
229 T_LONG_aelem_bytes, // T_LONG = 11, |
229 T_LONG_aelem_bytes, // T_LONG = 11, |
230 T_OBJECT_aelem_bytes, // T_OBJECT = 12, |
230 T_OBJECT_aelem_bytes, // T_OBJECT = 12, |
231 T_ARRAY_aelem_bytes, // T_ARRAY = 13, |
231 T_ARRAY_aelem_bytes, // T_ARRAY = 13, |
232 0, // T_VOID = 14, |
232 0, // T_VOID = 14, |
233 T_INT_aelem_bytes, // T_ADDRESS = 15, |
233 T_OBJECT_aelem_bytes, // T_ADDRESS = 15, |
234 0 // T_CONFLICT = 16, |
234 0 // T_CONFLICT = 16, |
235 }; |
235 }; |
236 |
236 |
|
237 #ifdef ASSERT |
|
238 int type2aelembytes(BasicType t, bool allow_address) { |
|
239 assert(allow_address || t != T_ADDRESS, " "); |
|
240 return _type2aelembytes[t]; |
|
241 } |
|
242 #endif |
237 |
243 |
238 // Support for 64-bit integer arithmetic |
244 // Support for 64-bit integer arithmetic |
239 |
245 |
240 // The following code is mostly taken from JVM typedefs_md.h and system_md.c |
246 // The following code is mostly taken from JVM typedefs_md.h and system_md.c |
241 |
247 |