Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/template/ActualParameter.java @ 13532:85b485b1e8e1
Truffle-DSL: removed support for implicit parameters. not needed anymore.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Tue, 07 Jan 2014 20:06:27 +0100 |
parents | 25ecb47a6d0e |
children |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/template/ActualParameter.java Tue Jan 07 20:05:55 2014 +0100 +++ b/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/template/ActualParameter.java Tue Jan 07 20:06:27 2014 +0100 @@ -35,32 +35,30 @@ private final String localName; private final int specificationVarArgsIndex; private final int typeVarArgsIndex; - private final boolean implicit; private final TypeMirror actualType; - public ActualParameter(ParameterSpec specification, TypeMirror actualType, int specificationVarArgsIndex, int typeVarArgsIndex, boolean implicit) { + public ActualParameter(ParameterSpec specification, TypeMirror actualType, int specificationVarArgsIndex, int typeVarArgsIndex) { this.specification = specification; this.actualType = actualType; this.typeSystemType = null; this.specificationVarArgsIndex = specificationVarArgsIndex; - this.implicit = implicit; String valueName = specification.getName() + "Value"; if (specificationVarArgsIndex > -1) { - valueName += "_" + specificationVarArgsIndex; + valueName += specificationVarArgsIndex; } this.typeVarArgsIndex = typeVarArgsIndex; this.localName = valueName; } - public ActualParameter(ParameterSpec specification, TypeData actualType, int specificationIndex, int varArgsIndex, boolean implicit) { - this(specification, actualType.getPrimitiveType(), specificationIndex, varArgsIndex, implicit); + public ActualParameter(ParameterSpec specification, TypeData actualType, int specificationIndex, int varArgsIndex) { + this(specification, actualType.getPrimitiveType(), specificationIndex, varArgsIndex); this.typeSystemType = actualType; } public ActualParameter(ActualParameter parameter, TypeData otherType) { - this(parameter.specification, otherType, parameter.specificationVarArgsIndex, parameter.typeVarArgsIndex, parameter.implicit); + this(parameter.specification, otherType, parameter.specificationVarArgsIndex, parameter.typeVarArgsIndex); } public ActualParameter(ActualParameter parameter) { @@ -68,7 +66,6 @@ this.actualType = parameter.actualType; this.typeSystemType = parameter.typeSystemType; this.specificationVarArgsIndex = parameter.specificationVarArgsIndex; - this.implicit = parameter.implicit; this.localName = parameter.localName; this.typeVarArgsIndex = parameter.typeVarArgsIndex; } @@ -77,10 +74,6 @@ return typeVarArgsIndex; } - public boolean isImplicit() { - return implicit; - } - public int getSpecificationVarArgsIndex() { return specificationVarArgsIndex; }