forked from jruby/jruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused field no_args in InterpretedMethod. New n_args_* impls.…
… Change arity method calls in erbs to make generated code look slightly more human git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@9494 961051c9-f516-0410-bf72-c9f7e237a7b7
- Loading branch information
Showing
17 changed files
with
443 additions
and
444 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
public void prepare(ThreadContext context, Ruby runtime, IRubyObject self <%= n_args_in(arity) %>, Block block) { | ||
public void prepare(ThreadContext context, Ruby runtime, IRubyObject self<%= n_args_in(arity) %>, Block block) { | ||
DynamicScope scope = context.getCurrentScope(); | ||
|
||
if (isSimple) { | ||
scope.setArgValues(<%= n_args_out_bare(arity) %>); | ||
} else { | ||
prepare(context, runtime, self <%= n_args_ary(arity) %>, block); | ||
prepare(context, runtime, self<%= n_args_ary(arity) %>, block); | ||
} | ||
if (getBlock() != null) processBlockArg(scope, runtime, block); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
src/org/jruby/internal/runtime/methods/DefaultMethod.arities.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
@Override | ||
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name <%= n_args_in(arity) %>) { | ||
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name<%= n_args_in(arity) %>) { | ||
if (callCount >= 0) { | ||
return tryJitReturnMethod(context, name).call(context, self, clazz, name <%= n_args_out(arity) %>); | ||
return tryJitReturnMethod(context, name).call(context, self, clazz, name<%= n_args_out(arity) %>); | ||
} | ||
|
||
return actualMethod.call(context, self, clazz, name <%= n_args_out(arity) %>); | ||
} | ||
@Override | ||
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name <%= n_args_in(arity) %>, Block block) { | ||
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name<%= n_args_in(arity) %>, Block block) { | ||
if (callCount >= 0) { | ||
return tryJitReturnMethod(context, name).call(context, self, clazz, name <%= n_args_out(arity) %>, block); | ||
return tryJitReturnMethod(context, name).call(context, self, clazz, name<%= n_args_out(arity) %>, block); | ||
} | ||
|
||
return actualMethod.call(context, self, clazz, name <%= n_args_out(arity) %>, block); | ||
} | ||
return actualMethod.call(context, self, clazz, name<%= n_args_out(arity) %>, block); | ||
} |
Oops, something went wrong.