Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/debug/CFGPrinter.java @ 2801:2af109bec0c0
Make block contains a list of nodes instead a list of instructions.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Fri, 27 May 2011 15:11:34 +0200 |
parents | d3fc4fe063bf |
children |
comparison
equal
deleted
inserted
replaced
2800:e3a0630a1dab | 2801:2af109bec0c0 |
---|---|
23 package com.sun.c1x.debug; | 23 package com.sun.c1x.debug; |
24 | 24 |
25 import java.io.*; | 25 import java.io.*; |
26 import java.util.*; | 26 import java.util.*; |
27 | 27 |
28 import com.oracle.graal.graph.*; | |
28 import com.oracle.max.graal.schedule.*; | 29 import com.oracle.max.graal.schedule.*; |
29 import com.sun.c1x.*; | 30 import com.sun.c1x.*; |
30 import com.sun.c1x.alloc.*; | 31 import com.sun.c1x.alloc.*; |
31 import com.sun.c1x.alloc.Interval.*; | 32 import com.sun.c1x.alloc.Interval.*; |
32 import com.sun.c1x.graph.*; | 33 import com.sun.c1x.graph.*; |
405 */ | 406 */ |
406 private void printHIR(Block block) { | 407 private void printHIR(Block block) { |
407 begin("IR"); | 408 begin("IR"); |
408 out.println("HIR"); | 409 out.println("HIR"); |
409 out.disableIndentation(); | 410 out.disableIndentation(); |
410 for (Instruction i : block.getInstructions()) { | 411 for (Node i : block.getInstructions()) { |
411 printInstructionHIR(i); | 412 if (i instanceof Instruction) { |
413 printInstructionHIR((Instruction) i); | |
414 } | |
412 } | 415 } |
413 out.enableIndentation(); | 416 out.enableIndentation(); |
414 end("IR"); | 417 end("IR"); |
415 } | 418 } |
416 | 419 |