vm.c: simplify the implementation of r64031

because such inconsistency may result in the regression fixed in r64034.

vm_exec is not touched since renaming it may be controversial...

vm_args.c: ditto.
vm_eval.c: ditto.
vm_insnhelper.c: ditto.
vm_method.c: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2018-07-24 15:17:08 +00:00
parent 63f51f5283
commit ba8413c27c
5 changed files with 18 additions and 21 deletions

View file

@ -810,7 +810,7 @@ vm_to_proc(VALUE proc)
rb_callable_method_entry_with_refinements(CLASS_OF(proc), idTo_proc, NULL);
if (me) {
b = vm_call0(GET_EC(), proc, idTo_proc, 0, NULL, me);
b = rb_vm_call0(GET_EC(), proc, idTo_proc, 0, NULL, me);
}
else {
/* NOTE: calling method_missing */
@ -850,7 +850,7 @@ refine_sym_proc_call(RB_BLOCK_CALL_FUNC_ARGLIST(yielded_arg, callback_arg))
if (!me) {
return method_missing(obj, mid, argc, argv, MISSING_NOENTRY);
}
return vm_call0(ec, obj, mid, argc, argv, me);
return rb_vm_call0(ec, obj, mid, argc, argv, me);
}
static void