Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/MethodParser.java @ 7530:5e3d1a68664e
applied mx eclipseformat to all Java files
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 23 Jan 2013 16:34:57 +0100 |
parents | 6343a09b2ec1 |
children | 6ad077b60cb3 |
comparison
equal
deleted
inserted
replaced
7529:4a11124a3563 | 7530:5e3d1a68664e |
---|---|
29 import com.oracle.truffle.codegen.processor.*; | 29 import com.oracle.truffle.codegen.processor.*; |
30 import com.oracle.truffle.codegen.processor.node.NodeFieldData.ExecutionKind; | 30 import com.oracle.truffle.codegen.processor.node.NodeFieldData.ExecutionKind; |
31 import com.oracle.truffle.codegen.processor.template.*; | 31 import com.oracle.truffle.codegen.processor.template.*; |
32 import com.oracle.truffle.codegen.processor.template.ParameterSpec.Cardinality; | 32 import com.oracle.truffle.codegen.processor.template.ParameterSpec.Cardinality; |
33 | 33 |
34 | 34 public abstract class MethodParser<E extends TemplateMethod> extends TemplateMethodParser<NodeData, E> { |
35 public abstract class MethodParser<E extends TemplateMethod> extends TemplateMethodParser<NodeData, E>{ | |
36 | 35 |
37 public MethodParser(ProcessorContext context, NodeData node) { | 36 public MethodParser(ProcessorContext context, NodeData node) { |
38 super(context, node); | 37 super(context, node); |
39 } | 38 } |
40 | 39 |
41 public NodeData getNode() { | 40 public NodeData getNode() { |
42 return template; | 41 return template; |
43 } | 42 } |
44 | |
45 | 43 |
46 protected ParameterSpec createValueParameterSpec(String valueName, NodeData nodeData) { | 44 protected ParameterSpec createValueParameterSpec(String valueName, NodeData nodeData) { |
47 return new ParameterSpec(valueName, nodeData, false, Cardinality.ONE); | 45 return new ParameterSpec(valueName, nodeData, false, Cardinality.ONE); |
48 } | 46 } |
49 | 47 |
72 String valueName = field.getName(); | 70 String valueName = field.getName(); |
73 if (shortCircuitName != null && valueName.equals(shortCircuitName)) { | 71 if (shortCircuitName != null && valueName.equals(shortCircuitName)) { |
74 break; | 72 break; |
75 } | 73 } |
76 | 74 |
77 defaultParameters.add(new ParameterSpec(shortCircuitValueName(valueName), | 75 defaultParameters.add(new ParameterSpec(shortCircuitValueName(valueName), getContext().getType(boolean.class), false)); |
78 getContext().getType(boolean.class), false)); | |
79 | 76 |
80 defaultParameters.add(createValueParameterSpec(valueName, field.getNodeData())); | 77 defaultParameters.add(createValueParameterSpec(valueName, field.getNodeData())); |
81 } else { | 78 } else { |
82 assert false; | 79 assert false; |
83 } | 80 } |