diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-06 04:48:11 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-06 04:48:11 +0000 |
commit | ad4213d6feaa3f8c79b4c3de6753b11ae2d46a84 (patch) | |
tree | 018871defd2476abc09fe3008fa1f523b6fed384 /insns.def | |
parent | 52296cdee134593ec3a18c3420c7c6b7251c24f9 (diff) | |
download | ruby-ad4213d6feaa3f8c79b4c3de6753b11ae2d46a84.tar.gz |
* insns.def (send) : fix to optimize send() with Symbol.
* yarvtest/test_method.rb : add another test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r-- | insns.def | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1180,7 +1180,8 @@ send if (node->nd_cfnc == rb_f_funcall || node->nd_cfnc == rb_f_send) {
int i;
- id = rb_to_id(TOPN(num - 1));
+ VALUE sym = TOPN(num - 1);
+ id = SYMBOL_P(sym) ? SYM2ID(sym) : rb_to_id(sym);
/* shift arguments */
for (i=1; i<num; i++) {
|