From bcdb02c8f46db3266d985eef906e8cdaa2bf31e7 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 29 Oct 2017 14:38:25 +0000 Subject: [PATCH] `th` -> `ec` for vm_call_super(). * vm_eval.c (vm_call_super): accepts `ec` instead of `th`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/vm_eval.c b/vm_eval.c index 121a3ca083..4ab9238ed1 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -208,12 +208,12 @@ rb_vm_call(rb_execution_context_t *ec, VALUE recv, VALUE id, int argc, const VAL } 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, const VALUE *argv) 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