Skip to content
Permalink
Browse files
Unbreak -Xir.debug
  • Loading branch information
subbuss committed Dec 22, 2014
1 parent dcd9597 commit 2851935fb4a86d3b496ce0cceb7a44dbef59d869
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/src/main/java/org/jruby/ir/interpreter/Interpreter.java
@@ -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.