Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/GenericParser.java @ 8252:0905d796944a
Refactored codegen error model to make error redirection a lot easier.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 13 Mar 2013 19:58:28 +0100 |
parents | cb70ed101b5f |
children | 4dc7034317ec |
comparison
equal
deleted
inserted
replaced
8251:cb70ed101b5f | 8252:0905d796944a |
---|---|
49 List<ExecutableTypeData> execTypes = nodeData.findGenericExecutableTypes(getContext()); | 49 List<ExecutableTypeData> execTypes = nodeData.findGenericExecutableTypes(getContext()); |
50 List<TypeMirror> types = new ArrayList<>(); | 50 List<TypeMirror> types = new ArrayList<>(); |
51 for (ExecutableTypeData type : execTypes) { | 51 for (ExecutableTypeData type : execTypes) { |
52 types.add(type.getType().getPrimitiveType()); | 52 types.add(type.getType().getPrimitiveType()); |
53 } | 53 } |
54 TypeMirror[] array = types.toArray(new TypeMirror[types.size()]); | 54 return new ParameterSpec(valueName, types, false, Cardinality.ONE); |
55 return new ParameterSpec(valueName, array, false, Cardinality.ONE); | |
56 } | 55 } |
57 | 56 |
58 @Override | 57 @Override |
59 protected ParameterSpec createReturnParameterSpec() { | 58 protected ParameterSpec createReturnParameterSpec() { |
60 return super.createValueParameterSpec("returnValue", getNode(), false); | 59 return super.createValueParameterSpec("returnValue", getNode(), false); |