# HG changeset patch # User Gilles Duboscq # Date 1397468796 -7200 # Node ID 393935e524e95591f0a107a91569b8d6d27df742 # Parent 220dd370ef9b946ee501fc3b2e4bc86fb8633427 Fix inlining scoping: add a Debug.scope(Object name, Object[] contextObjects) method so that inlining can put all the necessary methods in the context. diff -r 220dd370ef9b -r 393935e524e9 graal/com.oracle.graal.debug/src/com/oracle/graal/debug/Debug.java --- a/graal/com.oracle.graal.debug/src/com/oracle/graal/debug/Debug.java Fri Apr 11 19:00:42 2014 +0200 +++ b/graal/com.oracle.graal.debug/src/com/oracle/graal/debug/Debug.java Mon Apr 14 11:46:36 2014 +0200 @@ -188,6 +188,19 @@ /** * @see #scope(Object) + * @param contextObjects an array of object to be appended to the {@linkplain #context() + * current} debug context + */ + public static Scope scope(Object name, Object[] contextObjects) { + if (ENABLED) { + return DebugScope.getInstance().scope(convertFormatArg(name).toString(), null, contextObjects); + } else { + return null; + } + } + + /** + * @see #scope(Object) * @param context an object to be appended to the {@linkplain #context() current} debug context */ public static Scope scope(Object name, Object context) {