Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLContext.java @ 16512:abe7128ca473
SL: upgrade source attribution
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Mon, 14 Jul 2014 16:51:41 -0700 |
parents | 09ac9ac9c4fc |
children | 618d92152d3c |
comparison
equal
deleted
inserted
replaced
16511:aee02665e505 | 16512:abe7128ca473 |
---|---|
119 * Builtin functions are like normal functions, i.e., the arguments are passed in as an | 119 * Builtin functions are like normal functions, i.e., the arguments are passed in as an |
120 * Object[] array encapsulated in SLArguments. A SLReadArgumentNode extracts a parameter | 120 * Object[] array encapsulated in SLArguments. A SLReadArgumentNode extracts a parameter |
121 * from this array. | 121 * from this array. |
122 */ | 122 */ |
123 for (int i = 0; i < argumentCount; i++) { | 123 for (int i = 0; i < argumentCount; i++) { |
124 argumentNodes[i] = new SLReadArgumentNode(i); | 124 argumentNodes[i] = new SLReadArgumentNode(null, i); |
125 } | 125 } |
126 /* Instantiate the builtin node. This node performs the actual functionality. */ | 126 /* Instantiate the builtin node. This node performs the actual functionality. */ |
127 SLBuiltinNode builtinBodyNode = factory.createNode(argumentNodes, this); | 127 SLBuiltinNode builtinBodyNode = factory.createNode(argumentNodes, this); |
128 /* The name of the builtin function is specified via an annotation on the node class. */ | 128 /* The name of the builtin function is specified via an annotation on the node class. */ |
129 String name = builtinBodyNode.getClass().getAnnotation(NodeInfo.class).shortName(); | 129 String name = builtinBodyNode.getClass().getAnnotation(NodeInfo.class).shortName(); |