Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/NodeFactory.java @ 9222:aa9ffb3a715e
Updated Truffle-SL to new codegen API.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Sat, 20 Apr 2013 12:17:27 +0200 |
parents | ac2204c05a02 |
children | 07f8d136a05e |
comparison
equal
deleted
inserted
replaced
9221:67bee207f20c | 9222:aa9ffb3a715e |
---|---|
72 | 72 |
73 public StatementNode createPrint(List<TypedNode> expressions) { | 73 public StatementNode createPrint(List<TypedNode> expressions) { |
74 if (expressions.size() >= 1) { | 74 if (expressions.size() >= 1) { |
75 StatementNode[] nodes = new StatementNode[expressions.size() + 1]; | 75 StatementNode[] nodes = new StatementNode[expressions.size() + 1]; |
76 for (int i = 0; i < expressions.size(); i++) { | 76 for (int i = 0; i < expressions.size(); i++) { |
77 nodes[i] = PrintNodeFactory.create(expressions.get(i), printOutput); | 77 nodes[i] = PrintNodeFactory.create(printOutput, expressions.get(i)); |
78 } | 78 } |
79 nodes[expressions.size()] = new PrintLineNode(printOutput); | 79 nodes[expressions.size()] = new PrintLineNode(printOutput); |
80 return new BlockNode(nodes); | 80 return new BlockNode(nodes); |
81 } else { | 81 } else { |
82 return new BlockNode(new StatementNode[]{new PrintLineNode(printOutput)}); | 82 return new BlockNode(new StatementNode[]{new PrintLineNode(printOutput)}); |