diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-28 12:23:51 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-28 12:23:51 +0000 |
commit | 7fa4beba91d37a91dbacb5faa5e12202202ba2d8 (patch) | |
tree | 357ed32aaf753d1188a35d3d25c55b0e074986df /vm.c | |
parent | ed21061f21392b45a101d2ab6b859d7a08899c8c (diff) | |
download | ruby-7fa4beba91d37a91dbacb5faa5e12202202ba2d8.tar.gz |
`th` -> `ec` for method management functions.
* vm_eval.c: `th` -> `ec` for the following functions:
* check_funcall_respond_to
* check_funcall_callable
* check_funcall_missing
* rb_method_call_status
* vm_method.c: ditto.
* call_method_entry
* basic_obj_respond_to_missing
* basic_obj_respond_to
* vm_respond_to
* vm_eval.c (stack_check): accepts `ec` instead of `th`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1013,7 +1013,6 @@ invoke_iseq_block_from_c(rb_execution_context_t *ec, const struct rb_captured_bl VALUE self, int argc, const VALUE *argv, VALUE passed_block_handler, const rb_cref_t *cref, int is_lambda) { - rb_thread_t *th = rb_ec_thread_ptr(ec); const rb_iseq_t *iseq = rb_iseq_check(captured->code.iseq); int i, opt_pc; VALUE type = VM_FRAME_MAGIC_BLOCK | (is_lambda ? VM_FRAME_FLAG_LAMBDA : 0); @@ -1021,7 +1020,7 @@ invoke_iseq_block_from_c(rb_execution_context_t *ec, const struct rb_captured_bl VALUE *sp = cfp->sp; const rb_callable_method_entry_t *me = ec->passed_bmethod_me; ec->passed_bmethod_me = NULL; - stack_check(th); + stack_check(ec); CHECK_VM_STACK_OVERFLOW(cfp, argc); cfp->sp = sp + argc; |