Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/controlflow/SLContinueNode.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 | 111bf82514ca |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/controlflow/SLContinueNode.java Thu Jan 30 17:52:24 2014 -0800 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/controlflow/SLContinueNode.java Thu Jan 30 17:53:27 2014 -0800 @@ -26,6 +26,12 @@ import com.oracle.truffle.api.nodes.*; import com.oracle.truffle.sl.nodes.*; +/** + * Implementation of the SL continue statement. We need to unwind an unknown number of interpreter + * frames that are between this {@link SLContinueNode} and the {@link SLWhileNode} of the loop we + * are continuing. This is done by throwing an {@link SLContinueException exception} that is caught + * by the {@link SLWhileNode#executeVoid loop node}. + */ @NodeInfo(shortName = "continue") public final class SLContinueNode extends SLStatementNode {