Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/typesystem/GuardParser.java @ 7792:39d4a79568b6
Fixed guard declarations can also have zero parameters as well as a mismatching frame signature.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Fri, 15 Feb 2013 11:53:04 +0100 |
parents | 5e3d1a68664e |
children | 33e08aca06ff |
comparison
equal
deleted
inserted
replaced
7780:550c952f5d3f | 7792:39d4a79568b6 |
---|---|
42 } | 42 } |
43 | 43 |
44 @Override | 44 @Override |
45 public MethodSpec createSpecification(ExecutableElement method, AnnotationMirror mirror) { | 45 public MethodSpec createSpecification(ExecutableElement method, AnnotationMirror mirror) { |
46 List<ParameterSpec> specs = new ArrayList<>(); | 46 List<ParameterSpec> specs = new ArrayList<>(); |
47 specs.add(new ParameterSpec("value1", typeSystem, false, Cardinality.ONE)); | |
48 specs.add(new ParameterSpec("valueN", typeSystem, false, Cardinality.MULTIPLE)); | 47 specs.add(new ParameterSpec("valueN", typeSystem, false, Cardinality.MULTIPLE)); |
49 ParameterSpec returnTypeSpec = new ParameterSpec("returnType", getContext().getType(boolean.class), false); | 48 ParameterSpec returnTypeSpec = new ParameterSpec("returnType", getContext().getType(boolean.class), false); |
50 return new MethodSpec(returnTypeSpec, specs); | 49 return new MethodSpec(returnTypeSpec, specs); |
51 } | 50 } |
52 | 51 |