diff graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/instrument/InstrumentationTestNodes.java @ 21181:78a4b44420cf

Truffle/Instrumentation: rename the "SplicedNode" Instrument kind to the "ToolEval" instrument kind, along with some redesign based on earlier feedback.
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Sun, 03 May 2015 21:59:55 -0700
parents 0b2e4d40b683
children 876e710523c5
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/instrument/InstrumentationTestNodes.java	Sat May 02 14:40:49 2015 -0700
+++ b/graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/instrument/InstrumentationTestNodes.java	Sun May 03 21:59:55 2015 -0700
@@ -167,17 +167,22 @@
         }
     }
 
-    static class TestSplicedCounterNode extends SplicedNode {
+    static class TestToolEvalCounterNode extends ToolEvalNode {
 
         private long count;
 
         @Override
-        public void enter(Node node, VirtualFrame vFrame) {
+        public Object executeToolEvalNode(Node node, VirtualFrame vFrame) {
             count++;
+            return null;
         }
 
         public long getCount() {
             return count;
         }
+
+        public String instrumentationInfo() {
+            return null;
+        }
     }
 }