1309
1310 // Format jlong, if necessary
1311 #ifndef JLONG_FORMAT
1312 #define JLONG_FORMAT INT64_FORMAT
1313 #endif
1314 #ifndef JULONG_FORMAT
1315 #define JULONG_FORMAT UINT64_FORMAT
1316 #endif
1317
1318 // Format pointers which change size between 32- and 64-bit.
1319 #ifdef _LP64
1320 #define INTPTR_FORMAT "0x%016" PRIxPTR
1321 #define PTR_FORMAT "0x%016" PRIxPTR
1322 #else // !_LP64
1323 #define INTPTR_FORMAT "0x%08" PRIxPTR
1324 #define PTR_FORMAT "0x%08" PRIxPTR
1325 #endif // _LP64
1326
1327 #define SSIZE_FORMAT "%" PRIdPTR
1328 #define SIZE_FORMAT "%" PRIuPTR
1329 #define SSIZE_FORMAT_W(width) "%" #width PRIdPTR
1330 #define SIZE_FORMAT_W(width) "%" #width PRIuPTR
1331
1332 #define INTX_FORMAT "%" PRIdPTR
1333 #define UINTX_FORMAT "%" PRIuPTR
1334 #define INTX_FORMAT_W(width) "%" #width PRIdPTR
1335 #define UINTX_FORMAT_W(width) "%" #width PRIuPTR
1336
1337
1338 // Enable zap-a-lot if in debug version.
1339
1340 # ifdef ASSERT
1341 # ifdef COMPILER2
1342 # define ENABLE_ZAP_DEAD_LOCALS
1343 #endif /* COMPILER2 */
1344 # endif /* ASSERT */
1345
1346 #define ARRAY_SIZE(array) (sizeof(array)/sizeof((array)[0]))
1347
1348 // Dereference vptr
1349 // All C++ compilers that we know of have the vtbl pointer in the first
1350 // word. If there are exceptions, this function needs to be made compiler
|
1309
1310 // Format jlong, if necessary
1311 #ifndef JLONG_FORMAT
1312 #define JLONG_FORMAT INT64_FORMAT
1313 #endif
1314 #ifndef JULONG_FORMAT
1315 #define JULONG_FORMAT UINT64_FORMAT
1316 #endif
1317
1318 // Format pointers which change size between 32- and 64-bit.
1319 #ifdef _LP64
1320 #define INTPTR_FORMAT "0x%016" PRIxPTR
1321 #define PTR_FORMAT "0x%016" PRIxPTR
1322 #else // !_LP64
1323 #define INTPTR_FORMAT "0x%08" PRIxPTR
1324 #define PTR_FORMAT "0x%08" PRIxPTR
1325 #endif // _LP64
1326
1327 #define SSIZE_FORMAT "%" PRIdPTR
1328 #define SIZE_FORMAT "%" PRIuPTR
1329 #define SIZE_FORMAT_HEX "0x%" PRIxPTR
1330 #define SSIZE_FORMAT_W(width) "%" #width PRIdPTR
1331 #define SIZE_FORMAT_W(width) "%" #width PRIuPTR
1332 #define SIZE_FORMAT_HEX_W(width) "0x%" #width PRIxPTR
1333
1334 #define INTX_FORMAT "%" PRIdPTR
1335 #define UINTX_FORMAT "%" PRIuPTR
1336 #define INTX_FORMAT_W(width) "%" #width PRIdPTR
1337 #define UINTX_FORMAT_W(width) "%" #width PRIuPTR
1338
1339
1340 // Enable zap-a-lot if in debug version.
1341
1342 # ifdef ASSERT
1343 # ifdef COMPILER2
1344 # define ENABLE_ZAP_DEAD_LOCALS
1345 #endif /* COMPILER2 */
1346 # endif /* ASSERT */
1347
1348 #define ARRAY_SIZE(array) (sizeof(array)/sizeof((array)[0]))
1349
1350 // Dereference vptr
1351 // All C++ compilers that we know of have the vtbl pointer in the first
1352 // word. If there are exceptions, this function needs to be made compiler
|