MCPcopy Index your code
hub / github.com/clojure/clojure / visitTableSwitchInsn

Method visitTableSwitchInsn

src/jvm/clojure/asm/MethodWriter.java:1329–1342  ·  view source on GitHub ↗
(
      final int min, final int max, final Label dflt, final Label... labels)

Source from the content-addressed store, hash-verified

1327 }
1328
1329 @Override
1330 public void visitTableSwitchInsn(
1331 final int min, final int max, final Label dflt, final Label... labels) {
1332 lastBytecodeOffset = code.length;
1333 // Add the instruction to the bytecode of the method.
1334 code.putByte(Opcodes.TABLESWITCH).putByteArray(null, 0, (4 - code.length % 4) % 4);
1335 dflt.put(code, lastBytecodeOffset, true);
1336 code.putInt(min).putInt(max);
1337 for (Label label : labels) {
1338 label.put(code, lastBytecodeOffset, true);
1339 }
1340 // If needed, update the maximum stack size and number of locals, and stack map frames.
1341 visitSwitchInsn(dflt, labels);
1342 }
1343
1344 @Override
1345 public void visitLookupSwitchInsn(final Label dflt, final int[] keys, final Label[] labels) {

Callers 3

doEmitMethod · 0.45
readCodeMethod · 0.45
tableSwitchMethod · 0.45

Calls 5

visitSwitchInsnMethod · 0.95
putByteArrayMethod · 0.80
putByteMethod · 0.80
putIntMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected