Mercurial > hg > truffle
diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/ExecutionContext.java @ 14094:3f27e57439ed
Truffle/Instrumentation: significant rearrangement (including moved class) and extension of the Truffle Instrumentation Framework. New interfaces include DebugContext (which can be attached to the ExecutionContext), through which access is provided to possibly language-specific (a) node instrumentation, (b) debug services manager, (c) notification when programs halt, (d) display of language values, and (e) display of variable identifiers.
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Mon, 03 Feb 2014 20:58:23 -0800 |
parents | fbf448929260 |
children | 0c6d8a08e31b |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/ExecutionContext.java Wed Jan 22 21:34:00 2014 -0800 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/ExecutionContext.java Mon Feb 03 20:58:23 2014 -0800 @@ -24,6 +24,9 @@ */ package com.oracle.truffle.api; +import com.oracle.truffle.api.debug.*; +import com.oracle.truffle.api.source.*; + /** * Information about the runtime context of a Truffle program. * <p> @@ -38,8 +41,13 @@ String getLanguageShortName(); /** - * Gets access to debugging services, {@code null} if not enabled in this context. + * Gets access to source management services. */ - DebugManager getDebugManager(); + SourceManager getSourceManager(); + + /** + * Gets access to debugging services. Returns an inert instance if no services installed. + */ + DebugContext getDebugContext(); }