ruby-changes:48447
From: ko1 <ko1@a...>
Date: Mon, 30 Oct 2017 00:31:50 +0900 (JST)
Subject: [ruby-changes:48447] ko1:r60561 (trunk): * vm_eval.c (current_vm_stack_arg): accepts `ec`.
ko1 2017-10-30 00:31:47 +0900 (Mon, 30 Oct 2017) New Revision: 60561 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60561 Log: * vm_eval.c (current_vm_stack_arg): accepts `ec`. Modified files: trunk/vm_eval.c Index: vm_eval.c =================================================================== --- vm_eval.c (revision 60560) +++ vm_eval.c (revision 60561) @@ -850,10 +850,10 @@ rb_funcall_with_block(VALUE recv, ID mid https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L850 } static VALUE * -current_vm_stack_arg(rb_thread_t *th, const VALUE *argv) +current_vm_stack_arg(const rb_execution_context_t *ec, const VALUE *argv) { - rb_control_frame_t *prev_cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(th->ec->cfp); - if (RUBY_VM_CONTROL_FRAME_STACK_OVERFLOW_P(th->ec, prev_cfp)) return NULL; + rb_control_frame_t *prev_cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(ec->cfp); + if (RUBY_VM_CONTROL_FRAME_STACK_OVERFLOW_P(ec, prev_cfp)) return NULL; if (prev_cfp->sp + 1 != argv) return NULL; return prev_cfp->sp + 1; } @@ -889,7 +889,7 @@ send_internal(int argc, const VALUE *arg https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L889 rb_exc_raise(exc); } if (!SYMBOL_P(*argv)) { - VALUE *tmp_argv = current_vm_stack_arg(rb_ec_thread_ptr(ec), argv); + VALUE *tmp_argv = current_vm_stack_arg(ec, argv); vid = rb_str_intern(vid); if (tmp_argv) { tmp_argv[0] = vid; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/