зеркало из https://github.com/github/ruby.git
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:
Родитель
f0208a8995
Коммит
c5f8d9c981
|
@ -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>
|
||||
|
||||
* 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();
|
||||
rb_set_safe_level_force(level);
|
||||
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));
|
||||
}
|
||||
POP_TAG();
|
||||
|
|
Загрузка…
Ссылка в новой задаче