Package org.aspectj.apache.bcel.generic

Examples of org.aspectj.apache.bcel.generic.IndexedInstruction


        }
      } else if (fresh instanceof BranchInstruction) {
        dest = ret.append((BranchInstruction) fresh);
      } else if (
        fresh instanceof LocalVariableInstruction || fresh instanceof RET) {
        IndexedInstruction indexed = (IndexedInstruction) fresh;
        int oldIndex = indexed.getIndex();
        int freshIndex;
        if (!frameEnv.hasKey(oldIndex)) {
          freshIndex = recipient.allocateLocal(2);
          frameEnv.put(oldIndex, freshIndex);
        } else {
          freshIndex = frameEnv.get(oldIndex);
        }
        indexed.setIndex(freshIndex);
        dest = ret.append(fresh);
      } else {
        dest = ret.append(fresh);
      }
      srcToDest.put(src, dest);
View Full Code Here


      // frame location, update the instruction's index.  If this doesn't,
      // do compaction/expansion: allocate a new local variable, and modify the remap
      // to handle it.  XXX We're doing the safe thing and allocating ALL these local variables
      // as double-wides, in case the location is found to hold a double-wide later.
            if (freshI instanceof LocalVariableInstruction || freshI instanceof RET) {
              IndexedInstruction indexedI = (IndexedInstruction) freshI;
                int oldIndex = indexedI.getIndex();
              int freshIndex;
                if (! remap.hasKey(oldIndex)) {
                    freshIndex = freshMethod.allocateLocal(2);
                    remap.put(oldIndex, freshIndex);
                } else {
                    freshIndex = remap.get(oldIndex);
                }
                indexedI.setIndex(freshIndex);
            }
//            System.err.println("JUST COPIED: " + oldIh.getInstruction().toString(freshMethod.getEnclosingClass().getConstantPoolGen().getConstantPool())
//              + " INTO " + freshIh.getInstruction().toString(freshMethod.getEnclosingClass().getConstantPoolGen().getConstantPool()));
        }
       
View Full Code Here

TOP

Related Classes of org.aspectj.apache.bcel.generic.IndexedInstruction

Copyright © 2018 www.massapicom. 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.