Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/ExecutableTypeMethodParser.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 | 0905d796944a |
children | a80bf36c6a1e |
comparison
equal
deleted
inserted
replaced
8280:2ddf84436009 | 8310:89006c76f737 |
---|---|
61 } | 61 } |
62 | 62 |
63 @Override | 63 @Override |
64 public ExecutableTypeData create(TemplateMethod method) { | 64 public ExecutableTypeData create(TemplateMethod method) { |
65 TypeData resolvedType = method.getReturnType().getActualTypeData(getNode().getTypeSystem()); | 65 TypeData resolvedType = method.getReturnType().getActualTypeData(getNode().getTypeSystem()); |
66 if (resolvedType == null) { | |
67 return null; | |
68 } | |
69 return new ExecutableTypeData(method, getNode().getTypeSystem(), resolvedType); | 66 return new ExecutableTypeData(method, getNode().getTypeSystem(), resolvedType); |
70 } | 67 } |
71 | 68 |
72 @Override | 69 @Override |
73 public Class<? extends Annotation> getAnnotationType() { | 70 public Class<? extends Annotation> getAnnotationType() { |