Mercurial > hg > graal-compiler
comparison graal/com.oracle.max.criutils/src/com/oracle/max/criutils/CompilationPrinter.java @ 5507:dc71b06d09f8
Moving classes from cri.ri to api.meta.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Thu, 07 Jun 2012 18:24:06 +0200 |
parents | 56860d3f9f39 |
children | 426c605c9d3c |
comparison
equal
deleted
inserted
replaced
5506:56860d3f9f39 | 5507:dc71b06d09f8 |
---|---|
25 import static com.oracle.max.cri.ci.CiValueUtil.*; | 25 import static com.oracle.max.cri.ci.CiValueUtil.*; |
26 | 26 |
27 import java.io.*; | 27 import java.io.*; |
28 import java.util.*; | 28 import java.util.*; |
29 | 29 |
30 import com.oracle.graal.api.meta.*; | |
30 import com.oracle.max.cri.ci.*; | 31 import com.oracle.max.cri.ci.*; |
31 import com.oracle.max.cri.ri.*; | |
32 | 32 |
33 /** | 33 /** |
34 * Utility for printing compilation related data structures at various compilation phases. | 34 * Utility for printing compilation related data structures at various compilation phases. |
35 * The output format is such that it can then be fed to the | 35 * The output format is such that it can then be fed to the |
36 * <a href="https://c1visualizer.dev.java.net/">C1 Visualizer</a>. | 36 * <a href="https://c1visualizer.dev.java.net/">C1 Visualizer</a>. |
104 } | 104 } |
105 | 105 |
106 /** | 106 /** |
107 * Formats a given {@linkplain FrameState JVM frame state} as a multi line string. | 107 * Formats a given {@linkplain FrameState JVM frame state} as a multi line string. |
108 */ | 108 */ |
109 protected String debugInfoToString(CiCodePos codePos, CiBitMap registerRefMap, CiBitMap frameRefMap, CiArchitecture arch) { | 109 protected String debugInfoToString(CiCodePos codePos, RiBitMap registerRefMap, RiBitMap frameRefMap, CiArchitecture arch) { |
110 StringBuilder sb = new StringBuilder(); | 110 StringBuilder sb = new StringBuilder(); |
111 | 111 |
112 if (registerRefMap != null) { | 112 if (registerRefMap != null) { |
113 sb.append("reg-ref-map:"); | 113 sb.append("reg-ref-map:"); |
114 for (int reg = registerRefMap.nextSetBit(0); reg >= 0; reg = registerRefMap.nextSetBit(reg + 1)) { | 114 for (int reg = registerRefMap.nextSetBit(0); reg >= 0; reg = registerRefMap.nextSetBit(reg + 1)) { |