summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 03:04:54 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 03:04:54 +0000
commitc1de9fc5efc84de132acee649be549020a497e21 (patch)
tree7ee631ec27206b41ddacc68a96aaf63bb1e2059a /gc.c
parent6916254afa41689f2480cf02f08ffb67004fc871 (diff)
Replace NODE_STRTERM and NODE_HEREDOC with imemo_strterm
Just refactoring. NODE_STRTERM and NODE_HEREDOC are not an internal node of AST, but a temporary storage for managing termination of string literals and heredocs. Instead of NODE abuse, I want to use imemo for the storage in order to avoid (my) confusion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 0d6163ea98..e856fbf9cb 100644
--- a/gc.c
+++ b/gc.c
@@ -4546,6 +4546,9 @@ gc_mark_imemo(rb_objspace_t *objspace, VALUE obj)
case imemo_ast:
rb_ast_mark(&RANY(obj)->as.imemo.ast);
return;
+ case imemo_strterm:
+ rb_strterm_mark(obj);
+ return;
#if VM_CHECK_MODE > 0
default:
VM_UNREACHABLE(gc_mark_imemo);