Examples of StackMapTable


Examples of javassist.bytecode.StackMapTable

    code.addIndex(field_index);
    // return
    code.addOpcode(Opcode.RETURN);
    minfo.setCodeAttribute(code.toCodeAttribute());
    minfo.setAccessFlags(AccessFlag.PUBLIC);
    StackMapTable smt = MapMaker.make(ClassPool.getDefault(), minfo);
    minfo.getCodeAttribute().setAttribute(smt);
    classfile.addMethod(minfo);
  }
View Full Code Here

Examples of javassist.bytecode.StackMapTable

    // *return // each type
    addTypeDependDataReturn(code, finfo.getDescriptor());

    minfo.setCodeAttribute(code.toCodeAttribute());
    minfo.setAccessFlags(AccessFlag.PUBLIC);
    StackMapTable smt = MapMaker.make(ClassPool.getDefault(), minfo);
    minfo.getCodeAttribute().setAttribute(smt);
    classfile.addMethod(minfo);
  }
View Full Code Here

Examples of javassist.bytecode.StackMapTable

    // return
    code.addOpcode(Opcode.RETURN);

    minfo.setCodeAttribute(code.toCodeAttribute());
    minfo.setAccessFlags(AccessFlag.PUBLIC);
    StackMapTable smt = MapMaker.make(ClassPool.getDefault(), minfo);
    minfo.getCodeAttribute().setAttribute(smt);
    classfile.addMethod(minfo);
  }
View Full Code Here

Examples of javassist.bytecode.StackMapTable

        int pos = iter.next();
        pos = transformInvokevirtualsIntoGetfields(classfile, iter, pos);
        pos = transformInvokevirtualsIntoPutfields(classfile, iter, pos);
      }
     
      StackMapTable smt = MapMaker.make(ClassPool.getDefault(), minfo);
      minfo.getCodeAttribute().setAttribute(smt);
    }
  }
View Full Code Here

Examples of org.apache.bcel.classfile.StackMapTable

        Code code = method.getCode();
        if (code == null) {
            return null;
        }
        StackMapTable stackMapTable = getStackMapTable(code);
        if (stackMapTable == null) {
            return null;
        }
        Map<Integer, List<Item>> jumpEntries = new HashMap<Integer, List<Item>>();

        Map<Integer, List<Item>> jumpStackEntries = new HashMap<Integer, List<Item>>();

        List<Item> locals = getInitialLocals(descriptor);
        List<Item> stack = new ArrayList<Item>();
        BitSet jumpEntryLocations = new BitSet();
        if (DEBUG) {
            System.out.println(descriptor);
            System.out.println(locals);
        }
        int pc = 0;
        for(StackMapTableEntry e : stackMapTable.getStackMapTable()) {
            pc += e.getByteCodeOffsetDelta();
            StackFrameType stackFrameType = StackFrameType.get(getFrameType(e));
            switch (stackFrameType) {
            case SAME_FRAME:
                stack.clear();
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.