summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-29 14:38:25 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-29 14:38:25 +0000
commitbcdb02c8f46db3266d985eef906e8cdaa2bf31e7 (patch)
tree8bd1ea1bc8e73e0cb895c1ddbb76fc7ac0a1d41f /vm_eval.c
parentb0d79e1072a72b6d23c70bec313d36c9cb8f8124 (diff)
`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
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 121a3ca..4ab9238 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