comparison graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/InliningUtil.java @ 11712:0d16339188ef

Improvements to the Truffle cache.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 19 Sep 2013 04:11:20 +0200
parents 8d8a7d7f0259
children 0e2cceed1caf
comparison
equal deleted inserted replaced
11711:f12b418ebc74 11712:0d16339188ef
1306 ArrayList<Node> nodes = new ArrayList<>(inlineGraph.getNodes().count()); 1306 ArrayList<Node> nodes = new ArrayList<>(inlineGraph.getNodes().count());
1307 ReturnNode returnNode = null; 1307 ReturnNode returnNode = null;
1308 UnwindNode unwindNode = null; 1308 UnwindNode unwindNode = null;
1309 final StartNode entryPointNode = inlineGraph.start(); 1309 final StartNode entryPointNode = inlineGraph.start();
1310 FixedNode firstCFGNode = entryPointNode.next(); 1310 FixedNode firstCFGNode = entryPointNode.next();
1311 if (firstCFGNode == null) {
1312 throw new IllegalStateException("Inlined graph is in invalid state");
1313 }
1311 for (Node node : inlineGraph.getNodes()) { 1314 for (Node node : inlineGraph.getNodes()) {
1312 if (node == entryPointNode || node == entryPointNode.stateAfter() || node instanceof LocalNode) { 1315 if (node == entryPointNode || node == entryPointNode.stateAfter() || node instanceof LocalNode) {
1313 // Do nothing. 1316 // Do nothing.
1314 } else { 1317 } else {
1315 nodes.add(node); 1318 nodes.add(node);