summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-14 19:58:59 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-14 19:58:59 +0000
commit8f08e61bad1d745dc7a10ff216ad5ca2e92b3ded (patch)
tree3f13f4c2d16aa4780b36e9a3d49e50aee9432f34 /vm_eval.c
parentfd3b0dec4a4aa0e56bf56bb058688e0dea91c090 (diff)
* vm_insnhelper.c: refactoring.
- move all `call' related functions to the last of file. - make functions for respective method types in vm_call_method(). (all functions have same function parameters) * vm_core.h: add `opt_pc' filed in `rb_call_info_t' as temporal variable. * vm_eval.c (vm_call0_body): catch up above cahnges. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_eval.c b/vm_eval.c
index b05d62f6b5..43153f562c 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -78,7 +78,7 @@ vm_call0_body(rb_thread_t* th, rb_call_info_t *ci, const VALUE *argv)
*reg_cfp->sp++ = argv[i];
}
- vm_setup_method(th, reg_cfp, ci);
+ vm_call_iseq_setup(th, reg_cfp, ci);
th->cfp->flag |= VM_FRAME_FLAG_FINISH;
val = vm_exec(th);
break;
@@ -115,7 +115,7 @@ vm_call0_body(rb_thread_t* th, rb_call_info_t *ci, const VALUE *argv)
break;
}
case VM_METHOD_TYPE_BMETHOD: {
- val = vm_call_bmethod(th, ci->recv, ci->argc, argv, ci->blockptr, ci->me, ci->defined_class);
+ val = vm_call_bmethod_body(th, ci, argv);
break;
}
case VM_METHOD_TYPE_ZSUPER: