Skip to content

Commit

Permalink
Minor tweaks for jit output, reducing useless code.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Apr 5, 2015
1 parent 815427a commit 71633ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/main/java/org/jruby/ir/targets/JVMVisitor.java
Expand Up @@ -173,7 +173,7 @@ public void emitScope(IRScope scope, String name, Signature signature, boolean s
}

// ensure there's at least one instr per block
m.adapter.nop();
if (bb.getInstrs().size() == 0) m.adapter.nop();

// visit remaining instrs
for (Instr instr : bb.getInstrs()) {
Expand Down Expand Up @@ -1566,8 +1566,7 @@ public void ReceiveRestArgInstr(ReceiveRestArgInstr instr) {

@Override
public void ReceiveSelfInstr(ReceiveSelfInstr receiveselfinstr) {
jvmMethod().loadSelf();
jvmStoreLocal(receiveselfinstr.getResult());
// noop...self is passed in
}

@Override
Expand Down

0 comments on commit 71633ac

Please sign in to comment.