Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/controlflow/SLIfNode.java @ 16855:226552569e34
SL: refactored new naming for condition profiles.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 18 Aug 2014 21:02:51 +0200 |
parents | e3724f25056a |
children | fa5e62620593 |
comparison
equal
deleted
inserted
replaced
16854:fc6f12ee71e5 | 16855:226552569e34 |
---|---|
46 @Child private SLStatementNode elsePartNode; | 46 @Child private SLStatementNode elsePartNode; |
47 | 47 |
48 /** | 48 /** |
49 * Profiling information, collected by the interpreter, capturing the profiling information of | 49 * Profiling information, collected by the interpreter, capturing the profiling information of |
50 * the condition. This allows the compiler to generate better code for conditions that are | 50 * the condition. This allows the compiler to generate better code for conditions that are |
51 * always true or always false. Additionally the {@link IntegerConditionProfile} implementation | 51 * always true or always false. Additionally the {@link CountingConditionProfile} implementation |
52 * (as opposed to {@link BooleanConditionProfile} implementation) transmits the probability of | 52 * (as opposed to {@link BinaryConditionProfile} implementation) transmits the probability of |
53 * the condition to be true to the compiler. | 53 * the condition to be true to the compiler. |
54 */ | 54 */ |
55 private final ConditionProfile condition = new IntegerConditionProfile(); | 55 private final ConditionProfile condition = new CountingConditionProfile(); |
56 | 56 |
57 public SLIfNode(SourceSection src, SLExpressionNode conditionNode, SLStatementNode thenPartNode, SLStatementNode elsePartNode) { | 57 public SLIfNode(SourceSection src, SLExpressionNode conditionNode, SLStatementNode thenPartNode, SLStatementNode elsePartNode) { |
58 super(src); | 58 super(src); |
59 this.conditionNode = conditionNode; | 59 this.conditionNode = conditionNode; |
60 this.thenPartNode = thenPartNode; | 60 this.thenPartNode = thenPartNode; |