From c5f8d9c981101e4f92da8dcc459a8b551587fc94 Mon Sep 17 00:00:00 2001 From: normal Date: Fri, 14 Nov 2014 01:23:58 +0000 Subject: [PATCH] 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 --- ChangeLog | 4 ++++ vm_eval.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bd20f50970..3c1045f0ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Nov 14 10:23:35 2014 Eric Wong + + * vm_eval.c (rb_eval_cmd): use pre-defined idCall + Fri Nov 14 09:25:44 2014 Eric Wong * vm_eval.c (rb_yield_splat): add missing GC guard diff --git a/vm_eval.c b/vm_eval.c index ee984c7402..ded7f75eb5 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -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();