public class DefaultInliningPolicy extends Object implements TruffleInliningPolicy
Modifier and Type | Field and Description |
---|---|
private static String |
REASON_MAXIMUM_NODE_COUNT |
private static String |
REASON_MAXIMUM_TOTAL_NODE_COUNT |
private static String |
REASON_RECURSION |
Constructor and Description |
---|
DefaultInliningPolicy() |
Modifier and Type | Method and Description |
---|---|
double |
calculateScore(TruffleInliningProfile profile) |
boolean |
isAllowed(TruffleInliningProfile profile,
int currentNodeCount,
com.oracle.truffle.api.CompilerOptions options) |
private static final String REASON_RECURSION
private static final String REASON_MAXIMUM_NODE_COUNT
private static final String REASON_MAXIMUM_TOTAL_NODE_COUNT
public DefaultInliningPolicy()
public double calculateScore(TruffleInliningProfile profile)
calculateScore
in interface TruffleInliningPolicy
public boolean isAllowed(TruffleInliningProfile profile, int currentNodeCount, com.oracle.truffle.api.CompilerOptions options)
isAllowed
in interface TruffleInliningPolicy