Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/instrument/InstrumentationTestNodes.java @ 21353:876e710523c5
Truffle/Instrumentation: rename "Tool Eval" Instrument kind to "Advanced" Instrument kind
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Tue, 12 May 2015 12:57:47 -0700 |
parents | 78a4b44420cf |
children |
comparison
equal
deleted
inserted
replaced
21345:a818a6a57ef4 | 21353:876e710523c5 |
---|---|
165 public void applyInstrumentation() { | 165 public void applyInstrumentation() { |
166 Probe.applyASTProbers(body); | 166 Probe.applyASTProbers(body); |
167 } | 167 } |
168 } | 168 } |
169 | 169 |
170 static class TestToolEvalCounterNode extends ToolEvalNode { | 170 static class TestAdvancedInstrumentCounterRoot extends AdvancedInstrumentRoot { |
171 | 171 |
172 private long count; | 172 private long count; |
173 | 173 |
174 @Override | 174 @Override |
175 public Object executeToolEvalNode(Node node, VirtualFrame vFrame) { | 175 public Object executeRoot(Node node, VirtualFrame vFrame) { |
176 count++; | 176 count++; |
177 return null; | 177 return null; |
178 } | 178 } |
179 | 179 |
180 public long getCount() { | 180 public long getCount() { |