159 return; |
159 return; |
160 } |
160 } |
161 |
161 |
162 |
162 |
163 int methodOopDesc::bci_from(address bcp) const { |
163 int methodOopDesc::bci_from(address bcp) const { |
164 assert(is_native() && bcp == code_base() || contains(bcp), "bcp doesn't belong to this method"); |
164 assert(is_native() && bcp == code_base() || contains(bcp) || is_error_reported(), "bcp doesn't belong to this method"); |
165 return bcp - code_base(); |
165 return bcp - code_base(); |
166 } |
166 } |
167 |
167 |
168 |
168 |
169 // Return (int)bcx if it appears to be a valid BCI. |
169 // Return (int)bcx if it appears to be a valid BCI. |