Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/Utils.java @ 9215:bd067a48a9c2
Changed execute method generation strategy. Limited it for primitive execute methods.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 08 Apr 2013 18:17:53 +0200 |
parents | 160f088e40db |
children | 97ad6d3e7557 |
comparison
equal
deleted
inserted
replaced
9214:9f3bade42fd2 | 9215:bd067a48a9c2 |
---|---|
330 | 330 |
331 public static boolean isPrimitive(TypeMirror mirror) { | 331 public static boolean isPrimitive(TypeMirror mirror) { |
332 return mirror.getKind().isPrimitive(); | 332 return mirror.getKind().isPrimitive(); |
333 } | 333 } |
334 | 334 |
335 public static boolean isPrimitiveOrVoid(TypeMirror mirror) { | |
336 return isPrimitive(mirror) || isVoid(mirror); | |
337 } | |
338 | |
335 public static List<String> getQualifiedSuperTypeNames(TypeElement element) { | 339 public static List<String> getQualifiedSuperTypeNames(TypeElement element) { |
336 List<TypeElement> types = getSuperTypes(element); | 340 List<TypeElement> types = getSuperTypes(element); |
337 List<String> qualifiedNames = new ArrayList<>(); | 341 List<String> qualifiedNames = new ArrayList<>(); |
338 for (TypeElement type : types) { | 342 for (TypeElement type : types) { |
339 qualifiedNames.add(getQualifiedName(type)); | 343 qualifiedNames.add(getQualifiedName(type)); |