Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/tools/NodeExecCounter.java @ 19038:c7e57dffc5ad
Truffle/Instrumentation: comments and minor code cleanup post-review
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Thu, 29 Jan 2015 11:44:14 -0800 |
parents | ac114ad31cdd |
children | 3d2296dbace9 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/tools/NodeExecCounter.java Thu Jan 29 11:27:19 2015 +0100 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/tools/NodeExecCounter.java Thu Jan 29 11:44:14 2015 -0800 @@ -96,8 +96,12 @@ */ private final TruffleEventReceiver eventReceiver = new DefaultEventReceiver() { @Override + public void enter(Node node, VirtualFrame frame) { + internalReceive(node); + } + @TruffleBoundary - public void enter(Node node, VirtualFrame frame) { + private void internalReceive(Node node) { if (isEnabled()) { final Class<?> nodeClass = node.getClass(); AtomicLong nodeCounter = counters.get(nodeClass);