Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/controlflow/SLBlockNode.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 | b96e17e6d6aa |
children | 6af9d523222a |
comparison
equal
deleted
inserted
replaced
16511:aee02665e505 | 16512:abe7128ca473 |
---|---|
23 package com.oracle.truffle.sl.nodes.controlflow; | 23 package com.oracle.truffle.sl.nodes.controlflow; |
24 | 24 |
25 import com.oracle.truffle.api.*; | 25 import com.oracle.truffle.api.*; |
26 import com.oracle.truffle.api.frame.*; | 26 import com.oracle.truffle.api.frame.*; |
27 import com.oracle.truffle.api.nodes.*; | 27 import com.oracle.truffle.api.nodes.*; |
28 import com.oracle.truffle.api.source.*; | |
28 import com.oracle.truffle.sl.nodes.*; | 29 import com.oracle.truffle.sl.nodes.*; |
29 | 30 |
30 /** | 31 /** |
31 * A statement node that just executes a list of other statements. | 32 * A statement node that just executes a list of other statements. |
32 */ | 33 */ |
38 * Children} informs Truffle that the field contains multiple children. It is a Truffle | 39 * Children} informs Truffle that the field contains multiple children. It is a Truffle |
39 * requirement that the field is {@code final} and an array of nodes. | 40 * requirement that the field is {@code final} and an array of nodes. |
40 */ | 41 */ |
41 @Children private final SLStatementNode[] bodyNodes; | 42 @Children private final SLStatementNode[] bodyNodes; |
42 | 43 |
43 public SLBlockNode(SLStatementNode[] bodyNodes) { | 44 public SLBlockNode(SourceSection src, SLStatementNode[] bodyNodes) { |
45 super(src); | |
44 this.bodyNodes = bodyNodes; | 46 this.bodyNodes = bodyNodes; |
45 } | 47 } |
46 | 48 |
47 /** | 49 /** |
48 * Execute all child statements. The annotation {@link ExplodeLoop} triggers full unrolling of | 50 * Execute all child statements. The annotation {@link ExplodeLoop} triggers full unrolling of |