comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeFieldAccessor.java @ 20130:8dc73c226c63

Truffle: cache NodeClass lookup in Node.
author Christian Humer <christian.humer@gmail.com>
date Thu, 02 Apr 2015 01:26:31 +0200
parents 5b7db8941fd7
children
comparison
equal deleted inserted replaced
20129:5b7db8941fd7 20130:8dc73c226c63
36 * Information about a field in a {@link Node} class. 36 * Information about a field in a {@link Node} class.
37 */ 37 */
38 public abstract class NodeFieldAccessor { 38 public abstract class NodeFieldAccessor {
39 39
40 public static enum NodeFieldKind { 40 public static enum NodeFieldKind {
41 /** The reference to the {@link NodeClass}. */
42 NODE_CLASS,
41 /** The single {@link Node#getParent() parent} field. */ 43 /** The single {@link Node#getParent() parent} field. */
42 PARENT, 44 PARENT,
43 /** A field annotated with {@link Child}. */ 45 /** A field annotated with {@link Child}. */
44 CHILD, 46 CHILD,
45 /** A field annotated with {@link Children}. */ 47 /** A field annotated with {@link Children}. */