diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-11 12:27:34 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-11 12:27:34 +0000 |
commit | ac28b985bdc2f85eada8070d40f6de9f11dab7f8 (patch) | |
tree | 7032a0f9ca75346ea1316ff2d8254c2606de93da /internal.h | |
parent | 734146a459564e8b6aa221d8a5d4d55c8610d557 (diff) | |
download | ruby-ac28b985bdc2f85eada8070d40f6de9f11dab7f8.tar.gz |
* vm_insnhelper.c: use T_IMEMO to create SVAR.
* internal.h, vm_insnhelper.h: move definition `struct SVAR'
from vm_insnhelper.h to internal.h. And rename it to strcut vm_svar.
new imemo_type imemo_svar is added.
* gc.c (gc_mark_children): mark imemo_svar.
* node.c (rb_gc_mark_node): remove useless marking.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 9172fb1892..0a4bcba5fa 100644 --- a/internal.h +++ b/internal.h @@ -532,6 +532,7 @@ struct RIMemo { enum imemo_type { imemo_none, imemo_cref, + imemo_svar, imemo_mask = 0x07 }; @@ -634,6 +635,16 @@ CREF_OMOD_SHARED_UNSET(rb_cref_t *cref) cref->flags &= ~NODE_FL_CREF_OMOD_SHARED_; } +/* SVAR */ + +struct vm_svar { + VALUE flags; + const rb_cref_t * const cref; + const VALUE lastline; + const VALUE backref; + const VALUE others; +}; + /* MEMO */ struct MEMO { |