Searched refs:weightCache (Results 1 - 2 of 2) sorted by relevance
/openjdk9/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/ |
H A D | Splitter.java | 66 private final Map<Node, Long> weightCache = new HashMap<>(); field in class:Splitter 119 weight = WeighNodes.weigh(functionNode, weightCache); 126 weight = WeighNodes.weigh(functionNode.getBody(), weightCache); 203 final long weight = WeighNodes.weigh(statement, weightCache); 252 final long weight = WeighNodes.weigh(block, weightCache); 255 weightCache.put(block, weight); 270 long weight = WeighNodes.weigh(block, weightCache); 274 weight = WeighNodes.weigh(newBlock, weightCache); 277 weightCache.put(newBlock, weight);
|
H A D | WeighNodes.java | 100 private final Map<Node, Long> weightCache; field in class:WeighNodes 107 * @param weightCache cache of already calculated block weights 109 private WeighNodes(final FunctionNode topFunction, final Map<Node, Long> weightCache) { argument 112 this.weightCache = weightCache; 119 static long weigh(final Node node, final Map<Node, Long> weightCache) { argument 120 final WeighNodes weighNodes = new WeighNodes(node instanceof FunctionNode ? (FunctionNode)node : null, weightCache); 133 if (weightCache != null && weightCache.containsKey(block)) { 134 weight += weightCache [all...] |
Completed in 90 milliseconds