Package nginx.clojure.asm

Examples of nginx.clojure.asm.MethodVisitor.visitInsn()


      if (db.checkMethodSuspendType(invokedInitInsn.owner, ClassEntry.key(invokedInitInsn.name, invokedInitInsn.desc), false, false) == MethodDatabase.SUSPEND_NORMAL) {
        Type[] tps = Type.getArgumentTypes(invokedInitInsn.desc);
        Type[] ntps = new Type[tps.length + 1];
        System.arraycopy(tps, 0, ntps, 0, tps.length);
        ntps[tps.length] = Type.getType(CheckInstrumentationVisitor.EXCEPTION_DESC);
        cmv.visitInsn(Opcodes.ACONST_NULL);
        cmv.visitMethodInsn(invokedInitInsn.getOpcode(), invokedInitInsn.owner,invokedInitInsn.name, Type.getMethodDescriptor(Type.VOID_TYPE, ntps));
      }else {
        invokedInitInsn.accept(cmv);
      }
    }
View Full Code Here


                int slotIdx = fi.stackSlotIndices[i];
                assert slotIdx >= 0 && slotIdx < fi.numSlots;
                emitStoreValue(cmv, v, lvarCStack, slotIdx);
            } else {
                db.trace("NULL stack entry: type=%s size=%d", v.getType(), v.getSize());
                cmv.visitInsn(Opcodes.POP);
            }
        }
    }
   
    for(int i=firstLocal; i < f.getLocals() ; i++) {
View Full Code Here

              }else if (var.start.getPrevious() == null) {
                var.accept(cmv);
              }
            }
        }
    cmv.visitInsn(Opcodes.RETURN);
    cmv.visitMaxs(mn.maxStack+3, mn.maxLocals+3);
    cmv.visitEnd();
  }

  public static String buildShrinkedInitMethodDesc(String desc) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.