Java Code Examples for jdk.internal.org.objectweb.asm.Opcodes#POP2

The following examples show how to use jdk.internal.org.objectweb.asm.Opcodes#POP2 . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: InvokerBytecodeGenerator.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
private static int popInsnOpcode(BasicType type) {
    switch (type) {
        case I_TYPE:
        case F_TYPE:
        case L_TYPE:
            return Opcodes.POP;
        case J_TYPE:
        case D_TYPE:
            return Opcodes.POP2;
        default:
            throw new InternalError("unknown type: " + type);
    }
}