Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeCodeGenerator.java @ 9231:ee3a9188c65e
Checkstyle fixes.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 22 Apr 2013 17:09:02 +0200 |
parents | bc82cde765b9 |
children | 07f8d136a05e |
comparison
equal
deleted
inserted
replaced
9230:7e3c7d55d538 | 9231:ee3a9188c65e |
---|---|
1653 | 1653 |
1654 private CodeTree createExecuteChildExpression(CodeTreeBuilder parent, NodeChildData targetField, ActualParameter sourceParameter) { | 1654 private CodeTree createExecuteChildExpression(CodeTreeBuilder parent, NodeChildData targetField, ActualParameter sourceParameter) { |
1655 TypeData type = sourceParameter.getTypeSystemType(); | 1655 TypeData type = sourceParameter.getTypeSystemType(); |
1656 ExecutableTypeData execType = targetField.getNodeData().findExecutableType(type); | 1656 ExecutableTypeData execType = targetField.getNodeData().findExecutableType(type); |
1657 | 1657 |
1658 /* | |
1659 * FIXME Temporary deactivated due to partial evaluation failure else if | |
1660 * (accessElement.getKind() == ElementKind.METHOD) { | |
1661 * builder.startCall(accessElement.getSimpleName().toString()).end(); } | |
1662 */ | |
1658 CodeTreeBuilder builder = new CodeTreeBuilder(parent); | 1663 CodeTreeBuilder builder = new CodeTreeBuilder(parent); |
1659 if (targetField != null) { | 1664 if (targetField != null) { |
1660 Element accessElement = targetField.getAccessElement(); | 1665 Element accessElement = targetField.getAccessElement(); |
1661 if (accessElement == null || accessElement.getKind() == ElementKind.METHOD) { | 1666 if (accessElement == null || accessElement.getKind() == ElementKind.METHOD) { |
1662 builder.string("this.").string(targetField.getName()); | 1667 builder.string("this.").string(targetField.getName()); |
1663 } /* | 1668 } else if (accessElement.getKind() == ElementKind.FIELD) { |
1664 * FIXME Temporary deactivated due to partial evaluation failure else if | |
1665 * (accessElement.getKind() == ElementKind.METHOD) { | |
1666 * builder.startCall(accessElement.getSimpleName().toString()).end(); } | |
1667 */ | |
1668 else if (accessElement.getKind() == ElementKind.FIELD) { | |
1669 builder.string("this.").string(accessElement.getSimpleName().toString()); | 1669 builder.string("this.").string(accessElement.getSimpleName().toString()); |
1670 } else { | 1670 } else { |
1671 throw new AssertionError(); | 1671 throw new AssertionError(); |
1672 } | 1672 } |
1673 if (sourceParameter.getSpecification().isIndexed()) { | 1673 if (sourceParameter.getSpecification().isIndexed()) { |