diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeInfo.java @ 14566:6681b9eb3f4c

Truffle: API cleanup and javadoc for CallNodes.
author Christian Humer <christian.humer@gmail.com>
date Mon, 17 Mar 2014 14:29:45 +0100
parents 5d1308c78ddc
children 4293efaaab76
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeInfo.java	Mon Mar 17 14:29:45 2014 +0100
+++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeInfo.java	Mon Mar 17 14:29:45 2014 +0100
@@ -40,21 +40,13 @@
      */
     String shortName() default "";
 
+    /**
+     * Provides a rough estimate for the cost of the annotated {@link Node}. This estimate can be
+     * used by runtime systems or guest languages to implement heuristics based on Truffle ASTs.
+     * 
+     * @see Node#getCost()
+     * @see NodeCost
+     */
     NodeCost cost() default NodeCost.MONOMORPHIC;
 
-    /**
-     * @deprecated use {@link NodeInfo#cost()} instead.
-     */
-    @Deprecated
-    Kind kind() default Kind.SPECIALIZED;
-
-    /**
-     * 
-     * @deprecated use {@link NodeCost} instead.
-     */
-    @Deprecated
-    public enum Kind {
-        UNINITIALIZED, SPECIALIZED, POLYMORPHIC, GENERIC
-    }
-
 }