aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-02 13:58:07 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-02 13:58:07 +0000
commit2962b6e063e4e6e8bd4b8be5c45166972caf41c2 (patch)
treef46856c3f6070bba675fee950b04724a8227464c /vm_core.h
parentafd564ee3f7f2c42359e20d5083a214f82744812 (diff)
downloadruby-2962b6e063e4e6e8bd4b8be5c45166972caf41c2.tar.gz
* vm_core.h, iseq.h: remove rb_iseq_t::variable_body.
Fields in rb_iseq_t::variable_body are contained by rb_iseq_t::body::mark_ary (hidden Array object). Index 0 to 2 of mark_ary are reserved by these objects. * iseq.c: catch up this fix. * compile.c (rb_iseq_original_iseq): trivial rewrite. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/vm_core.h b/vm_core.h
index 377b6a964e..2343e1154d 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -385,24 +385,14 @@ struct rb_iseq_constant_body {
unsigned int line_info_size;
};
-struct rb_iseq_variable_body {
- const VALUE coverage_; /* coverage array */
-
- rb_num_t flip_cnt_;
-
- /* original iseq, before encoding
- * used for debug/dump (TODO: union with compile_data) */
- VALUE *iseq_;
-};
-
/* T_IMEMO/iseq */
/* typedef rb_iseq_t is in method.h */
struct rb_iseq_struct {
VALUE flags;
struct iseq_compile_data *compile_data_; /* used at compile time */
struct rb_iseq_constant_body *body;
- struct rb_iseq_variable_body *variable_body;
- VALUE dummy2;
+ VALUE reserved1;
+ VALUE reserved2;
};
enum ruby_special_exceptions {