diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-17 06:15:16 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-17 06:15:16 +0000 |
| commit | 12f48e519467ef02fa108418f134042f2543d133 (patch) | |
| tree | 932ffe55343ae9a8758bd64e57264ab07e17054c /vm_eval.c | |
| parent | 3da01db65e908388c977389bb22ffe13be45e470 (diff) | |
merges r20744 from trunk into ruby_1_9_1.
* vm_eval.c (vm_call0): NODE_ZSUPER supported. [ruby-core:20480]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
| -rw-r--r-- | vm_eval.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -35,6 +35,7 @@ vm_call0(rb_thread_t * th, VALUE klass, VALUE recv, VALUE id, ID oid, blockptr = th->passed_block; th->passed_block = 0; } + again: switch (nd_type(body)) { case RUBY_VM_METHOD_NODE:{ rb_control_frame_t *reg_cfp; @@ -99,6 +100,16 @@ vm_call0(rb_thread_t * th, VALUE klass, VALUE recv, VALUE id, ID oid, recv, klass, argc, (VALUE *)argv, blockptr); break; } + case NODE_ZSUPER:{ + klass = RCLASS_SUPER(klass); + if (!klass || !(body = rb_method_node(klass, id))) { + return method_missing(recv, id, argc, argv, 0); + } + RUBY_VM_CHECK_INTS(); + nosuper = CALL_SUPER; + body = body->nd_body; + goto again; + } default: rb_bug("unsupported: vm_call0(%s)", ruby_node_name(nd_type(body))); } |
