Replace parser & node compile_option from Hash to bit field

This commit reduces dependency to CRuby object.
This commit is contained in:
yui-knk 2023-06-17 10:21:37 +09:00 committed by Yuichiro Kaneko
parent e5ae7a16b4
commit 19c62b400d
Notes: git 2023-06-17 07:41:27 +00:00
7 changed files with 34 additions and 27 deletions

1
node.c
View file

@ -392,7 +392,6 @@ rb_ast_mark(rb_ast_t *ast)
if (ast->node_buffer) {
rb_gc_mark(ast->node_buffer->mark_hash);
rb_gc_mark(ast->node_buffer->tokens);
if (ast->body.compile_option) rb_gc_mark(ast->body.compile_option);
node_buffer_t *nb = ast->node_buffer;
iterate_node_values(ast, &nb->markable, mark_ast_value, NULL);
if (ast->body.script_lines) rb_gc_mark(ast->body.script_lines);