Mercurial > hg > truffle
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeUtil.java @ 15093:5634b199c4da
Truffle: API-change: renamed CallNode to DirectCallNode and added IndirectCallNode.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 14 Apr 2014 20:32:25 +0200 |
parents | 07e7aae05983 |
children | fc6f8d143c68 |
comparison
equal
deleted
inserted
replaced
15092:c73ce0dd3583 | 15093:5634b199c4da |
---|---|
634 public boolean visit(Node node) { | 634 public boolean visit(Node node) { |
635 if (filter == null || filter.isCounted(node)) { | 635 if (filter == null || filter.isCounted(node)) { |
636 nodeCount++; | 636 nodeCount++; |
637 } | 637 } |
638 | 638 |
639 if (visitInlinedCallNodes && node instanceof CallNode) { | 639 if (visitInlinedCallNodes && node instanceof DirectCallNode) { |
640 CallNode call = (CallNode) node; | 640 DirectCallNode call = (DirectCallNode) node; |
641 if (call.isInlined()) { | 641 if (call.isInlined()) { |
642 Node target = ((RootCallTarget) call.getCurrentCallTarget()).getRootNode(); | 642 Node target = ((RootCallTarget) call.getCurrentCallTarget()).getRootNode(); |
643 if (target != null) { | 643 if (target != null) { |
644 target.accept(this); | 644 target.accept(this); |
645 } | 645 } |