Package org.jruby.ir.persistence

Examples of org.jruby.ir.persistence.IRReaderFile


        if (!RubyInstanceConfig.IR_READING) return parseFileAndGetAST(in, file, scope, lineNumber, false);

        try {
            // Get IR from .ir file
            return IRReader.load(getIRManager(), new IRReaderFile(getIRManager(), IRFileExpert.getIRPersistedFile(file)));
        } catch (IOException e) {
            // FIXME: What is something actually throws IOException
            return parseFileAndGetAST(in, file, scope, lineNumber, false);
        }
    }
View Full Code Here


        addLoadParseToStats();

        if (!RubyInstanceConfig.IR_READING) return parseFileFromMainAndGetAST(in, file, scope);
       
        try {
            return IRReader.load(getIRManager(), new IRReaderFile(getIRManager(), IRFileExpert.getIRPersistedFile(file)));
        } catch (IOException e) {
            System.out.println(e);
            e.printStackTrace();
            return parseFileFromMainAndGetAST(in, file, scope);
        }
View Full Code Here

TOP

Related Classes of org.jruby.ir.persistence.IRReaderFile

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.