Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/builtins/SLStackTraceBuiltin.java @ 21987:b2d1c8ff592a
Less classes in the source API package. Merging interfaces and their only implementation into final classes. Hiding NullSourceSection behind factory method. Using JDK's standard CharsetDecoder instead of proprietary BytesDecoder.
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Wed, 01 Jul 2015 10:23:36 +0200 |
parents | 9c8c0937da41 |
children | c07e64ecb528 |
comparison
equal
deleted
inserted
replaced
21986:67ea94a23074 | 21987:b2d1c8ff592a |
---|---|
37 */ | 37 */ |
38 @NodeInfo(shortName = "stacktrace") | 38 @NodeInfo(shortName = "stacktrace") |
39 public abstract class SLStackTraceBuiltin extends SLBuiltinNode { | 39 public abstract class SLStackTraceBuiltin extends SLBuiltinNode { |
40 | 40 |
41 public SLStackTraceBuiltin() { | 41 public SLStackTraceBuiltin() { |
42 super(new NullSourceSection("SL builtin", "stacktrace")); | 42 super(SourceSection.createUnavailable("SL builtin", "stacktrace")); |
43 } | 43 } |
44 | 44 |
45 @Specialization | 45 @Specialization |
46 public String trace() { | 46 public String trace() { |
47 return createStackTrace(); | 47 return createStackTrace(); |