Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/builtins/SLAssertFalseBuiltin.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 |
---|---|
35 */ | 35 */ |
36 @NodeInfo(shortName = "assertFalse") | 36 @NodeInfo(shortName = "assertFalse") |
37 public abstract class SLAssertFalseBuiltin extends SLBuiltinNode { | 37 public abstract class SLAssertFalseBuiltin extends SLBuiltinNode { |
38 | 38 |
39 public SLAssertFalseBuiltin() { | 39 public SLAssertFalseBuiltin() { |
40 super(new NullSourceSection("SL builtin", "assertFalse")); | 40 super(SourceSection.createUnavailable("SL builtin", "assertFalse")); |
41 } | 41 } |
42 | 42 |
43 @Specialization | 43 @Specialization |
44 public boolean doAssert(boolean value, String message) { | 44 public boolean doAssert(boolean value, String message) { |
45 if (value) { | 45 if (value) { |