diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-01 04:35:58 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-01 04:35:58 +0000 |
commit | 75d28f887089c8582b63a64cf5df1d0270f15cc1 (patch) | |
tree | 1a274ad80a96f2546c0aba4701fd0c0e78857b5b /insns.def | |
parent | ea2cb282aeba0457aa775d5dbfa1da6810fafa45 (diff) | |
download | ruby-75d28f887089c8582b63a64cf5df1d0270f15cc1.tar.gz |
* yarvcore.h, compile.c (set_arguments): support post arguments.
* test/ruby/test_method.rb: add tests for above.
* test/ruby/test_proc.rb: ditto.
* proc.c: fix an arity bug ([ruby-core:11029]).
* vm.c, vm.h, insns.def, vm_dump.h: fix bmethod process.
* vm.c: support block argument on block parameter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r-- | insns.def | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1251,9 +1251,8 @@ send } } - /* dirty hack */ - id = (ID) ((VALUE *)(lcfp+1)->block_iseq)[0]; - klass = ((VALUE *)(lcfp+1)->block_iseq)[1]; + id = lcfp->method_id; + klass = search_super_klass(lcfp->method_klass, recv); if (TOPN(num) == Qfalse) { /* for ZSUPER */ @@ -1265,7 +1264,10 @@ send } } } + else { klass = search_super_klass(ip->klass, recv); + } + flag = VM_CALL_SUPER_BIT | VM_CALL_FCALL_BIT; blockptr = tmp_blockptr; mn = rb_method_node(klass, id); |