1320 if (needs_explicit_null_check(offset)) { |
1320 if (needs_explicit_null_check(offset)) { |
1321 // provoke OS NULL exception if reg = NULL by |
1321 // provoke OS NULL exception if reg = NULL by |
1322 // accessing M[reg] w/o changing any (non-CC) registers |
1322 // accessing M[reg] w/o changing any (non-CC) registers |
1323 // NOTE: cmpl is plenty here to provoke a segv |
1323 // NOTE: cmpl is plenty here to provoke a segv |
1324 lw(AT, reg, 0); |
1324 lw(AT, reg, 0); |
1325 /* Jin |
|
1326 nop(); |
|
1327 nop(); |
|
1328 nop(); |
|
1329 */ |
|
1330 // Note: should probably use testl(rax, Address(reg, 0)); |
1325 // Note: should probably use testl(rax, Address(reg, 0)); |
1331 // may be shorter code (however, this version of |
1326 // may be shorter code (however, this version of |
1332 // testl needs to be implemented first) |
1327 // testl needs to be implemented first) |
1333 } else { |
1328 } else { |
1334 // nothing to do, (later) access of M[reg + offset] |
1329 // nothing to do, (later) access of M[reg + offset] |