Permalink
Browse files

[IR] Minor code cleanup

  • Loading branch information...
1 parent a3763d8 commit aa7c700ad321176c43166c035b4f688ac3d38d3d @subbuss subbuss committed May 17, 2012
Showing with 8 additions and 10 deletions.
  1. +8 −10 src/org/jruby/internal/runtime/methods/InterpretedIRMethod.java
@@ -67,16 +67,14 @@ public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule claz
// FIXME: name should probably not be "" ever.
String realName = name == null || "".equals(name) ? method.getName() : name;
LOG.info("Executing '" + realName + "'");
- }
-
- // The base IR may not have been processed yet
- if (method.getInstrsForInterpretation() == null) method.prepareForInterpretation();
-
- if (Interpreter.isDebug() && displayedCFG == false) {
- CFG cfg = method.getCFG();
- LOG.info("Graph:\n" + cfg.toStringGraph());
- LOG.info("CFG:\n" + cfg.toStringInstrs());
- displayedCFG = true;
+ if (displayedCFG == false) {
+ // The base IR may not have been processed yet
+ if (method.getInstrsForInterpretation() == null) method.prepareForInterpretation();
+ CFG cfg = method.getCFG();
+ LOG.info("Graph:\n" + cfg.toStringGraph());
+ LOG.info("CFG:\n" + cfg.toStringInstrs());
+ displayedCFG = true;
+ }
}
boolean hasExplicitCallProtocol = method.hasExplicitCallProtocol();

0 comments on commit aa7c700

Please sign in to comment.