MCPcopy Index your code
hub / github.com/antlr/codebuff / instrs

Method instrs

output/java8/1.4.17/BytecodeDisassembler.java:43–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 }
42
43 public String instrs() {
44 StringBuilder buf = new StringBuilder();
45 int ip = 0;
46 while ( ip < code.codeSize ) {
47 if ( ip>0 ) buf.append(", ");
48 int opcode = code.instrs[ip];
49 Bytecode.Instruction I = Bytecode.instructions[opcode];
50 buf.append(I.name);
51 ip++;
52 for (int opnd = 0; opnd < I.nopnds; opnd++) {
53 buf.append(' ');
54 buf.append(getShort(code.instrs, ip));
55 ip += Bytecode.OPND_SIZE_IN_BYTES;
56 }
57 }
58 return buf.toString();
59 }
60
61
62 public String disassemble() {

Callers 1

instrsMethod · 0.95

Calls 3

getShortMethod · 0.95
toStringMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected