Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/MethodParser.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 | 703c09f8640c |
children | a80bf36c6a1e |
comparison
equal
deleted
inserted
replaced
8280:2ddf84436009 | 8310:89006c76f737 |
---|---|
70 if (!method.getModifiers().contains(Modifier.STATIC) && !Utils.isAssignable(declaredType, template.getNodeType())) { | 70 if (!method.getModifiers().contains(Modifier.STATIC) && !Utils.isAssignable(declaredType, template.getNodeType())) { |
71 prefixTypes.add(getNode().getTemplateType().asType()); | 71 prefixTypes.add(getNode().getTemplateType().asType()); |
72 } | 72 } |
73 | 73 |
74 for (NodeFieldData field : getNode().getFields()) { | 74 for (NodeFieldData field : getNode().getFields()) { |
75 if (field.getKind() == FieldKind.FIELD) { | |
76 ParameterSpec spec = new ParameterSpec(field.getName(), field.getType(), true); | |
77 spec.setLocal(true); | |
78 defaultParameters.add(spec); | |
79 } | |
80 } | |
81 | |
82 for (NodeFieldData field : getNode().getFields()) { | |
75 if (field.getExecutionKind() == ExecutionKind.IGNORE) { | 83 if (field.getExecutionKind() == ExecutionKind.IGNORE) { |
76 continue; | 84 continue; |
77 } | 85 } |
78 | 86 |
79 if (field.getExecutionKind() == ExecutionKind.DEFAULT) { | 87 if (field.getExecutionKind() == ExecutionKind.DEFAULT) { |