comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Instrument.java @ 22003:5bc7f7b867ab

Making debugger always on for each TruffleVM execution. Introducing EventConsumer to process such debugger events. Requesting each RootNode to be associated with a TruffleLanguage, so debugger can find out proper context for each Node where executions gets suspended.
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Sat, 18 Jul 2015 18:03:36 +0200
parents ff6f34159b8a
children f410818cdec8
comparison
equal deleted inserted replaced
22002:324997830dc9 22003:5bc7f7b867ab
40 * an executing Truffle AST, and</li> 40 * an executing Truffle AST, and</li>
41 * <li>A <em>listener</em>: a consumer of execution events on behalf of an external client. 41 * <li>A <em>listener</em>: a consumer of execution events on behalf of an external client.
42 * </ol> 42 * </ol>
43 * <p> 43 * <p>
44 * Client-oriented documentation for the use of Instruments is available online at <a 44 * Client-oriented documentation for the use of Instruments is available online at <a
45 * HREF="https://wiki.openjdk.java.net/display/Graal/Listening+for+Execution+Events" 45 * HREF="https://wiki.openjdk.java.net/display/Graal/Listening+for+Execution+Events" >https://
46 * >https://wiki.openjdk.java.net/display/Graal/Listening+for+Execution+Events</a> 46 * wiki.openjdk.java.net/display/Graal/Listening+for+Execution+Events</a>
47 * <p> 47 * <p>
48 * The implementation of Instruments is complicated by the requirement that Truffle be able to clone 48 * The implementation of Instruments is complicated by the requirement that Truffle be able to clone
49 * ASTs at any time. In particular, any instrumentation-supporting Nodes that have been attached to 49 * ASTs at any time. In particular, any instrumentation-supporting Nodes that have been attached to
50 * an AST must be cloned along with the AST: AST clones are not permitted to share Nodes. 50 * an AST must be cloned along with the AST: AST clones are not permitted to share Nodes.
51 * <p> 51 * <p>