Class AssemblyLabels
java.lang.Object
org.adoptopenjdk.jitwatch.model.assembly.AssemblyLabels
Calculate symbolic names for method-local addresses.
Operates in two modes. During parsing, newInstruction(AssemblyInstruction) accumulates
addresses used by instructions. After all the instructions have been parsed,
buildLabels() builds an index of addresses of all known instructions
to label numbers, and formatAddress(long, StringBuilder) and formatOperands(AssemblyInstruction, StringBuilder)
replace matching addresses with their labels.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidformatAddress(long address, StringBuilder builder) voidformatOperands(AssemblyInstruction instruction, StringBuilder builder) private LonginstructionToLabel(AssemblyInstruction instruction) voidnewInstruction(AssemblyInstruction instruction)
-
Field Details
-
addresses
-
labels
-
lowest
private long lowest -
highest
private long highest
-
-
Constructor Details
-
AssemblyLabels
public AssemblyLabels()
-
-
Method Details
-
newInstruction
-
instructionToLabel
-
buildLabels
public void buildLabels() -
formatAddress
-
formatOperands
-