comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/TruffleTypes.java @ 9258:07f8d136a05e

Truffle API changes for the Frame API. Introduction of Assumptions class.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Tue, 23 Apr 2013 15:34:06 +0200
parents 97ad6d3e7557
children fe5bc02fcd19
comparison
equal deleted inserted replaced
9257:542712a4732a 9258:07f8d136a05e
43 private final TypeMirror nodeArray; 43 private final TypeMirror nodeArray;
44 private final TypeMirror unexpectedValueException; 44 private final TypeMirror unexpectedValueException;
45 private final TypeMirror frame; 45 private final TypeMirror frame;
46 private final DeclaredType childAnnotation; 46 private final DeclaredType childAnnotation;
47 private final DeclaredType childrenAnnotation; 47 private final DeclaredType childrenAnnotation;
48 private final TypeMirror typeConversion;
49 private final TypeMirror truffleIntrinsics; 48 private final TypeMirror truffleIntrinsics;
50 49
51 private final List<String> errors = new ArrayList<>(); 50 private final List<String> errors = new ArrayList<>();
52 51
53 public TruffleTypes(ProcessorContext context) { 52 public TruffleTypes(ProcessorContext context) {
55 nodeArray = context.getEnvironment().getTypeUtils().getArrayType(node); 54 nodeArray = context.getEnvironment().getTypeUtils().getArrayType(node);
56 unexpectedValueException = getRequired(context, UnexpectedResultException.class); 55 unexpectedValueException = getRequired(context, UnexpectedResultException.class);
57 frame = getRequired(context, VirtualFrame.class); 56 frame = getRequired(context, VirtualFrame.class);
58 childAnnotation = getRequired(context, Child.class); 57 childAnnotation = getRequired(context, Child.class);
59 childrenAnnotation = getRequired(context, Children.class); 58 childrenAnnotation = getRequired(context, Children.class);
60 typeConversion = getRequired(context, TypeConversion.class);
61 truffleIntrinsics = getRequired(context, TruffleIntrinsics.class); 59 truffleIntrinsics = getRequired(context, TruffleIntrinsics.class);
62 } 60 }
63 61
64 public boolean verify(ProcessorContext context, Element element, AnnotationMirror mirror) { 62 public boolean verify(ProcessorContext context, Element element, AnnotationMirror mirror) {
65 if (errors.isEmpty()) { 63 if (errors.isEmpty()) {
83 81
84 public TypeMirror getTruffleIntrinsics() { 82 public TypeMirror getTruffleIntrinsics() {
85 return truffleIntrinsics; 83 return truffleIntrinsics;
86 } 84 }
87 85
88 public TypeMirror getTypeConversion() {
89 return typeConversion;
90 }
91
92 public TypeMirror getNode() { 86 public TypeMirror getNode() {
93 return node; 87 return node;
94 } 88 }
95 89
96 public TypeMirror getNodeArray() { 90 public TypeMirror getNodeArray() {