Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLFunctionLiteralNode.java @ 13836:64c77f0577bb
More documentation and improvements of Simple Language
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Thu, 30 Jan 2014 17:53:27 -0800 |
parents | b16ec83edc73 |
children | c929a4a3b6c5 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLFunctionLiteralNode.java Thu Jan 30 17:52:24 2014 -0800 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLFunctionLiteralNode.java Thu Jan 30 17:53:27 2014 -0800 @@ -22,11 +22,18 @@ */ package com.oracle.truffle.sl.nodes.expression; +import com.oracle.truffle.api.*; import com.oracle.truffle.api.frame.*; import com.oracle.truffle.api.nodes.*; import com.oracle.truffle.sl.nodes.*; import com.oracle.truffle.sl.runtime.*; +/** + * Constant literal for a {@link SLFunction function} value, created when a function name occurs as + * a literal in SL source code. Note that function redefinition can change the {@link CallTarget + * call target} that is executed when calling the function, but the {@link SLFunction} for a name + * never changes. This is guaranteed by the {@link SLFunctionRegistry}. + */ @NodeInfo(shortName = "func") public final class SLFunctionLiteralNode extends SLExpressionNode {