comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeCost.java @ 17170:fe5d4383b505

use supplied canonicalizer in TruffleCacheImpl
author Lukas Stadler <lukas.stadler@oracle.com>
date Mon, 22 Sep 2014 12:17:02 +0200
parents 6681b9eb3f4c
children 5787218bad91
comparison
equal deleted inserted replaced
17169:a8c0553cb2e4 17170:fe5d4383b505
27 import com.oracle.truffle.api.*; 27 import com.oracle.truffle.api.*;
28 28
29 /** 29 /**
30 * Represents a rough estimate for the cost of a {@link Node}. This estimate can be used by runtime 30 * Represents a rough estimate for the cost of a {@link Node}. This estimate can be used by runtime
31 * systems or guest languages to implement heuristics based on Truffle ASTs. 31 * systems or guest languages to implement heuristics based on Truffle ASTs.
32 * 32 *
33 * @see Node#getCost() 33 * @see Node#getCost()
34 */ 34 */
35 public enum NodeCost { 35 public enum NodeCost {
36 36
37 /** 37 /**
52 */ 52 */
53 MONOMORPHIC, 53 MONOMORPHIC,
54 54
55 /** 55 /**
56 * This node represents a polymorphic version of an operation. For multiple chained polymorphic 56 * This node represents a polymorphic version of an operation. For multiple chained polymorphic
57 * nodes the first may return {@link #MONOMORPHIC} and all addtional nodes should return 57 * nodes the first may return {@link #MONOMORPHIC} and all additional nodes should return
58 * {@link #POLYMORPHIC}. 58 * {@link #POLYMORPHIC}.
59 */ 59 */
60 POLYMORPHIC, 60 POLYMORPHIC,
61 61
62 /** 62 /**