diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-27 05:22:24 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-27 05:22:24 +0000 |
commit | ac58719ab322b04a96067d46cd30068e0f0c1a2b (patch) | |
tree | 23d352f83659eb2b12f2ae98cd2a2e9bba2d0c15 | |
parent | b5101cbb23b9ddb24565c5c5512aea2b82af422a (diff) |
vm_search_super_method() accepts `ec` instead of `th`.
* vm_insnhelper.c (vm_search_super_method): accepts `ec` instead of `th`.
Surprisingly, it doesn't use `th` (now `ec`) so this patch is for
the future extension.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | insns.def | 2 | ||||
-rw-r--r-- | vm_insnhelper.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -949,7 +949,7 @@ invokesuper vm_caller_setup_arg_block(th, reg_cfp, &calling, ci, blockiseq, TRUE); calling.recv = GET_SELF(); - vm_search_super_method(th, GET_CFP(), &calling, ci, cc); + vm_search_super_method(th->ec, GET_CFP(), &calling, ci, cc); CALL_METHOD(&calling, ci, cc); } diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 3821babe1b..e4f79c5985 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -2430,7 +2430,7 @@ vm_super_outside(void) } static void -vm_search_super_method(rb_thread_t *th, rb_control_frame_t *reg_cfp, +vm_search_super_method(const rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, struct rb_calling_info *calling, struct rb_call_info *ci, struct rb_call_cache *cc) { VALUE current_defined_class, klass; |