Mercurial > hg > truffle
changeset 22009:130e5f69d1a6
Lukas wants there methods to be available for Truffle language implementors.
Related to Graal e8dc090e167f
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Thu, 23 Jul 2015 10:48:53 +0200 |
parents | 02e4cf046653 |
children | f410818cdec8 |
files | truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java Wed Jul 22 14:25:03 2015 +0200 +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java Thu Jul 23 10:48:53 2015 +0200 @@ -201,4 +201,17 @@ */ public static void materialize(Object obj) { } + + /** + * Ensures that the given object will be virtual (escape analyzed) at all points that are + * dominated by the current position. + */ + public static void ensureVirtualized(@SuppressWarnings("unused") Object object) { + } + + /** + * Ensures that the given object will be virtual at the current position. + */ + public static void ensureVirtualizedHere(@SuppressWarnings("unused") Object object) { + } }