Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/controlflow/SLReturnNode.java @ 15776:111bf82514ca
SL: adding NodeInfo.descriptions to SL statements
author | Christian Wirth <christian.wirth@oracle.com> |
---|---|
date | Mon, 19 May 2014 18:59:04 +0200 |
parents | a08b8694f556 |
children | abe7128ca473 |
comparison
equal
deleted
inserted
replaced
15775:4293efaaab76 | 15776:111bf82514ca |
---|---|
32 * frames that are between this {@link SLReturnNode} and the {@link SLFunctionBodyNode} of the | 32 * frames that are between this {@link SLReturnNode} and the {@link SLFunctionBodyNode} of the |
33 * method we are exiting. This is done by throwing an {@link SLReturnException exception} that is | 33 * method we are exiting. This is done by throwing an {@link SLReturnException exception} that is |
34 * caught by the {@link SLFunctionBodyNode#executeGeneric function body}. The exception transports | 34 * caught by the {@link SLFunctionBodyNode#executeGeneric function body}. The exception transports |
35 * the return value. | 35 * the return value. |
36 */ | 36 */ |
37 @NodeInfo(shortName = "return") | 37 @NodeInfo(shortName = "return", description = "The node implementing a return statement") |
38 public final class SLReturnNode extends SLStatementNode { | 38 public final class SLReturnNode extends SLStatementNode { |
39 | 39 |
40 @Child private SLExpressionNode valueNode; | 40 @Child private SLExpressionNode valueNode; |
41 | 41 |
42 public SLReturnNode(SLExpressionNode valueNode) { | 42 public SLReturnNode(SLExpressionNode valueNode) { |