Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/template/ActualParameter.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 | c4c3f50fa9c2 |
children | 5eeade940236 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/template/ActualParameter.java Thu Mar 14 13:13:59 2013 +0100 +++ b/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/template/ActualParameter.java Fri Mar 15 21:18:33 2013 +0100 @@ -31,7 +31,7 @@ private final ParameterSpec specification; private final TypeMirror actualType; private TemplateMethod method; - private final String name; + private final String localName; private final int index; private final boolean implicit; @@ -42,13 +42,14 @@ this.index = index; this.implicit = implicit; String valueName = specification.getName() + "Value"; + if (specification.isIndexed()) { - valueName = valueName + index; + valueName += index; } - this.name = valueName; + this.localName = valueName; } - public boolean isHidden() { + public boolean isImplicit() { return implicit; } @@ -56,8 +57,8 @@ return index; } - public String getName() { - return name; + public String getLocalName() { + return localName; } void setMethod(TemplateMethod method) {