diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-01 09:16:27 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-01 09:16:27 +0000 |
commit | fd950df795ffd06b4e1532b881ad4273a2af90e2 (patch) | |
tree | a02130d076139a79e91ea7b5e69ae4f8c0e0b7a6 /vm_core.h | |
parent | d4764ef6e4a807e02b3d31347d3b17e2960d38bb (diff) | |
download | ruby-fd950df795ffd06b4e1532b881ad4273a2af90e2.tar.gz |
vm_core.h: refactoring of insns_info
This factors rb_iseq_constant_body#insns_info and #insns_info_size to
struct iseq_insn_info.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -371,7 +371,10 @@ struct rb_iseq_constant_body { rb_iseq_location_t location; /* insn info, must be freed */ - const struct iseq_insn_info_entry *insns_info; + struct iseq_insn_info { + const struct iseq_insn_info_entry *body; + unsigned int size; + } insns_info; const ID *local_table; /* must free */ @@ -396,7 +399,6 @@ struct rb_iseq_constant_body { unsigned int is_size; unsigned int ci_size; unsigned int ci_kw_size; - unsigned int insns_info_size; unsigned int stack_max; /* for stack overflow check */ }; |