Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/RootNode.java @ 22214:3aad794eec0e
Truffle/Instrumentation: first large merge of instrumentation code into the TruffleVM framework
- introduce the Instrumenter class, held by the TruffleVM to support instrumentation services
- reimplement Probe-realated services (formerly statics in Probe.java) to be provided by the Instrumenter- add new Accessors
- change the TruffleVM startup sequence
- change the APIs of the Debugger and many other classes
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Mon, 14 Sep 2015 22:59:51 -0700 |
parents | e70b20f4bb00 |
children | 1c0f490984d5 |
comparison
equal
deleted
inserted
replaced
22136:1d804d691dc7 | 22214:3aad794eec0e |
---|---|
178 return context.getCompilerOptions(); | 178 return context.getCompilerOptions(); |
179 } | 179 } |
180 } | 180 } |
181 | 181 |
182 /** | 182 /** |
183 * Apply all registered instances of {@link ASTProber} to the AST, if any, held by this root | 183 * Apply to the AST all instances of {@link ASTProber} specified for the language, if any, held |
184 * node. This can only be done once the AST is complete, notably once all parent pointers are | 184 * by this root node. This can only be done once the AST is complete, notably once all parent |
185 * correctly assigned. But it also must be done before any AST cloning or execution. | 185 * pointers are correctly assigned. But it also must be done before any AST cloning or |
186 * execution. | |
186 * <p> | 187 * <p> |
187 * If this is not done, then the AST will not be subject to debugging or any other | 188 * If this is not done, then the AST will not be subject to debugging or any other |
188 * instrumentation-supported tooling. | 189 * instrumentation-supported tooling. |
189 * <p> | 190 * <p> |
190 * Implementations should ensure that instrumentation is never applied more than once to an AST, | 191 * Implementations should ensure that instrumentation is never applied more than once to an AST, |
191 * as this is not guaranteed to be error-free. | 192 * as this is not guaranteed to be error-free. |
192 * | 193 * |
193 * @see Probe#registerASTProber(com.oracle.truffle.api.instrument.ASTProber) | 194 * @see TruffleLanguage |
194 */ | 195 */ |
195 public void applyInstrumentation() { | 196 public void applyInstrumentation() { |
196 } | 197 } |
197 | 198 |
198 /** | 199 /** |