aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-01 09:16:27 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-01 09:16:27 +0000
commit5b2d36f7afab339b9db0c0d8277e52d5a52ac23b (patch)
treea02130d076139a79e91ea7b5e69ae4f8c0e0b7a6 /vm_core.h
parentc3dc2eb45a81a66ca7568a7aa12626538794427e (diff)
downloadruby-5b2d36f7afab339b9db0c0d8277e52d5a52ac23b.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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/vm_core.h b/vm_core.h
index d99379daa1..d36c92fbf9 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -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 */
};