ruby-changes:48357
From: ko1 <ko1@a...>
Date: Fri, 27 Oct 2017 14:22:30 +0900 (JST)
Subject: [ruby-changes:48357] ko1:r60471 (trunk): vm_search_super_method() accepts `ec` instead of `th`.
ko1 2017-10-27 14:22:24 +0900 (Fri, 27 Oct 2017) New Revision: 60471 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60471 Log: 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. Modified files: trunk/insns.def trunk/vm_insnhelper.c Index: insns.def =================================================================== --- insns.def (revision 60470) +++ insns.def (revision 60471) @@ -949,7 +949,7 @@ invokesuper https://github.com/ruby/ruby/blob/trunk/insns.def#L949 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); } Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 60470) +++ vm_insnhelper.c (revision 60471) @@ -2430,7 +2430,7 @@ vm_super_outside(void) https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L2430 } 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/