Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/template/MessageContainer.java @ 8310:89006c76f737
Final fields of base node can be optionally passed to builtin specialization method. And a few fixes.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Fri, 15 Mar 2013 21:18:33 +0100 |
parents | 4dc7034317ec |
children | 88e3893dc0a8 |
comparison
equal
deleted
inserted
replaced
8280:2ddf84436009 | 8310:89006c76f737 |
---|---|
65 sink.emitMessagesImpl(baseElement, log, visitedSinks); | 65 sink.emitMessagesImpl(baseElement, log, visitedSinks); |
66 } | 66 } |
67 } | 67 } |
68 | 68 |
69 private void emitDefault(TypeElement baseType, Log log, Message message) { | 69 private void emitDefault(TypeElement baseType, Log log, Message message) { |
70 if (Utils.typeEquals(baseType.asType(), Utils.findRootEnclosingType(getMessageElement()).asType()) && this == message.getOriginalContainer()) { | 70 TypeElement rootEnclosing = Utils.findRootEnclosingType(getMessageElement()); |
71 if (rootEnclosing != null && Utils.typeEquals(baseType.asType(), rootEnclosing.asType()) && this == message.getOriginalContainer()) { | |
71 log.message(message.getKind(), getMessageElement(), getMessageAnnotation(), getMessageAnnotationValue(), message.getText()); | 72 log.message(message.getKind(), getMessageElement(), getMessageAnnotation(), getMessageAnnotationValue(), message.getText()); |
72 } else { | 73 } else { |
73 MessageContainer original = message.getOriginalContainer(); | 74 MessageContainer original = message.getOriginalContainer(); |
74 log.message(message.getKind(), baseType, null, null, wrapText(original.getMessageElement(), original.getMessageAnnotation(), message.getText())); | 75 log.message(message.getKind(), baseType, null, null, wrapText(original.getMessageElement(), original.getMessageAnnotation(), message.getText())); |
75 } | 76 } |