diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-27 00:46:11 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-27 00:46:11 +0000 |
commit | cd17636e06a23fc431016ea3d3a9143d08beab78 (patch) | |
tree | a1805f08629c85ee7d27c05b525f871ae8520d0f /vm_insnhelper.c | |
parent | 30d69ec785a3b31875fb5e9cce91a82b042eefd3 (diff) | |
download | ruby-cd17636e06a23fc431016ea3d3a9143d08beab78.tar.gz |
vm_get_ruby_level_caller_cfp() accepts `ec` instead of `th`.
* vm.c (vm_get_ruby_level_caller_cfp): accepts `ec` instead of `th`.
* vm.c (vm_collect_local_variables_in_heap): don't need `th` anymore.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 69a3bdbcb5..a982160968 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -20,7 +20,7 @@ /* control stack frame */ -static rb_control_frame_t *vm_get_ruby_level_caller_cfp(const rb_thread_t *th, const rb_control_frame_t *cfp); +static rb_control_frame_t *vm_get_ruby_level_caller_cfp(const rb_execution_context_t *ec, const rb_control_frame_t *cfp); VALUE ruby_vm_special_exception_copy(VALUE exc) @@ -742,7 +742,7 @@ vm_cref_push(rb_thread_t *th, VALUE klass, const VALUE *ep, int pushed_by_eval) prev_cref = vm_env_cref(ep); } else { - rb_control_frame_t *cfp = vm_get_ruby_level_caller_cfp(th, th->ec->cfp); + rb_control_frame_t *cfp = vm_get_ruby_level_caller_cfp(th->ec, th->ec->cfp); if (cfp) { prev_cref = vm_env_cref(cfp->ep); |