mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vm_eval.c (rb_eval_cmd): use pre-defined idCall
No need to use rb_intern, here. Reduces size slightly on x86-64: $ ~/linux/scripts/bloat-o-meter ruby.before ruby.after add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-31 (-31) function old new delta rb_eval_cmd 813 782 -31 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f0208a8995
commit
c5f8d9c981
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Fri Nov 14 10:23:35 2014 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
|
* vm_eval.c (rb_eval_cmd): use pre-defined idCall
|
||||||
|
|
||||||
Fri Nov 14 09:25:44 2014 Eric Wong <e@80x24.org>
|
Fri Nov 14 09:25:44 2014 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
* vm_eval.c (rb_yield_splat): add missing GC guard
|
* vm_eval.c (rb_yield_splat): add missing GC guard
|
||||||
|
|
|
@ -1481,7 +1481,7 @@ rb_eval_cmd(VALUE cmd, VALUE arg, int level)
|
||||||
PUSH_TAG();
|
PUSH_TAG();
|
||||||
rb_set_safe_level_force(level);
|
rb_set_safe_level_force(level);
|
||||||
if ((state = EXEC_TAG()) == 0) {
|
if ((state = EXEC_TAG()) == 0) {
|
||||||
val = rb_funcall2(cmd, rb_intern("call"), RARRAY_LENINT(arg),
|
val = rb_funcall2(cmd, idCall, RARRAY_LENINT(arg),
|
||||||
RARRAY_CONST_PTR(arg));
|
RARRAY_CONST_PTR(arg));
|
||||||
}
|
}
|
||||||
POP_TAG();
|
POP_TAG();
|
||||||
|
|
Loading…
Reference in a new issue