# HG changeset patch # User Jaroslav Tulach # Date 1437641333 -7200 # Node ID 130e5f69d1a6902f07f843ca00c1c38310930a68 # Parent 02e4cf046653cc7c6e37f2d41d7afecffc601695 Lukas wants there methods to be available for Truffle language implementors. Related to Graal e8dc090e167f diff -r 02e4cf046653 -r 130e5f69d1a6 truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java --- 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) { + } }