summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-01 12:51:21 (GMT)
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-01 12:51:21 (GMT)
commit295838e6eb1d063c64f7cde5bbbd13c7768908fd (patch)
tree0de833d9da08420c8d6fc645de6edeb0b40dcaa1 /vm_core.h
parente1fce44ca60cd09339824e9b13d2397f2795cf4a (diff)
iseq.h: Extract position array from iseq_insn_info_entry
This makes TracePoint a bit fast by reducing cache misses of `get_insn_info_binary_search`. Also, I plan to use succinct bitvector algorithm for `get_insn_info` instead of binary search. This change will make it easy. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index d36c92f..0d08875 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -373,6 +373,7 @@ struct rb_iseq_constant_body {
/* insn info, must be freed */
struct iseq_insn_info {
const struct iseq_insn_info_entry *body;
+ const unsigned int *positions;
unsigned int size;
} insns_info;