From 8ffcea9edcb265e81983ec3f3f8156f3b38158be Mon Sep 17 00:00:00 2001 From: mame Date: Sat, 21 Oct 2017 08:40:28 +0000 Subject: 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 --- node.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'node.c') 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); -- cgit v1.2.3