hotspot/src/share/vm/oops/method.cpp
changeset 13882 80d5d0d21b75
parent 13738 d67be49a5beb
child 13891 35dabd293e56
equal deleted inserted replaced
13881:a326d528f3e1 13882:80d5d0d21b75
   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.