summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 08:40:28 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 08:40:28 +0000
commitccfe37884ab566336380d0f21e15321d6382da8f (patch)
tree23b4471775b07e7c2b7dbccc6c4ac1d5627d0848 /node.c
parentcea5f5aaee52ef756a6f7c200b0b37f9c63c01c0 (diff)
Replace NODE_ALLOCA with T_IMEMO (imemo_alloc)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.c')
-rw-r--r--node.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/node.c b/node.c
index 58732ab987..c0ca3a8186 100644
--- a/node.c
+++ b/node.c
@@ -1039,7 +1039,6 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
case NODE_ARGS_AUX:
case NODE_TO_ARY:
case NODE_BLOCK_ARG:
- case NODE_ALLOCA:
case NODE_BMETHOD:
case NODE_LAST:
break;
@@ -1075,9 +1074,6 @@ rb_gc_free_node(VALUE obj)
xfree(RNODE(obj)->nd_ainfo);
}
break;
- case NODE_ALLOCA:
- xfree(RNODE(obj)->u1.node);
- break;
}
}
@@ -1096,9 +1092,6 @@ rb_node_memsize(VALUE obj)
size += sizeof(*RNODE(obj)->nd_ainfo);
}
break;
- case NODE_ALLOCA:
- size += RNODE(obj)->nd_cnt * sizeof(VALUE);
- break;
}
return size;
}
@@ -1223,11 +1216,6 @@ rb_gc_mark_node(NODE *obj)
case NODE_ERRINFO:
case NODE_BLOCK_ARG:
break;
- case NODE_ALLOCA:
- rb_gc_mark_locations((VALUE*)RNODE(obj)->u1.value,
- (VALUE*)RNODE(obj)->u1.value + RNODE(obj)->u3.cnt);
- rb_gc_mark(RNODE(obj)->u2.value);
- break;
default: /* unlisted NODE */
rb_gc_mark_maybe(RNODE(obj)->u1.value);