diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-14 01:23:58 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-14 01:23:58 +0000 |
commit | c5f8d9c981101e4f92da8dcc459a8b551587fc94 (patch) | |
tree | 56d5d30b9164b87578ae2959276573b0ebd67cd5 | |
parent | f0208a8995473228b72e660e2b88e2489c4f4beb (diff) | |
download | ruby-c5f8d9c981101e4f92da8dcc459a8b551587fc94.tar.gz |
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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | vm_eval.c | 2 |
2 files changed, 5 insertions, 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> * 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(); |