From ac3bad418c37195547a09bf6d1e3fc9d5ec99460 Mon Sep 17 00:00:00 2001 From: mame Date: Tue, 24 Oct 2017 06:16:31 +0000 Subject: Remove dynamic NODE allocation out of parser A temporary NODE object was allocated to create iseq. Instead, this patch allocates a dummy NODE as auto variable, and discard it soon. This change is intended as a preparation to manage AST NODEs out of GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- node.h | 1 + 1 file changed, 1 insertion(+) (limited to 'node.h') diff --git a/node.h b/node.h index 33c4a77396..c7475cf980 100644 --- a/node.h +++ b/node.h @@ -461,6 +461,7 @@ NODE *rb_compile_cstr(const char*, const char*, int, int); NODE *rb_compile_string(const char*, VALUE, int); NODE *rb_compile_file(const char*, VALUE, int); +void rb_node_init(NODE *n, enum node_type type, VALUE a0, VALUE a1, VALUE a2); NODE *rb_node_newnode(enum node_type,VALUE,VALUE,VALUE); void rb_gc_free_node(VALUE obj); size_t rb_node_memsize(VALUE obj); -- cgit v1.2.3