Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeCodeGenerator.java @ 10513:00b70a864d3b
updated Checkstyle rules to prohibit underscores in method names and fixed current violations
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 24 Jun 2013 22:56:07 +0200 |
parents | 746fa60be266 |
children | f43eb2f1bbbc |
comparison
equal
deleted
inserted
replaced
10512:42017075d2b0 | 10513:00b70a864d3b |
---|---|
41 | 41 |
42 public class NodeCodeGenerator extends CompilationUnitFactory<NodeData> { | 42 public class NodeCodeGenerator extends CompilationUnitFactory<NodeData> { |
43 | 43 |
44 private static final String THIS_NODE_LOCAL_VAR_NAME = "thisNode"; | 44 private static final String THIS_NODE_LOCAL_VAR_NAME = "thisNode"; |
45 | 45 |
46 private static final String EXECUTE_GENERIC_NAME = "executeGeneric_"; | 46 private static final String EXECUTE_GENERIC_NAME = "executeGeneric0"; |
47 private static final String EXECUTE_SPECIALIZE_NAME = "executeAndSpecialize_"; | 47 private static final String EXECUTE_SPECIALIZE_NAME = "executeAndSpecialize0"; |
48 | 48 |
49 public NodeCodeGenerator(ProcessorContext context) { | 49 public NodeCodeGenerator(ProcessorContext context) { |
50 super(context); | 50 super(context); |
51 } | 51 } |
52 | 52 |
1348 method.setReturnType(node.getNodeType()); | 1348 method.setReturnType(node.getNodeType()); |
1349 | 1349 |
1350 CodeTreeBuilder body = method.createBuilder(); | 1350 CodeTreeBuilder body = method.createBuilder(); |
1351 body.startReturn(); | 1351 body.startReturn(); |
1352 if (node.getSpecializations().isEmpty()) { | 1352 if (node.getSpecializations().isEmpty()) { |
1353 body.null_(); | 1353 body.nullLiteral(); |
1354 } else { | 1354 } else { |
1355 body.startNew(nodeSpecializationClassName(node.getSpecializations().get(0))); | 1355 body.startNew(nodeSpecializationClassName(node.getSpecializations().get(0))); |
1356 for (VariableElement var : method.getParameters()) { | 1356 for (VariableElement var : method.getParameters()) { |
1357 body.string(var.getSimpleName().toString()); | 1357 body.string(var.getSimpleName().toString()); |
1358 } | 1358 } |