Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/ExecutionContext.java @ 13563:fb846424299f
Truffle/Ruby: extend Instrumentation framework with language-agnostic interfaces for access to AST printing utilities and a Ruby implementation
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Tue, 07 Jan 2014 18:09:42 -0800 |
parents | 69d2e4baa215 |
children | fbf448929260 |
comparison
equal
deleted
inserted
replaced
13562:58ca96949f2e | 13563:fb846424299f |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this | 7 * published by the Free Software Foundation. Oracle designates this |
24 */ | 24 */ |
25 package com.oracle.truffle.api; | 25 package com.oracle.truffle.api; |
26 | 26 |
27 /** | 27 /** |
28 * Information about the runtime context of a Truffle program. | 28 * Information about the runtime context of a Truffle program. |
29 * <p> | |
30 * <strong>Disclaimer:</strong> this interface is under development and will change. | |
29 */ | 31 */ |
30 public interface ExecutionContext { | 32 public interface ExecutionContext { |
31 | 33 |
32 /** | 34 /** |
33 * Gets the name of the language, possibly with version number. in short enough form that it | 35 * Gets the name of the language, possibly with version number. in short enough form that it |
38 /** | 40 /** |
39 * Gets access to debugging services, {@code null} if not enabled in this context. | 41 * Gets access to debugging services, {@code null} if not enabled in this context. |
40 */ | 42 */ |
41 DebugManager getDebugManager(); | 43 DebugManager getDebugManager(); |
42 | 44 |
45 /** | |
46 * Gets access to utilities for printing different aspects of a Truffle AST. | |
47 */ | |
48 ASTPrinter getASTPrinter(); | |
49 | |
43 } | 50 } |