private Script tryCompile(Node node, String cachedClassName, JRubyClassLoader classLoader, boolean dump) { if (config.getCompileMode() == CompileMode.FORCEIR) { final IRScope scope = IRBuilder.createIRBuilder(this, getIRManager()).buildRoot((RootNode) node); final Class compiled = JVMVisitor.compile(this, scope, classLoader); final StaticScope staticScope = scope.getStaticScope(); staticScope.setModule(getTopSelf().getMetaClass());
private Script tryCompile(Node node, String cachedClassName, JRubyClassLoader classLoader, boolean dump) { if (config.getCompileMode() == CompileMode.FORCEIR) { final IRScope scope = IRBuilder.createIRBuilder(this, getIRManager()).buildRoot((RootNode) node); final Class compiled = JVMVisitor.compile(this, scope, classLoader); final StaticScope staticScope = scope.getStaticScope(); staticScope.setModule(getTopSelf().getMetaClass());