ruby-changes:48434
From: ko1 <ko1@a...>
Date: Sun, 29 Oct 2017 23:38:29 +0900 (JST)
Subject: [ruby-changes:48434] ko1:r60548 (trunk): `th` -> `ec` for vm_call_super().
ko1 2017-10-29 23:38:25 +0900 (Sun, 29 Oct 2017) New Revision: 60548 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60548 Log: `th` -> `ec` for vm_call_super(). * vm_eval.c (vm_call_super): accepts `ec` instead of `th`. Modified files: trunk/vm_eval.c Index: vm_eval.c =================================================================== --- vm_eval.c (revision 60547) +++ vm_eval.c (revision 60548) @@ -208,12 +208,12 @@ rb_vm_call(rb_execution_context_t *ec, V https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L208 } static inline VALUE -vm_call_super(rb_thread_t *th, int argc, const VALUE *argv) +vm_call_super(rb_execution_context_t *ec, int argc, const VALUE *argv) { - VALUE recv = th->ec->cfp->self; + VALUE recv = ec->cfp->self; VALUE klass; ID id; - rb_control_frame_t *cfp = th->ec->cfp; + rb_control_frame_t *cfp = ec->cfp; const rb_callable_method_entry_t *me = rb_vm_frame_method_entry(cfp); if (VM_FRAME_RUBYFRAME_P(cfp)) { @@ -229,16 +229,16 @@ vm_call_super(rb_thread_t *th, int argc, https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L229 return method_missing(recv, id, argc, argv, MISSING_SUPER); } else { - return vm_call0(th->ec, recv, id, argc, argv, me); + return vm_call0(ec, recv, id, argc, argv, me); } } VALUE rb_call_super(int argc, const VALUE *argv) { - rb_thread_t *th = GET_THREAD(); - PASS_PASSED_BLOCK_HANDLER_EC(th->ec); - return vm_call_super(th, argc, argv); + rb_execution_context_t *ec = GET_EC(); + PASS_PASSED_BLOCK_HANDLER_EC(ec); + return vm_call_super(ec, argc, argv); } VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/