Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/SLTypes.java @ 18765:924bf48a5d6a
SL: enable new DSL layout for SimpleLanguage.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 29 Dec 2014 23:39:12 +0100 |
parents | ccb97347d874 |
children | 3ea386a1036f |
comparison
equal
deleted
inserted
replaced
18764:ccb97347d874 | 18765:924bf48a5d6a |
---|---|
23 package com.oracle.truffle.sl.nodes; | 23 package com.oracle.truffle.sl.nodes; |
24 | 24 |
25 import java.math.*; | 25 import java.math.*; |
26 | 26 |
27 import com.oracle.truffle.api.dsl.*; | 27 import com.oracle.truffle.api.dsl.*; |
28 import com.oracle.truffle.api.dsl.internal.*; | |
28 import com.oracle.truffle.sl.*; | 29 import com.oracle.truffle.sl.*; |
29 import com.oracle.truffle.sl.runtime.*; | 30 import com.oracle.truffle.sl.runtime.*; |
30 | 31 |
31 /** | 32 /** |
32 * The type system of SL, as explained in {@link SLMain}. Based on the {@link TypeSystem} | 33 * The type system of SL, as explained in {@link SLMain}. Based on the {@link TypeSystem} |
33 * annotation, the Truffle DSL generates the subclass {@link SLTypesGen} with type test and type | 34 * annotation, the Truffle DSL generates the subclass {@link SLTypesGen} with type test and type |
34 * conversion methods for all types. In this class, we only cover types where the automatically | 35 * conversion methods for all types. In this class, we only cover types where the automatically |
35 * generated ones would not be sufficient. | 36 * generated ones would not be sufficient. |
36 */ | 37 */ |
37 @TypeSystem({long.class, BigInteger.class, boolean.class, String.class, SLFunction.class, SLNull.class}) | 38 @TypeSystem({long.class, BigInteger.class, boolean.class, String.class, SLFunction.class, SLNull.class}) |
39 @DSLOptions(useNewLayout = true) | |
38 public abstract class SLTypes { | 40 public abstract class SLTypes { |
39 | 41 |
40 /** | 42 /** |
41 * Example of a manually specified type check that replaces the automatically generated type | 43 * Example of a manually specified type check that replaces the automatically generated type |
42 * check that the Truffle DSL would generate. For {@link SLNull}, we do not need an | 44 * check that the Truffle DSL would generate. For {@link SLNull}, we do not need an |