Mercurial > hg > graal-compiler
comparison 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 |
comparison
equal
deleted
inserted
replaced
16511:aee02665e505 | 16512:abe7128ca473 |
---|---|
25 import com.oracle.truffle.api.*; | 25 import com.oracle.truffle.api.*; |
26 import com.oracle.truffle.api.dsl.*; | 26 import com.oracle.truffle.api.dsl.*; |
27 import com.oracle.truffle.api.frame.*; | 27 import com.oracle.truffle.api.frame.*; |
28 import com.oracle.truffle.api.frame.FrameInstance.FrameAccess; | 28 import com.oracle.truffle.api.frame.FrameInstance.FrameAccess; |
29 import com.oracle.truffle.api.nodes.*; | 29 import com.oracle.truffle.api.nodes.*; |
30 import com.oracle.truffle.api.source.*; | |
30 | 31 |
31 /** | 32 /** |
32 * This builtin sets the variable named "hello" in the caller frame to the string "world". | 33 * This builtin sets the variable named "hello" in the caller frame to the string "world". |
33 */ | 34 */ |
34 @NodeInfo(shortName = "helloEqualsWorld") | 35 @NodeInfo(shortName = "helloEqualsWorld") |
35 public abstract class SLHelloEqualsWorldBuiltin extends SLBuiltinNode { | 36 public abstract class SLHelloEqualsWorldBuiltin extends SLBuiltinNode { |
37 | |
38 public SLHelloEqualsWorldBuiltin() { | |
39 super(new NullSourceSection("SL builtin", "helloEqualsWorld")); | |
40 } | |
36 | 41 |
37 @Specialization | 42 @Specialization |
38 public String change() { | 43 public String change() { |
39 FrameInstance frameInstance = Truffle.getRuntime().getStackTrace().iterator().next(); | 44 FrameInstance frameInstance = Truffle.getRuntime().getStackTrace().iterator().next(); |
40 Frame frame = frameInstance.getFrame(FrameAccess.READ_WRITE, false); | 45 Frame frame = frameInstance.getFrame(FrameAccess.READ_WRITE, false); |