Java 类com.sun.org.apache.bcel.internal.generic.TargetLostException 实例源码

项目:OpenJSharp    文件:Stylesheet.java   
/**
 * Peephole optimization: Remove sequences of [ALOAD, POP].
 */
private void peepHoleOptimization(MethodGenerator methodGen) {
    final String pattern = "`aload'`pop'`instruction'";
    final InstructionList il = methodGen.getInstructionList();
    final InstructionFinder find = new InstructionFinder(il);
    for(Iterator iter=find.search(pattern); iter.hasNext(); ) {
        InstructionHandle[] match = (InstructionHandle[])iter.next();
        try {
            il.delete(match[0], match[1]);
        }
        catch (TargetLostException e) {
            // TODO: move target down into the list
        }
    }
}
项目:openjdk-jdk10    文件:Stylesheet.java   
/**
 * Peephole optimization: Remove sequences of [ALOAD, POP].
 */
private void peepHoleOptimization(MethodGenerator methodGen) {
    final String pattern = "`aload'`pop'`instruction'";
    final InstructionList il = methodGen.getInstructionList();
    final InstructionFinder find = new InstructionFinder(il);
    for(Iterator iter=find.search(pattern); iter.hasNext(); ) {
        InstructionHandle[] match = (InstructionHandle[])iter.next();
        try {
            il.delete(match[0], match[1]);
        }
        catch (TargetLostException e) {
            // TODO: move target down into the list
        }
    }
}
项目:openjdk9    文件:Stylesheet.java   
/**
 * Peephole optimization: Remove sequences of [ALOAD, POP].
 */
private void peepHoleOptimization(MethodGenerator methodGen) {
    final String pattern = "`aload'`pop'`instruction'";
    final InstructionList il = methodGen.getInstructionList();
    final InstructionFinder find = new InstructionFinder(il);
    for(Iterator iter=find.search(pattern); iter.hasNext(); ) {
        InstructionHandle[] match = (InstructionHandle[])iter.next();
        try {
            il.delete(match[0], match[1]);
        }
        catch (TargetLostException e) {
            // TODO: move target down into the list
        }
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:Stylesheet.java   
/**
 * Peephole optimization: Remove sequences of [ALOAD, POP].
 */
private void peepHoleOptimization(MethodGenerator methodGen) {
    final String pattern = "`aload'`pop'`instruction'";
    final InstructionList il = methodGen.getInstructionList();
    final InstructionFinder find = new InstructionFinder(il);
    for(Iterator iter=find.search(pattern); iter.hasNext(); ) {
        InstructionHandle[] match = (InstructionHandle[])iter.next();
        try {
            il.delete(match[0], match[1]);
        }
        catch (TargetLostException e) {
            // TODO: move target down into the list
        }
    }
}
项目:infobip-open-jdk-8    文件:Stylesheet.java   
/**
 * Peephole optimization: Remove sequences of [ALOAD, POP].
 */
private void peepHoleOptimization(MethodGenerator methodGen) {
    final String pattern = "`aload'`pop'`instruction'";
    final InstructionList il = methodGen.getInstructionList();
    final InstructionFinder find = new InstructionFinder(il);
    for(Iterator iter=find.search(pattern); iter.hasNext(); ) {
        InstructionHandle[] match = (InstructionHandle[])iter.next();
        try {
            il.delete(match[0], match[1]);
        }
        catch (TargetLostException e) {
            // TODO: move target down into the list
        }
    }
}
项目:OLD-OpenJDK8    文件:Stylesheet.java   
/**
 * Peephole optimization: Remove sequences of [ALOAD, POP].
 */
private void peepHoleOptimization(MethodGenerator methodGen) {
    final String pattern = "`aload'`pop'`instruction'";
    final InstructionList il = methodGen.getInstructionList();
    final InstructionFinder find = new InstructionFinder(il);
    for(Iterator iter=find.search(pattern); iter.hasNext(); ) {
        InstructionHandle[] match = (InstructionHandle[])iter.next();
        try {
            il.delete(match[0], match[1]);
        }
        catch (TargetLostException e) {
            // TODO: move target down into the list
        }
    }
}
项目:openjdk-icedtea7    文件:Stylesheet.java   
/**
 * Peephole optimization: Remove sequences of [ALOAD, POP].
 */
private void peepHoleOptimization(MethodGenerator methodGen) {
    final String pattern = "`aload'`pop'`instruction'";
    final InstructionList il = methodGen.getInstructionList();
    final InstructionFinder find = new InstructionFinder(il);
    for(Iterator iter=find.search(pattern); iter.hasNext(); ) {
        InstructionHandle[] match = (InstructionHandle[])iter.next();
        try {
            il.delete(match[0], match[1]);
        }
        catch (TargetLostException e) {
            // TODO: move target down into the list
        }
    }
}