diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-11 04:17:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-11 04:17:45 +0000 |
commit | bb66691e7e205c5f04c62741f212db1a94388bb3 (patch) | |
tree | ac6f94e64a14721fbe6503f03bf064d3c3a96c15 /vm_eval.c | |
parent | 2cb399af44a16ed0b593b3b9e5cea1fc736073d3 (diff) | |
download | ruby-bb66691e7e205c5f04c62741f212db1a94388bb3.tar.gz |
vm_insnhelper.c: CHECK_CFP_CONSISTENCY
* vm_insnhelper.c (CHECK_CFP_CONSISTENCY): make [BUG] messages
consistent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r-- | vm_eval.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -92,9 +92,7 @@ vm_call0_cfunc(rb_thread_t* th, struct rb_calling_info *calling, const struct rb th->passed_ci = 0; } else { - if (reg_cfp != th->cfp + 1) { - rb_bug("vm_call0_cfunc: cfp consistency error"); - } + CHECK_CFP_CONSISTENCY("vm_call0_cfunc"); VM_PROFILE_UP(C2C_POPF); rb_vm_pop_frame(th); } @@ -131,9 +129,7 @@ vm_call0_cfunc_with_frame(rb_thread_t* th, struct rb_calling_info *calling, cons 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"); - } + CHECK_CFP_CONSISTENCY("vm_call0_cfunc_with_frame"); VM_PROFILE_UP(C2C_POPF); rb_vm_pop_frame(th); } |