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

Method visitMultiANewArrayInsn

src/jvm/clojure/asm/MethodWriter.java:1384–1400  ·  view source on GitHub ↗
(final String descriptor, final int numDimensions)

Source from the content-addressed store, hash-verified

1382 }
1383
1384 @Override
1385 public void visitMultiANewArrayInsn(final String descriptor, final int numDimensions) {
1386 lastBytecodeOffset = code.length;
1387 // Add the instruction to the bytecode of the method.
1388 Symbol descSymbol = symbolTable.addConstantClass(descriptor);
1389 code.put12(Opcodes.MULTIANEWARRAY, descSymbol.index).putByte(numDimensions);
1390 // If needed, update the maximum stack size and number of locals, and stack map frames.
1391 if (currentBasicBlock != null) {
1392 if (compute == COMPUTE_ALL_FRAMES || compute == COMPUTE_INSERTED_FRAMES) {
1393 currentBasicBlock.frame.execute(
1394 Opcodes.MULTIANEWARRAY, numDimensions, descSymbol, symbolTable);
1395 } else {
1396 // No need to update maxRelativeStackSize (the stack size delta is always negative).
1397 relativeStackSize += 1 - numDimensions;
1398 }
1399 }
1400 }
1401
1402 @Override
1403 public AnnotationVisitor visitInsnAnnotation(

Callers 1

readCodeMethod · 0.45

Calls 4

addConstantClassMethod · 0.80
putByteMethod · 0.80
put12Method · 0.80
executeMethod · 0.45

Tested by

no test coverage detected