Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/java/org/jruby/ir/interpreter/Interpreter.java
Original file line number Diff line number Diff line change
@@ -716,11 +716,13 @@ private static BeginEndInterpreterContext prepareIC(ThreadContext context, Dynam
RootNode rootNode = (RootNode) runtime.parseEval(src.convertToString().getByteList(), file, evalScope, lineNumber);
IREvalScript evalScript = IRBuilder.createIRBuilder(runtime, runtime.getIRManager()).buildEvalRoot(evalScope.getStaticScope(), containingIRScope, file, lineNumber, rootNode, evalType);

BeginEndInterpreterContext ic = (BeginEndInterpreterContext) evalScript.prepareForInterpretation();

if (IRRuntimeHelpers.isDebug()) {
LOG.info("Graph:\n" + evalScript.cfg().toStringGraph());
LOG.info("CFG:\n" + evalScript.cfg().toStringInstrs());
}

return (BeginEndInterpreterContext) evalScript.prepareForInterpretation();
return ic;
}
}

0 comments on commit 2851935

Please sign in to comment.