Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/controlflow/SLBreakNode.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 | 111bf82514ca |
children |
comparison
equal
deleted
inserted
replaced
16511:aee02665e505 | 16512:abe7128ca473 |
---|---|
22 */ | 22 */ |
23 package com.oracle.truffle.sl.nodes.controlflow; | 23 package com.oracle.truffle.sl.nodes.controlflow; |
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.api.source.*; | |
27 import com.oracle.truffle.sl.nodes.*; | 28 import com.oracle.truffle.sl.nodes.*; |
28 | 29 |
29 /** | 30 /** |
30 * Implementation of the SL break statement. We need to unwind an unknown number of interpreter | 31 * Implementation of the SL break statement. We need to unwind an unknown number of interpreter |
31 * frames that are between this {@link SLBreakNode} and the {@link SLWhileNode} of the loop we are | 32 * frames that are between this {@link SLBreakNode} and the {@link SLWhileNode} of the loop we are |
33 * the {@link SLWhileNode#executeVoid loop node}. | 34 * the {@link SLWhileNode#executeVoid loop node}. |
34 */ | 35 */ |
35 @NodeInfo(shortName = "break", description = "The node implementing a break statement") | 36 @NodeInfo(shortName = "break", description = "The node implementing a break statement") |
36 public final class SLBreakNode extends SLStatementNode { | 37 public final class SLBreakNode extends SLStatementNode { |
37 | 38 |
39 public SLBreakNode(SourceSection src) { | |
40 super(src); | |
41 } | |
42 | |
38 @Override | 43 @Override |
39 public void executeVoid(VirtualFrame frame) { | 44 public void executeVoid(VirtualFrame frame) { |
40 throw SLBreakException.SINGLETON; | 45 throw SLBreakException.SINGLETON; |
41 } | 46 } |
42 } | 47 } |