Class AssemblyLabels

java.lang.Object
org.adoptopenjdk.jitwatch.model.assembly.AssemblyLabels

public final class AssemblyLabels extends Object
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 Details

    • addresses

      private SortedSet<Long> addresses
    • labels

      private final Map<Long,Short> labels
    • lowest

      private long lowest
    • highest

      private long highest
  • Constructor Details

    • AssemblyLabels

      public AssemblyLabels()
  • Method Details