Mercurial > hg > graal-jvmci-8
diff graal/GraalCompiler/src/com/sun/c1x/observer/CompilationEvent.java @ 2809:b003ea36fa12
Add block structure to ideal graph visualizer
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Mon, 30 May 2011 14:55:09 +0200 |
parents | bda5972a40a5 |
children |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/observer/CompilationEvent.java Mon May 30 13:42:23 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/observer/CompilationEvent.java Mon May 30 14:55:09 2011 +0200 @@ -24,10 +24,10 @@ import java.util.*; +import com.oracle.graal.graph.*; import com.sun.c1x.*; import com.sun.c1x.alloc.*; import com.sun.c1x.graph.*; -import com.sun.c1x.ir.*; import com.sun.cri.ci.*; import com.sun.cri.ri.*; @@ -43,7 +43,7 @@ private final C1XCompilation compilation; private final String label; - private Instruction startBlock; + private Graph graph; private BlockMap blockMap; private int codeSize = -1; @@ -67,15 +67,15 @@ this.compilation = compilation; } - public CompilationEvent(C1XCompilation compilation, String label, Instruction startBlock, boolean hirValid, boolean lirValid) { + public CompilationEvent(C1XCompilation compilation, String label, Graph graph, boolean hirValid, boolean lirValid) { this(compilation, label); - this.startBlock = startBlock; + this.graph = graph; this.hirValid = hirValid; this.lirValid = lirValid; } - public CompilationEvent(C1XCompilation compilation, String label, Instruction startBlock, boolean hirValid, boolean lirValid, CiTargetMethod targetMethod) { - this(compilation, label, startBlock, hirValid, lirValid); + public CompilationEvent(C1XCompilation compilation, String label, Graph graph, boolean hirValid, boolean lirValid, CiTargetMethod targetMethod) { + this(compilation, label, graph, hirValid, lirValid); this.targetMethod = targetMethod; } @@ -108,8 +108,8 @@ return blockMap; } - public Instruction getStartBlock() { - return startBlock; + public Graph getGraph() { + return graph; } public LinearScan getAllocator() {