comparison truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/builtins/SLPrintlnBuiltin.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
41 */ 41 */
42 @NodeInfo(shortName = "println") 42 @NodeInfo(shortName = "println")
43 public abstract class SLPrintlnBuiltin extends SLBuiltinNode { 43 public abstract class SLPrintlnBuiltin extends SLBuiltinNode {
44 44
45 public SLPrintlnBuiltin() { 45 public SLPrintlnBuiltin() {
46 super(new NullSourceSection("SL builtin", "println")); 46 super(SourceSection.createUnavailable("SL builtin", "println"));
47 } 47 }
48 48
49 @Specialization 49 @Specialization
50 public long println(long value) { 50 public long println(long value) {
51 doPrint(getContext().getOutput(), value); 51 doPrint(getContext().getOutput(), value);