/** * Performs the subroutine inlining step. */ private void inlineSubroutines() { if (configuration.verbose) { System.out.println("Inlining subroutines..."); } // Perform the actual inlining. new SubroutineInliner(configuration).execute(programClassPool); }
/** * Performs the preverification step. */ private void preverify() { if (configuration.verbose) { System.out.println("Preverifying..."); } // Perform the actual preverification. new Preverifier(configuration).execute(programClassPool); }
public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) { // TODO: Remove this when the preverifier has stabilized. // Catch any unexpected exceptions from the actual visiting method. try { // Process the code. visitCodeAttribute0(clazz, method, codeAttribute); } catch (RuntimeException ex) { System.err.println("Unexpected error while preverifying:"); System.err.println(" Class = ["+clazz.getName()+"]"); System.err.println(" Method = ["+method.getName(clazz)+method.getDescriptor(clazz)+"]"); System.err.println(" Exception = ["+ex.getClass().getName()+"] ("+ex.getMessage()+")"); throw ex; } }
correspondingVerificationType(programClass, programMethod, codeAttribute,
inlineSubroutine(clazz, method, codeAttribute,
/** * Performs preverification of the given program class pool. */ public void execute(ClassPool programClassPool) { // Clean up any old visitor info. programClassPool.classesAccept(new ClassCleaner()); // Preverify all methods. // Classes for JME must be preverified. // Classes for JSE 6 may optionally be preverified. // Classes for JSE 7 or higher must be preverified. programClassPool.classesAccept( new ClassVersionFilter(configuration.microEdition ? ClassConstants.CLASS_VERSION_1_0 : ClassConstants.CLASS_VERSION_1_6, new AllMethodVisitor( new AllAttributeVisitor( new CodePreverifier(configuration.microEdition))))); } }
/** * Performs the subroutine inlining step. */ private void inlineSubroutines() { if (configuration.verbose) { System.out.println("Inlining subroutines..."); } // Perform the actual inlining. new SubroutineInliner(configuration).execute(programClassPool); }
/** * Performs the preverification step. */ private void preverify() { if (configuration.verbose) { System.out.println("Preverifying..."); } // Perform the actual preverification. new Preverifier(configuration).execute(programClassPool); }
correspondingVerificationType(programClass, programMethod, codeAttribute,
inlineSubroutine(clazz, method, codeAttribute,
/** * Performs preverification of the given program class pool. */ public void execute(ClassPool programClassPool) { // Clean up any old visitor info. programClassPool.classesAccept(new ClassCleaner()); // Preverify all methods. // Classes for JME must be preverified. // Classes for JSE 6 may optionally be preverified. // Classes for JSE 7 or higher must be preverified. programClassPool.classesAccept( new ClassVersionFilter(configuration.microEdition ? ClassConstants.CLASS_VERSION_1_0 : ClassConstants.CLASS_VERSION_1_6, new AllMethodVisitor( new AllAttributeVisitor( new CodePreverifier(configuration.microEdition))))); } }
/** * Performs the subroutine inlining step. */ private void inlineSubroutines() { if (configuration.verbose) { System.out.println("Inlining subroutines..."); } // Perform the actual inlining. new SubroutineInliner(configuration).execute(programClassPool); }
/** * Performs the preverification step. */ private void preverify() { if (configuration.verbose) { System.out.println("Preverifying..."); } // Perform the actual preverification. new Preverifier(configuration).execute(programClassPool); }
correspondingVerificationType(programClass, programMethod, codeAttribute,
inlineSubroutine(clazz, method, codeAttribute,
/** * Performs preverification of the given program class pool. */ public void execute(ClassPool programClassPool) { // Clean up any old visitor info. programClassPool.classesAccept(new ClassCleaner()); // Preverify all methods. // Classes for JME must be preverified. // Classes for JSE 6 may optionally be preverified. // Classes for JSE 7 or higher must be preverified. programClassPool.classesAccept( new ClassVersionFilter(configuration.microEdition ? ClassConstants.CLASS_VERSION_1_0 : ClassConstants.CLASS_VERSION_1_6, new AllMethodVisitor( new AllAttributeVisitor( new CodePreverifier(configuration.microEdition))))); } }
/** * Performs the subroutine inlining step. */ private void inlineSubroutines() { if (configuration.verbose) { System.out.println("Inlining subroutines..."); } // Perform the actual inlining. new SubroutineInliner(configuration).execute(programClassPool); }
/** * Performs the preverification step. */ private void preverify() { if (configuration.verbose) { System.out.println("Preverifying..."); } // Perform the actual preverification. new Preverifier(configuration).execute(programClassPool); }
correspondingVerificationType(programClass, programMethod, codeAttribute,
inlineSubroutine(clazz, method, codeAttribute,