Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/template/ActualParameter.java @ 8248:c4c3f50fa9c2
Fixes for codegen builtins support.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Tue, 12 Mar 2013 11:37:32 +0100 |
parents | 703c09f8640c |
children | 89006c76f737 |
comparison
equal
deleted
inserted
replaced
8247:5b08b0f4d338 | 8248:c4c3f50fa9c2 |
---|---|
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; | 34 private final String name; |
35 private final int index; | 35 private final int index; |
36 private final boolean hidden; | 36 private final boolean implicit; |
37 | 37 |
38 public ActualParameter(ParameterSpec specification, TypeMirror actualType, int index, boolean hidden) { | 38 public ActualParameter(ParameterSpec specification, TypeMirror actualType, int index, boolean implicit) { |
39 this.specification = specification; | 39 this.specification = specification; |
40 this.actualType = actualType; | 40 this.actualType = actualType; |
41 | 41 |
42 this.index = index; | 42 this.index = index; |
43 this.hidden = hidden; | 43 this.implicit = implicit; |
44 String valueName = specification.getName() + "Value"; | 44 String valueName = specification.getName() + "Value"; |
45 if (specification.isIndexed()) { | 45 if (specification.isIndexed()) { |
46 valueName = valueName + index; | 46 valueName = valueName + index; |
47 } | 47 } |
48 this.name = valueName; | 48 this.name = valueName; |
49 } | 49 } |
50 | 50 |
51 public boolean isHidden() { | 51 public boolean isHidden() { |
52 return hidden; | 52 return implicit; |
53 } | 53 } |
54 | 54 |
55 public int getIndex() { | 55 public int getIndex() { |
56 return index; | 56 return index; |
57 } | 57 } |