public class CompilationPrinter extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
static String |
COLUMN_END |
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.
|
void |
printBytecodes(String code) |
void |
printCompilation(JavaMethod javaMethod)
Prints a compilation timestamp for a given method.
|
void |
printMachineCode(String code,
String label) |
protected String |
valueToString(JavaValue 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
protected final LogStream out
public CompilationPrinter(OutputStream os)
os
- where the output generated via this printer will be sentpublic void flush()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
protected void begin(String string)
protected void end(String string)
public void printCompilation(JavaMethod javaMethod)
javaMethod
- the method for which a timestamp will be printedprotected String debugInfoToString(BytecodePosition codePos, ReferenceMap refMap, IndexedValueMap liveBasePointers, RegisterSaveLayout calleeSaveInfo)
public void printBytecodes(String code)