equal
deleted
inserted
replaced
249 return; |
249 return; |
250 } |
250 } |
251 |
251 |
252 |
252 |
253 int Method::bci_from(address bcp) const { |
253 int Method::bci_from(address bcp) const { |
|
254 #ifdef ASSERT |
|
255 { ResourceMark rm; |
254 assert(is_native() && bcp == code_base() || contains(bcp) || is_error_reported(), |
256 assert(is_native() && bcp == code_base() || contains(bcp) || is_error_reported(), |
255 err_msg("bcp doesn't belong to this method: bcp: " INTPTR_FORMAT ", method: %s", bcp, name_and_sig_as_C_string())); |
257 err_msg("bcp doesn't belong to this method: bcp: " INTPTR_FORMAT ", method: %s", bcp, name_and_sig_as_C_string())); |
|
258 } |
|
259 #endif |
256 return bcp - code_base(); |
260 return bcp - code_base(); |
257 } |
261 } |
258 |
262 |
259 |
263 |
260 // Return (int)bcx if it appears to be a valid BCI. |
264 // Return (int)bcx if it appears to be a valid BCI. |