comparison src/share/vm/oops/methodOop.cpp @ 4979:18a5539bf19b

More diff vs hsx24 optimizations.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Mon, 27 Feb 2012 21:43:51 +0100
parents 33df1aeaebbf
children 95b8a32a7cc3
comparison
equal deleted inserted replaced
4978:99d3d8a72252 4979:18a5539bf19b
205 assert(bci == -1 || bci == bci_from(bcp_from(bci)), "sane bci if >=0"); 205 assert(bci == -1 || bci == bci_from(bcp_from(bci)), "sane bci if >=0");
206 return bci; 206 return bci;
207 } 207 }
208 208
209 address methodOopDesc::bcp_from(int bci) const { 209 address methodOopDesc::bcp_from(int bci) const {
210 #ifdef ASSERT
211 if (!((is_native() && bci == 0) || (!is_native() && 0 <= bci && bci < code_size()))) {
212 char buf[1024];
213 tty->print_cr("bci: %i, size: %i, method: %s", bci, code_size(), const_cast<methodOop>(this)->name_and_sig_as_C_string(buf, 1024));
214 }
215 #endif // ASSERT
216 assert((is_native() && bci == 0) || (!is_native() && 0 <= bci && bci < code_size()), "illegal bci"); 210 assert((is_native() && bci == 0) || (!is_native() && 0 <= bci && bci < code_size()), "illegal bci");
217 address bcp = code_base() + bci; 211 address bcp = code_base() + bci;
218 assert(is_native() && bcp == code_base() || contains(bcp), "bcp doesn't belong to this method"); 212 assert(is_native() && bcp == code_base() || contains(bcp), "bcp doesn't belong to this method");
219 return bcp; 213 return bcp;
220 } 214 }