Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/ExecutableTypeMethodParser.java @ 8245:703c09f8640c
Implemented support for @NodeClass annotation to support builtins.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 06 Mar 2013 18:32:33 +0100 |
parents | ee84a187f84a |
children | 0905d796944a |
comparison
equal
deleted
inserted
replaced
8244:10d37f893471 | 8245:703c09f8640c |
---|---|
49 | 49 |
50 ParameterSpec returnTypeSpec = new ParameterSpec("executedValue", types.toArray(new TypeMirror[types.size()]), false, Cardinality.ONE); | 50 ParameterSpec returnTypeSpec = new ParameterSpec("executedValue", types.toArray(new TypeMirror[types.size()]), false, Cardinality.ONE); |
51 | 51 |
52 List<ParameterSpec> parameters = new ArrayList<>(); | 52 List<ParameterSpec> parameters = new ArrayList<>(); |
53 parameters.add(new ParameterSpec("frame", getContext().getTruffleTypes().getFrame(), true)); | 53 parameters.add(new ParameterSpec("frame", getContext().getTruffleTypes().getFrame(), true)); |
54 return new MethodSpec(returnTypeSpec, parameters); | 54 return new MethodSpec(new ArrayList<TypeMirror>(), returnTypeSpec, parameters); |
55 } | 55 } |
56 | 56 |
57 @Override | 57 @Override |
58 public final boolean isParsable(ExecutableElement method) { | 58 public final boolean isParsable(ExecutableElement method) { |
59 boolean parsable = method.getSimpleName().toString().startsWith("execute"); | 59 boolean parsable = method.getSimpleName().toString().startsWith("execute"); |