Example usage for org.objectweb.asm.tree MultiANewArrayInsnNode getOpcode

List of usage examples for org.objectweb.asm.tree MultiANewArrayInsnNode getOpcode

Introduction

In this page you can find the example usage for org.objectweb.asm.tree MultiANewArrayInsnNode getOpcode.

Prototype

public int getOpcode() 

Source Link

Document

Returns the opcode of this instruction.

Usage

From source file:edu.mit.streamjit.util.bytecode.MethodResolver.java

License:Open Source License

private void interpret(MultiANewArrayInsnNode insn, FrameState frame, BBInfo block) {
    assert insn.getOpcode() == Opcodes.MULTIANEWARRAY;
    Klass k = getKlassByInternalName(insn.desc);
    Value[] dims = new Value[insn.dims];
    for (int i = dims.length - 1; i >= 0; --i)
        dims[i] = frame.stack.pop();/*from   w  w  w  .  ja v a  2s  .co  m*/
    NewArrayInst nai = new NewArrayInst(typeFactory.getArrayType(k), dims);
    block.block.instructions().add(nai);
    frame.stack.push(nai);
}