Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/SpecializationListenerParser.java @ 8242:ac4e8c16ffdf
Added new codegen api classes NodeId, NodeClass to codegen along with some refactorings.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 04 Mar 2013 15:14:11 +0100 |
parents | 5e3d1a68664e |
children | 703c09f8640c |
comparison
equal
deleted
inserted
replaced
8241:91982900acee | 8242:ac4e8c16ffdf |
---|---|
28 | 28 |
29 import com.oracle.truffle.api.codegen.*; | 29 import com.oracle.truffle.api.codegen.*; |
30 import com.oracle.truffle.codegen.processor.*; | 30 import com.oracle.truffle.codegen.processor.*; |
31 import com.oracle.truffle.codegen.processor.template.*; | 31 import com.oracle.truffle.codegen.processor.template.*; |
32 | 32 |
33 public class SpecializationListenerParser extends MethodParser<TemplateMethod> { | 33 public class SpecializationListenerParser extends MethodParser<SpecializationListenerData> { |
34 | 34 |
35 private final MethodSpec specification; | 35 private final MethodSpec specification; |
36 | 36 |
37 public SpecializationListenerParser(ProcessorContext context, NodeData node) { | 37 public SpecializationListenerParser(ProcessorContext context, NodeData node) { |
38 super(context, node); | 38 super(context, node); |
48 protected ParameterSpec createReturnParameterSpec() { | 48 protected ParameterSpec createReturnParameterSpec() { |
49 return new ParameterSpec("void", getContext().getType(void.class), false); | 49 return new ParameterSpec("void", getContext().getType(void.class), false); |
50 } | 50 } |
51 | 51 |
52 @Override | 52 @Override |
53 public TemplateMethod create(TemplateMethod method) { | 53 public SpecializationListenerData create(TemplateMethod method) { |
54 return method; | 54 return new SpecializationListenerData(method); |
55 } | 55 } |
56 | 56 |
57 @Override | 57 @Override |
58 public Class<? extends Annotation> getAnnotationType() { | 58 public Class<? extends Annotation> getAnnotationType() { |
59 return SpecializationListener.class; | 59 return SpecializationListener.class; |