Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/builtins/SLHelloEqualsWorldBuiltin.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 | 1f7fd2cc008f |
children | fb1c21844758 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/builtins/SLHelloEqualsWorldBuiltin.java Mon Jul 14 16:04:09 2014 -0700 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/builtins/SLHelloEqualsWorldBuiltin.java Mon Jul 14 16:51:41 2014 -0700 @@ -27,6 +27,7 @@ import com.oracle.truffle.api.frame.*; import com.oracle.truffle.api.frame.FrameInstance.FrameAccess; import com.oracle.truffle.api.nodes.*; +import com.oracle.truffle.api.source.*; /** * This builtin sets the variable named "hello" in the caller frame to the string "world". @@ -34,6 +35,10 @@ @NodeInfo(shortName = "helloEqualsWorld") public abstract class SLHelloEqualsWorldBuiltin extends SLBuiltinNode { + public SLHelloEqualsWorldBuiltin() { + super(new NullSourceSection("SL builtin", "helloEqualsWorld")); + } + @Specialization public String change() { FrameInstance frameInstance = Truffle.getRuntime().getStackTrace().iterator().next();