private void emitWithSignatures(IRMethod method, String name) {
method.setJittedName(name);
Signature signature = signatureFor(method, false);
emitScope(method, name, signature, false);
method.addNativeSignature(-1, signature.type());
Signature specificSig = signatureFor(method, true);
if (specificSig != null) {
emitScope(method, name, specificSig, true);
method.addNativeSignature(method.getStaticScope().getRequiredArgs(), specificSig.type());