Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/ShortCircuitParser.java @ 8593:54e227b2e199
Refactored ParameterSpec constructors.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 01 Apr 2013 12:14:54 +0200 |
parents | a80bf36c6a1e |
children | ce6e8672f798 |
comparison
equal
deleted
inserted
replaced
8592:a80bf36c6a1e | 8593:54e227b2e199 |
---|---|
52 return createDefaultMethodSpec(method, mirror, shortCircuitValue); | 52 return createDefaultMethodSpec(method, mirror, shortCircuitValue); |
53 } | 53 } |
54 | 54 |
55 @Override | 55 @Override |
56 protected ParameterSpec createReturnParameterSpec() { | 56 protected ParameterSpec createReturnParameterSpec() { |
57 return new ParameterSpec("has", getContext().getType(boolean.class), false, false); | 57 return new ParameterSpec("has", getContext().getType(boolean.class)); |
58 } | 58 } |
59 | 59 |
60 @Override | 60 @Override |
61 public ShortCircuitData create(TemplateMethod method) { | 61 public ShortCircuitData create(TemplateMethod method) { |
62 String shortCircuitValue = Utils.getAnnotationValue(String.class, method.getMarkerAnnotation(), "value"); | 62 String shortCircuitValue = Utils.getAnnotationValue(String.class, method.getMarkerAnnotation(), "value"); |