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

Method emit2

output/java8/1.4.17/CompilationState.java:135–142  ·  view source on GitHub ↗
(CommonTree opAST, short opcode, int arg, int arg2)

Source from the content-addressed store, hash-verified

133 }
134
135 public void emit2(CommonTree opAST, short opcode, int arg, int arg2) {
136 emit(opAST, opcode);
137 ensureCapacity(Bytecode.OPND_SIZE_IN_BYTES*2);
138 writeShort(impl.instrs, ip, (short)arg);
139 ip += Bytecode.OPND_SIZE_IN_BYTES;
140 writeShort(impl.instrs, ip, (short)arg2);
141 ip += Bytecode.OPND_SIZE_IN_BYTES;
142 }
143
144 public void emit2(CommonTree opAST, short opcode, String s, int arg2) {
145 int i = defineString(s);

Callers

nothing calls this directly

Calls 4

emitMethod · 0.95
ensureCapacityMethod · 0.95
writeShortMethod · 0.95
defineStringMethod · 0.95

Tested by

no test coverage detected