public class SPARCInstructionCounter extends Object implements Assembler.InstructionCounter
Modifier and Type | Class and Description |
---|---|
private static class |
SPARCInstructionCounter.OP3LowBitsMatcher
Tests the lower 3 bits of the op3 field.
|
private static class |
SPARCInstructionCounter.SPARCInstructionMatch |
Modifier and Type | Field and Description |
---|---|
private SPARCAssembler |
asm |
private static TreeMap<String,SPARCInstructionCounter.SPARCInstructionMatch> |
INSTRUCTION_MATCHER |
Constructor and Description |
---|
SPARCInstructionCounter(SPARCAssembler asm) |
Modifier and Type | Method and Description |
---|---|
private int[] |
countBetween(SPARCInstructionCounter.SPARCInstructionMatch[] matchers,
int startPc,
int endPc) |
int[] |
countInstructions(String[] instructionTypes,
int beginPc,
int endPc) |
String[] |
getSupportedInstructionTypes() |
private static final TreeMap<String,SPARCInstructionCounter.SPARCInstructionMatch> INSTRUCTION_MATCHER
private final SPARCAssembler asm
public SPARCInstructionCounter(SPARCAssembler asm)
public int[] countInstructions(String[] instructionTypes, int beginPc, int endPc)
countInstructions
in interface Assembler.InstructionCounter
private int[] countBetween(SPARCInstructionCounter.SPARCInstructionMatch[] matchers, int startPc, int endPc)
public String[] getSupportedInstructionTypes()
getSupportedInstructionTypes
in interface Assembler.InstructionCounter