Skip to content

Commit

Permalink
Have bytecode generation use String name vs int value so if basic sig…
Browse files Browse the repository at this point in the history
…natures ever change we do not stuff varargs in the wrong place
  • Loading branch information
enebo committed Jan 19, 2017
1 parent dd801d7 commit a2f5752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/jruby/ir/targets/JVMVisitor.java
Expand Up @@ -291,14 +291,14 @@ protected static final Signature signatureFor(IRScope method, boolean aritySplit
args[i] = "arg" + i;
types[i] = IRubyObject.class;
}
return METHOD_SIGNATURE_BASE.insertArgs(3, args, types);
return METHOD_SIGNATURE_BASE.insertArgs(BLOCK_ARG_NAME, args, types);
}
// we can't do an specific-arity signature
return null;
}

// normal boxed arg list signature
return METHOD_SIGNATURE_BASE.insertArgs(3, new String[]{"args"}, IRubyObject[].class);
return METHOD_SIGNATURE_BASE.insertArgs(BLOCK_ARG_NAME, new String[]{"args"}, IRubyObject[].class);
}

protected void emitScriptBody(IRScriptBody script) {
Expand Down

0 comments on commit a2f5752

Please sign in to comment.