Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/node/CreateCastParser.java @ 13533:b466199f19e1
Truffle-DSL: fixed bug when using @CreateCast with children arrays.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Tue, 07 Jan 2014 20:16:01 +0100 |
parents | 25ecb47a6d0e |
children | bd28da642eea |
comparison
equal
deleted
inserted
replaced
13532:85b485b1e8e1 | 13533:b466199f19e1 |
---|---|
58 baseType = foundChild.getOriginalType(); | 58 baseType = foundChild.getOriginalType(); |
59 } | 59 } |
60 | 60 |
61 MethodSpec spec = new MethodSpec(new InheritsParameterSpec(getContext(), "child", baseType)); | 61 MethodSpec spec = new MethodSpec(new InheritsParameterSpec(getContext(), "child", baseType)); |
62 addDefaultFieldMethodSpec(spec); | 62 addDefaultFieldMethodSpec(spec); |
63 spec.addRequired(new ParameterSpec("castedChild", baseType)); | 63 ParameterSpec childSpec = new ParameterSpec("castedChild", baseType); |
64 childSpec.setSignature(true); | |
65 spec.addRequired(childSpec); | |
64 return spec; | 66 return spec; |
65 } | 67 } |
66 | 68 |
67 @Override | 69 @Override |
68 public CreateCastData create(TemplateMethod method, boolean invalid) { | 70 public CreateCastData create(TemplateMethod method, boolean invalid) { |