From 5c582807731b675012647e0f7d9ad8bae937053b Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 3 Dec 2012 11:33:09 +0000 Subject: [PATCH] * compile.c (iseq_specialized_instruction): change condition of using `opt_send_simple'. More method invocations can be simple. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ compile.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 223e82b5a4..8717875538 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Dec 3 20:28:02 2012 Koichi Sasada + + * compile.c (iseq_specialized_instruction): + change condition of using `opt_send_simple'. + More method invocations can be simple. + Mon Dec 3 20:03:38 2012 Koichi Sasada * test/ruby/test_objectspace.rb: skip RuntimeError diff --git a/compile.c b/compile.c index 5412beef7a..5d219af65e 100644 --- a/compile.c +++ b/compile.c @@ -1940,6 +1940,8 @@ iseq_specialized_instruction(rb_iseq_t *iseq, INSN *iobj) } break; } + } + if (ci->flag & VM_CALL_ARGS_SKIP_SETUP) { iobj->insn_id = BIN(opt_send_simple); } }