From 438f36dd2d456b5f44ccf80367ee62c7fe4257fd Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 29 Oct 2015 06:03:17 +0000 Subject: vm_insnhelper.c: use enum and fix typo * vm_insnhelper.c (VM_PROFILE_UP): use enum. * vm_insnhelper.c (vm_profile_show_result): fix typo, "r->c" at the last should be "c->c". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vm_eval.c') diff --git a/vm_eval.c b/vm_eval.c index ed8bf42496..ffb3a6b8f6 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -81,7 +81,7 @@ vm_call0_cfunc(rb_thread_t* th, struct rb_calling_info *calling, const struct rb th->passed_ci = ci; cc->aux.inc_sp = 0; - VM_PROFILE_UP(2); + VM_PROFILE_UP(C2C_CALL); val = (*cfunc->invoker)(cfunc->func, recv, argc, argv); if (reg_cfp == th->cfp) { @@ -94,7 +94,7 @@ vm_call0_cfunc(rb_thread_t* th, struct rb_calling_info *calling, const struct rb if (reg_cfp != th->cfp + 1) { rb_bug("vm_call0_cfunc: cfp consistency error"); } - VM_PROFILE_UP(3); + VM_PROFILE_UP(C2C_POPF); vm_pop_frame(th); } } @@ -127,13 +127,13 @@ vm_call0_cfunc_with_frame(rb_thread_t* th, struct rb_calling_info *calling, cons if (len >= 0) rb_check_arity(argc, len, len); - VM_PROFILE_UP(2); + VM_PROFILE_UP(C2C_CALL); val = (*cfunc->invoker)(cfunc->func, recv, argc, argv); if (UNLIKELY(reg_cfp != th->cfp + 1)) { rb_bug("vm_call0_cfunc_with_frame: cfp consistency error"); } - VM_PROFILE_UP(3); + VM_PROFILE_UP(C2C_POPF); vm_pop_frame(th); } EXEC_EVENT_HOOK(th, RUBY_EVENT_C_RETURN, recv, mid, me->owner, val); -- cgit v1.2.3