summaryrefslogtreecommitdiff
path: root/insns.def
diff options
context:
space:
mode:
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def18
1 files changed, 1 insertions, 17 deletions
diff --git a/insns.def b/insns.def
index e378260c4b..62490f248f 100644
--- a/insns.def
+++ b/insns.def
@@ -853,23 +853,7 @@ trace
{
rb_event_flag_t flag = nf;
- if (flag == RUBY_EVENT_COVERAGE) {
- VALUE coverage = GET_ISEQ()->coverage;
- if (coverage) {
- long line = vm_get_sourceline(GET_CFP()) - 1;
- long count;
- if (RARRAY_PTR(coverage)[line] == Qnil) {
- rb_bug("bug");
- }
- count = FIX2LONG(RARRAY_PTR(coverage)[line]) + 1;
- if (POSFIXABLE(count)) {
- RARRAY_PTR(coverage)[line] = LONG2FIX(count);
- }
- }
- }
- else {
- EXEC_EVENT_HOOK(th, flag, GET_SELF(), 0, 0 /* TODO: id, klass */);
- }
+ EXEC_EVENT_HOOK(th, flag, GET_SELF(), 0, 0 /* TODO: id, klass */);
}
/**********************************************************/