From ac58719ab322b04a96067d46cd30068e0f0c1a2b Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 27 Oct 2017 05:22:24 +0000 Subject: [PATCH] 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 --- insns.def | 2 +- vm_insnhelper.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/insns.def b/insns.def index 7f90e2ff60..df30e55d6e 100644 --- a/insns.def +++ b/insns.def @@ -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;