Mercurial > hg > truffle
diff graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiResolvedMethod.java @ 4594:eb6df44a1374
bugfixes, added bytecode complexity estimation
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Tue, 14 Feb 2012 13:53:25 -0800 |
parents | e6e14d25e608 |
children | fdd9dd4508fa |
line wrap: on
line diff
--- a/graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiResolvedMethod.java Tue Feb 14 10:21:38 2012 -0800 +++ b/graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiResolvedMethod.java Tue Feb 14 13:53:25 2012 -0800 @@ -55,6 +55,12 @@ int compiledCodeSize(); /** + * Gets an estimate how complex it is to compile this method. + * @return A value >= 0, where higher means more complex. + */ + int compilationComplexity(); + + /** * Gets the symbol used to link this method if it is native, otherwise {@code null}. */ String jniSymbol();