Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
13835:67e4e7f56911 | 13836:64c77f0577bb |
---|---|
24 | 24 |
25 import com.oracle.truffle.api.frame.*; | 25 import com.oracle.truffle.api.frame.*; |
26 import com.oracle.truffle.api.nodes.*; | 26 import com.oracle.truffle.api.nodes.*; |
27 import com.oracle.truffle.sl.nodes.*; | 27 import com.oracle.truffle.sl.nodes.*; |
28 | 28 |
29 /** | |
30 * Implementation of the SL continue statement. We need to unwind an unknown number of interpreter | |
31 * frames that are between this {@link SLContinueNode} and the {@link SLWhileNode} of the loop we | |
32 * are continuing. This is done by throwing an {@link SLContinueException exception} that is caught | |
33 * by the {@link SLWhileNode#executeVoid loop node}. | |
34 */ | |
29 @NodeInfo(shortName = "continue") | 35 @NodeInfo(shortName = "continue") |
30 public final class SLContinueNode extends SLStatementNode { | 36 public final class SLContinueNode extends SLStatementNode { |
31 | 37 |
32 @Override | 38 @Override |
33 public void executeVoid(VirtualFrame frame) { | 39 public void executeVoid(VirtualFrame frame) { |