Skip to content

Commit

Permalink
newRange was directly used by bytecode generation layer
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Nov 5, 2014
1 parent 502e659 commit e90ae70
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/main/java/org/jruby/ir/targets/JVMVisitor.java
Expand Up @@ -769,12 +769,11 @@ public void run() {

@Override
public void BuildRangeInstr(BuildRangeInstr instr) {
jvmMethod().loadRuntime();
jvmMethod().loadContext();
visit(instr.getBegin());
visit(instr.getEnd());
jvmAdapter().ldc(instr.isExclusive());
jvmAdapter().invokestatic(p(RubyRange.class), "newRange", sig(RubyRange.class, Ruby.class, ThreadContext.class, IRubyObject.class, IRubyObject.class, boolean.class));
jvmAdapter().invokestatic(p(RubyRange.class), "newRange", sig(RubyRange.class, ThreadContext.class, IRubyObject.class, IRubyObject.class, boolean.class));
jvmStoreLocal(instr.getResult());
}

Expand Down

0 comments on commit e90ae70

Please sign in to comment.