Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/ProbeNode.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 | d6d9631eb057 |
children |
comparison
equal
deleted
inserted
replaced
21180:c2f5dc4418d0 | 21181:78a4b44420cf |
---|---|
198 public String instrumentationInfo() { | 198 public String instrumentationInfo() { |
199 return "Standard probe"; | 199 return "Standard probe"; |
200 } | 200 } |
201 | 201 |
202 /** | 202 /** |
203 * Gets the guest-language AST node to which this Probe is attached. | |
204 */ | |
205 Node getProbedNode() { | |
206 return ((WrapperNode) this.getParent()).getChild(); | |
207 } | |
208 | |
209 /** | |
203 * Adds an {@link AbstractInstrumentNode} to this chain. | 210 * Adds an {@link AbstractInstrumentNode} to this chain. |
204 */ | 211 */ |
205 @TruffleBoundary | 212 @TruffleBoundary |
206 void addInstrument(Instrument instrument) { | 213 void addInstrument(Instrument instrument) { |
207 assert instrument.getProbe() == probe; | 214 assert instrument.getProbe() == probe; |