Mercurial > hg > truffle
diff graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/SLTypes.java @ 18764:ccb97347d874
SL: adapt SL to type system singleton removal.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 29 Dec 2014 23:39:07 +0100 |
parents | 7392b9e0470b |
children | 924bf48a5d6a |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/SLTypes.java Mon Dec 29 23:39:03 2014 +0100 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/SLTypes.java Mon Dec 29 23:39:07 2014 +0100 @@ -44,7 +44,7 @@ * singleton} instance. */ @TypeCheck - public boolean isSLNull(Object value) { + public static boolean isSLNull(Object value) { return value == SLNull.SINGLETON; } @@ -54,7 +54,7 @@ * because we know that there is only a {@link SLNull#SINGLETON singleton} instance. */ @TypeCast - public SLNull asSLNull(Object value) { + public static SLNull asSLNull(Object value) { assert isSLNull(value); return SLNull.SINGLETON; } @@ -67,7 +67,7 @@ * {@link BigInteger} arithmetic for values that fit into a 64-bit primitive value. */ @ImplicitCast - public BigInteger castBigInteger(long value) { + public static BigInteger castBigInteger(long value) { return BigInteger.valueOf(value); } }