Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/template/ActualParameter.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 | 06a7cd6aaf00 |
children | 703c09f8640c |
comparison
equal
deleted
inserted
replaced
7860:dbbdc0a30a16 | 8237:6b74ffe38183 |
---|---|
29 public class ActualParameter { | 29 public class ActualParameter { |
30 | 30 |
31 private final ParameterSpec specification; | 31 private final ParameterSpec specification; |
32 private final TypeMirror actualType; | 32 private final TypeMirror actualType; |
33 private TemplateMethod method; | 33 private TemplateMethod method; |
34 private final String name; | |
35 private final int index; | |
34 | 36 |
35 public ActualParameter(ParameterSpec specification, TypeMirror actualType) { | 37 public ActualParameter(ParameterSpec specification, TypeMirror actualType, int index) { |
36 this.specification = specification; | 38 this.specification = specification; |
37 this.actualType = actualType; | 39 this.actualType = actualType; |
40 | |
41 this.index = index; | |
42 String valueName = specification.getName() + "Value"; | |
43 if (specification.isIndexed()) { | |
44 valueName = valueName + index; | |
45 } | |
46 this.name = valueName; | |
47 } | |
48 | |
49 public int getIndex() { | |
50 return index; | |
51 } | |
52 | |
53 public String getName() { | |
54 return name; | |
38 } | 55 } |
39 | 56 |
40 void setMethod(TemplateMethod method) { | 57 void setMethod(TemplateMethod method) { |
41 this.method = method; | 58 this.method = method; |
42 } | 59 } |