Package org.jruby.ast.executable

Examples of org.jruby.ast.executable.ScriptAndCode.script()


                ClassReader reader = new ClassReader(scriptAndCode.bytecode());
                reader.accept(tracer, 0);
                return getNil();
            }

            return runScript(scriptAndCode.script());
        } else {
            // FIXME: temporarily allowing JIT to fail for $0 and fall back on interpreter
//            failForcedCompile(scriptNode);
           
            return runInterpreter(scriptNode);
View Full Code Here


            // script was not found in cache above, so proceed to compile
            Node scriptNode = parseFile(readStream, filename, null);
            if (script == null) {
                scriptAndCode = tryCompile(scriptNode, new JRubyClassLoader(jrubyClassLoader));
                if (scriptAndCode != null) script = scriptAndCode.script();
            }

            if (script == null) {
                failForcedCompile(scriptNode);
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.