Mercurial > hg > graal-compiler
comparison src/share/vm/oops/methodOop.cpp @ 726:be93aad57795
6655646: dynamic languages need dynamically linked call sites
Summary: invokedynamic instruction (JSR 292 RI)
Reviewed-by: twisti, never
author | jrose |
---|---|
date | Tue, 21 Apr 2009 23:21:04 -0700 |
parents | e5b0439ef4ae |
children | 75596850f863 |
comparison
equal
deleted
inserted
replaced
725:928912ce8438 | 726:be93aad57795 |
---|---|
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. |