diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-20 10:45:48 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-20 10:45:48 +0000 |
commit | 6c9a7050329e1da977319e55aa9728c9b50f8250 (patch) | |
tree | 8afe24031dd9782060a72982bbca0fb68681acad /vm_insnhelper.c | |
parent | e05e77fd6de19800442c613b2a4e6488339111fb (diff) | |
download | ruby-6c9a7050329e1da977319e55aa9728c9b50f8250.tar.gz |
Remove tracecoverage instructions
The instructions were used only for branch coverage.
Instead, it now uses a trace framework [Feature #14104].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 98828c1231..d3cd83e156 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -3895,6 +3895,12 @@ vm_trace(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, const VALUE *p EXEC_EVENT_HOOK(ec, RUBY_EVENT_COVERAGE_LINE, GET_SELF(), 0, 0, 0, Qundef); reg_cfp->pc--; } + if (events & RUBY_EVENT_COVERAGE_BRANCH) { + reg_cfp->pc++; + vm_dtrace(RUBY_EVENT_COVERAGE_BRANCH, ec); + EXEC_EVENT_HOOK(ec, RUBY_EVENT_COVERAGE_BRANCH, GET_SELF(), 0, 0, 0, Qundef); + reg_cfp->pc--; + } if ((event = (events & (RUBY_EVENT_END | RUBY_EVENT_RETURN | RUBY_EVENT_B_RETURN))) != 0) { VM_ASSERT(event == RUBY_EVENT_END || event == RUBY_EVENT_RETURN || |