MCPcopy Create free account
hub / github.com/antlr/codebuff / emit2

Method emit2

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

Source from the content-addressed store, hash-verified

131 }
132
133 public void emit2(CommonTree opAST, short opcode, int arg, int arg2) {
134 emit(opAST, opcode);
135 ensureCapacity(Bytecode.OPND_SIZE_IN_BYTES*2);
136 writeShort(impl.instrs, ip, (short)arg);
137 ip += Bytecode.OPND_SIZE_IN_BYTES;
138 writeShort(impl.instrs, ip, (short)arg2);
139 ip += Bytecode.OPND_SIZE_IN_BYTES;
140 }
141
142 public void emit2(CommonTree opAST, short opcode, String s, int arg2) {
143 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