comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/builtins/SLStackTraceBuiltin.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 a3b0ecef8a15
children fb1c21844758
comparison
equal deleted inserted replaced
16511:aee02665e505 16512:abe7128ca473
26 import com.oracle.truffle.api.CompilerDirectives.SlowPath; 26 import com.oracle.truffle.api.CompilerDirectives.SlowPath;
27 import com.oracle.truffle.api.dsl.*; 27 import com.oracle.truffle.api.dsl.*;
28 import com.oracle.truffle.api.frame.*; 28 import com.oracle.truffle.api.frame.*;
29 import com.oracle.truffle.api.frame.FrameInstance.FrameAccess; 29 import com.oracle.truffle.api.frame.FrameInstance.FrameAccess;
30 import com.oracle.truffle.api.nodes.*; 30 import com.oracle.truffle.api.nodes.*;
31 import com.oracle.truffle.api.source.*;
31 32
32 /** 33 /**
33 * Returns a string representation of the current stack. This includes the {@link CallTarget}s and 34 * Returns a string representation of the current stack. This includes the {@link CallTarget}s and
34 * the contents of the {@link Frame}. Note that this is implemented as a slow path by passing 35 * the contents of the {@link Frame}. Note that this is implemented as a slow path by passing
35 * {@code true} to {@link FrameInstance#getFrame(FrameAccess, boolean)}. 36 * {@code true} to {@link FrameInstance#getFrame(FrameAccess, boolean)}.
36 */ 37 */
37 @NodeInfo(shortName = "stacktrace") 38 @NodeInfo(shortName = "stacktrace")
38 public abstract class SLStackTraceBuiltin extends SLBuiltinNode { 39 public abstract class SLStackTraceBuiltin extends SLBuiltinNode {
40
41 public SLStackTraceBuiltin() {
42 super(new NullSourceSection("SL builtin", "stacktrace"));
43 }
39 44
40 @Specialization 45 @Specialization
41 public String trace() { 46 public String trace() {
42 return createStackTrace(); 47 return createStackTrace();
43 } 48 }