Mercurial > hg > graal-compiler
diff graal/com.oracle.graal.debug/src/com/oracle/graal/debug/DebugDumpScope.java @ 5432:50598118cd0a
added support for decorator dump scopes so that the visualizers can distinguish between multiple compilations of the same method
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 23 May 2012 14:39:56 +0200 |
parents | e808627bd16f |
children | 5e3d1a68664e |
line wrap: on
line diff
--- a/graal/com.oracle.graal.debug/src/com/oracle/graal/debug/DebugDumpScope.java Wed May 23 12:11:27 2012 +0200 +++ b/graal/com.oracle.graal.debug/src/com/oracle/graal/debug/DebugDumpScope.java Wed May 23 14:39:56 2012 +0200 @@ -22,16 +22,24 @@ */ package com.oracle.graal.debug; -public final class DebugDumpScope { +public class DebugDumpScope { + + public final String name; - private final String name; + /** + * Specifies if this scope decorates an inner scope. + * A hierarchical or tree representation of nested scopes may choose to represent + * a decorator scope at the same level as the scope it decorates. + */ + public final boolean decorator; public DebugDumpScope(String name) { - this.name = name; + this(name, false); } - public String getName() { - return name; + public DebugDumpScope(String name, boolean decorator) { + this.name = name; + this.decorator = decorator; } @Override