Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/builtins/SLHelloEqualsWorldBuiltin.java @ 15233:1f7fd2cc008f
change return type of SLHelloEqualsWorldBuiltin
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Fri, 18 Apr 2014 13:43:40 +0200 |
parents | f675818d9ad0 |
children | abe7128ca473 f6ac86d3334e |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/builtins/SLHelloEqualsWorldBuiltin.java Thu Apr 17 21:29:21 2014 -0400 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/builtins/SLHelloEqualsWorldBuiltin.java Fri Apr 18 13:43:40 2014 +0200 @@ -35,11 +35,11 @@ public abstract class SLHelloEqualsWorldBuiltin extends SLBuiltinNode { @Specialization - public Object change() { + public String change() { FrameInstance frameInstance = Truffle.getRuntime().getStackTrace().iterator().next(); Frame frame = frameInstance.getFrame(FrameAccess.READ_WRITE, false); FrameSlot slot = frame.getFrameDescriptor().findOrAddFrameSlot("hello"); frame.setObject(slot, "world"); - return null; + return "world"; } }