use of jdk.vm.ci.meta.JavaMethodProfile.ProfiledMethod in project graal by oracle.
the class StaticAnalysisResultsBuilder method createMethodProfile.
private JavaMethodProfile createMethodProfile(Collection<AnalysisMethod> callees) {
ProfiledMethod[] pitems = new ProfiledMethod[callees.size()];
double probability = 1d / pitems.length;
int idx = 0;
for (AnalysisMethod aMethod : callees) {
ResolvedJavaMethod convertedMethod = converter == null ? aMethod : converter.lookup(aMethod);
pitems[idx++] = new ProfiledMethod(convertedMethod, probability);
}
return new JavaMethodProfile(0, pitems);
}
Aggregations