aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.h
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2021-08-21 10:15:01 -0700
committerGitHub <noreply@github.com>2021-08-21 10:15:01 -0700
commit48c8df9e0eb295af06d593ce37ce1933c0ee1d90 (patch)
tree4a8092796f397a12835f89c4f220a84fa8f5f867 /iseq.h
parentf51a6ace06cecd193bf00747a63809849e254050 (diff)
downloadruby-48c8df9e0eb295af06d593ce37ce1933c0ee1d90.tar.gz
Allow tracing of optimized methods
This updates the trace instructions to directly dispatch to opt_send_without_block. So this should cause no slowdown in non-trace mode. To enable the tracing of the optimized methods, RUBY_EVENT_C_CALL and RUBY_EVENT_C_RETURN are added as events to the specialized instructions. Fixes [Bug #14870] Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/iseq.h b/iseq.h
index b792e13703..25c130e7b7 100644
--- a/iseq.h
+++ b/iseq.h
@@ -74,6 +74,8 @@ ISEQ_ORIGINAL_ISEQ_ALLOC(const rb_iseq_t *iseq, long size)
RUBY_EVENT_END | \
RUBY_EVENT_CALL | \
RUBY_EVENT_RETURN| \
+ RUBY_EVENT_C_CALL| \
+ RUBY_EVENT_C_RETURN| \
RUBY_EVENT_B_CALL| \
RUBY_EVENT_B_RETURN| \
RUBY_EVENT_COVERAGE_LINE| \