Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/ArrayTest.java @ 18772:7fab6f106989
Truffle-DSL: avoid some checkstyle errors for generated code.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 05 Jan 2015 01:31:07 +0100 |
parents | 59953a46c56f |
children | 3ea386a1036f |
comparison
equal
deleted
inserted
replaced
18771:15fe16c45d64 | 18772:7fab6f106989 |
---|---|
24 | 24 |
25 import org.junit.*; | 25 import org.junit.*; |
26 | 26 |
27 import com.oracle.truffle.api.*; | 27 import com.oracle.truffle.api.*; |
28 import com.oracle.truffle.api.dsl.*; | 28 import com.oracle.truffle.api.dsl.*; |
29 import com.oracle.truffle.api.dsl.internal.*; | |
29 import com.oracle.truffle.api.dsl.test.ArrayTestFactory.TestNode1NodeGen; | 30 import com.oracle.truffle.api.dsl.test.ArrayTestFactory.TestNode1NodeGen; |
30 import com.oracle.truffle.api.frame.*; | 31 import com.oracle.truffle.api.frame.*; |
31 import com.oracle.truffle.api.nodes.*; | 32 import com.oracle.truffle.api.nodes.*; |
32 | 33 |
33 public class ArrayTest { | 34 public class ArrayTest { |
94 } | 95 } |
95 | 96 |
96 } | 97 } |
97 | 98 |
98 @TypeSystem({int.class, int[].class, double[].class, String[].class, Object[].class}) | 99 @TypeSystem({int.class, int[].class, double[].class, String[].class, Object[].class}) |
100 @DSLOptions(useNewLayout = true) | |
99 public static class ArrayTypeSystem { | 101 public static class ArrayTypeSystem { |
100 | 102 |
101 @ImplicitCast | 103 @ImplicitCast |
102 public static double[] castFromInt(int[] array) { | 104 public static double[] castFromInt(int[] array) { |
103 double[] newArray = new double[array.length]; | 105 double[] newArray = new double[array.length]; |