public class CompilationPrinter extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
static String |
COLUMN_END |
private static OutputStream |
globalOut |
static String |
HOVER_END |
static String |
HOVER_SEP |
static String |
HOVER_START |
protected LogStream |
out |
Constructor and Description |
---|
CompilationPrinter(OutputStream os)
Creates a control flow graph printer.
|
Modifier and Type | Method and Description |
---|---|
protected void |
begin(String string) |
void |
close() |
protected String |
debugInfoToString(BytecodePosition codePos,
ReferenceMap refMap,
IndexedValueMap liveBasePointers,
RegisterSaveLayout calleeSaveInfo)
Formats given debug info as a multi line string.
|
protected void |
end(String string) |
void |
flush()
Flushes all buffered output to the underlying output stream.
|
static OutputStream |
globalOut()
Gets a global output stream on a file in the current working directory.
|
void |
printBytecodes(String code) |
void |
printCompilation(JavaMethod method)
Prints a compilation timestamp for a given method.
|
void |
printMachineCode(String code,
String label) |
protected String |
valueToString(Value value,
List<VirtualObject> virtualObjects) |
public static final String COLUMN_END
public static final String HOVER_START
public static final String HOVER_SEP
public static final String HOVER_END
private static OutputStream globalOut
public CompilationPrinter(OutputStream os)
os
- where the output generated via this printer will be sentpublic static OutputStream globalOut()
"compilations-" + System.currentTimeMillis() + ".cfg"
.null
if there was an error opening the file for
writingpublic void flush()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void printCompilation(JavaMethod method)
method
- the method for which a timestamp will be printedprotected String debugInfoToString(BytecodePosition codePos, ReferenceMap refMap, IndexedValueMap liveBasePointers, RegisterSaveLayout calleeSaveInfo)
protected String valueToString(Value value, List<VirtualObject> virtualObjects)
public void printMachineCode(String code, String label)
public void printBytecodes(String code)