aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-26 10:55:24 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-26 10:55:24 +0000
commit254962d256bbb1893e8463c4af3291221bcc484b (patch)
tree8fc08f2bc61f9b4ac4997e390c4cac1e3be86775 /vm_insnhelper.c
parentc2eee0aab3ab0961031fa23dbac24c5966421b5c (diff)
downloadruby-254962d256bbb1893e8463c4af3291221bcc484b.tar.gz
vm_pop_frame() accepts `ec` instead of `th`.
* vm_insnhelper.c (vm_pop_frame): accepts `ec` instead of `th`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index b19047fd22..f3f6d74606 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -271,22 +271,22 @@ rb_vm_push_frame(rb_execution_context_t *ec,
/* return TRUE if the frame is finished */
static inline int
-vm_pop_frame(rb_thread_t *th, rb_control_frame_t *cfp, const VALUE *ep)
+vm_pop_frame(rb_execution_context_t *ec, rb_control_frame_t *cfp, const VALUE *ep)
{
VALUE flags = ep[VM_ENV_DATA_INDEX_FLAGS];
if (VM_CHECK_MODE >= 4) rb_gc_verify_internal_consistency();
if (VMDEBUG == 2) SDR();
- th->ec->cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(cfp);
+ ec->cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(cfp);
return flags & VM_FRAME_FLAG_FINISH;
}
void
-rb_vm_pop_frame(rb_thread_t *th)
+rb_vm_pop_frame(rb_execution_context_t *ec)
{
- vm_pop_frame(th, th->ec->cfp, th->ec->cfp->ep);
+ vm_pop_frame(ec, ec->cfp, ec->cfp->ep);
}
/* method dispatch */
@@ -1691,7 +1691,7 @@ vm_call_iseq_setup_tailcall(rb_thread_t *th, rb_control_frame_t *cfp, struct rb_
}
}
- vm_pop_frame(th, cfp, cfp->ep);
+ vm_pop_frame(th->ec, cfp, cfp->ep);
cfp = th->ec->cfp;
sp_orig = sp = cfp->sp;
@@ -1925,7 +1925,7 @@ vm_call_cfunc_with_frame(rb_thread_t *th, rb_control_frame_t *reg_cfp, struct rb
CHECK_CFP_CONSISTENCY("vm_call_cfunc");
- rb_vm_pop_frame(th);
+ rb_vm_pop_frame(th->ec);
EXEC_EVENT_HOOK(th, RUBY_EVENT_C_RETURN, recv, me->def->original_id, ci->mid, me->owner, val);
RUBY_DTRACE_CMETHOD_RETURN_HOOK(th, me->owner, me->def->original_id);
@@ -2551,7 +2551,7 @@ vm_yield_with_cfunc(rb_thread_t *th,
(VALUE)me,
0, th->ec->cfp->sp, 0, 0);
val = (*ifunc->func)(arg, ifunc->data, argc, argv, blockarg);
- rb_vm_pop_frame(th);
+ rb_vm_pop_frame(th->ec);
return val;
}