Mercurial > hg > graal-compiler
diff graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiProfilingInfo.java @ 4441:4e3aaf14cbc6
fixed graal to hotspot
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Mon, 23 Jan 2012 13:22:43 -0800 |
parents | 271220b49abc |
children | 9e8e92c3ff17 |
line wrap: on
line diff
--- a/graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiProfilingInfo.java Fri Jan 20 18:24:17 2012 -0800 +++ b/graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiProfilingInfo.java Mon Jan 23 13:22:43 2012 -0800 @@ -35,23 +35,17 @@ /** * Returns an estimate of how often the switch cases are taken at the given BCI. - * @return An array of double values that contains the estimated probabilities, with 0.0 meaning never and 1.0 meaning always, - * or null if this information is not available. The default case is stored as the last entry. + * The default case is stored as the last entry. + * @return A double value that contains the estimated probabilities, with 0.0 meaning never and 1.0 meaning always, + * or -1 if this information is not available. */ double[] getSwitchProbabilities(int bci); /** - * Returns all types that were encountered at the given BCI. - * @return An array containing all types that were encountered during profiling at the given BCI, or null if not available. + * Returns the TypeProfile for the given BCI. + * @return Returns an RiTypeProfile object, or null if not available. */ - RiResolvedType[] getTypes(int bci); - - /** - * Returns an estimate of how often each individual type is encountered at the given BCI. - * @return An array of double values that contains the estimated probabilities, with 0.0 meaning never and 1.0 meaning always, - * or null if this information is not available. - */ - double[] getTypeProbabilities(int bci); + RiTypeProfile getTypeProfile(int bci); /** * Returns true if the given BCI did throw an implicit exception (NullPointerException, ClassCastException,