Mercurial > hg > truffle
comparison graal/com.oracle.graal.java/src/com/oracle/graal/java/ComputeLoopFrequenciesClosure.java @ 18995:a2cb19764970
Rename MergeNode to AbstractMergeNode.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Wed, 28 Jan 2015 01:04:20 +0100 |
parents | 480bd3b1adcd |
children | c5d5bbf7ec6c |
comparison
equal
deleted
inserted
replaced
18994:8b4ef818169c | 18995:a2cb19764970 |
---|---|
43 // normal nodes never change the probability of a path | 43 // normal nodes never change the probability of a path |
44 return currentState; | 44 return currentState; |
45 } | 45 } |
46 | 46 |
47 @Override | 47 @Override |
48 protected Double merge(MergeNode merge, List<Double> states) { | 48 protected Double merge(AbstractMergeNode merge, List<Double> states) { |
49 // a merge has the sum of all predecessor probabilities | 49 // a merge has the sum of all predecessor probabilities |
50 return states.stream().collect(Collectors.summingDouble(d -> d)); | 50 return states.stream().collect(Collectors.summingDouble(d -> d)); |
51 } | 51 } |
52 | 52 |
53 @Override | 53 @Override |