Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/GenericParser.java @ 8251:cb70ed101b5f
Added automatic generation of generic specialization which throws unsupported operation if reached.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 13 Mar 2013 11:32:43 +0100 |
parents | 703c09f8640c |
children | 0905d796944a |
comparison
equal
deleted
inserted
replaced
8250:edc414f52e2b | 8251:cb70ed101b5f |
---|---|
60 return super.createValueParameterSpec("returnValue", getNode(), false); | 60 return super.createValueParameterSpec("returnValue", getNode(), false); |
61 } | 61 } |
62 | 62 |
63 @Override | 63 @Override |
64 public SpecializationData create(TemplateMethod method) { | 64 public SpecializationData create(TemplateMethod method) { |
65 SpecializationData data = new SpecializationData(method, true, false); | 65 SpecializationData data = new SpecializationData(method, true, false, false); |
66 data.setUseSpecializationsForGeneric(Utils.getAnnotationValueBoolean(data.getMarkerAnnotation(), "useSpecializations")); | 66 data.setUseSpecializationsForGeneric(Utils.getAnnotationValueBoolean(data.getMarkerAnnotation(), "useSpecializations")); |
67 return data; | 67 return data; |
68 } | 68 } |
69 | 69 |
70 @Override | 70 @Override |