Skip to content

Commit

Permalink
Unbreak -Xir.debug
Browse files Browse the repository at this point in the history
  • Loading branch information
subbuss committed Dec 22, 2014
1 parent dcd9597 commit 2851935
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
Expand Up @@ -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.