Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/typesystem/TypeCastParser.java @ 8237:6b74ffe38183
Implemented support for executing nodes in @Children fields.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Fri, 01 Mar 2013 17:03:57 +0100 |
parents | 5e3d1a68664e |
children | 703c09f8640c |
comparison
equal
deleted
inserted
replaced
7860:dbbdc0a30a16 | 8237:6b74ffe38183 |
---|---|
52 } | 52 } |
53 | 53 |
54 @Override | 54 @Override |
55 public TypeCastData create(TemplateMethod method) { | 55 public TypeCastData create(TemplateMethod method) { |
56 TypeData targetType = findTypeByMethodName(method.getMethod(), method.getMarkerAnnotation(), "as"); | 56 TypeData targetType = findTypeByMethodName(method.getMethod(), method.getMarkerAnnotation(), "as"); |
57 ActualParameter parameter = method.findParameter("value"); | 57 ActualParameter parameter = method.findParameter("valueValue"); |
58 return new TypeCastData(method, parameter.getActualTypeData(getTypeSystem()), targetType); | 58 return new TypeCastData(method, parameter.getActualTypeData(getTypeSystem()), targetType); |
59 } | 59 } |
60 | 60 |
61 @Override | 61 @Override |
62 public Class<? extends Annotation> getAnnotationType() { | 62 public Class<? extends Annotation> getAnnotationType() { |