mruby-compiler: remove var_nodes_enabled and use_variable_nodes flags

Eliminates gradual rollout feature flags that controlled variable-sized AST
nodes. Variable-sized nodes are now the default and only behavior, completing
the AST unification and simplification process.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-09-24 14:20:06 +09:00
parent 511a5d13d3
commit 76745161c5
3 changed files with 0 additions and 10 deletions
-2
View File
@@ -33,7 +33,6 @@ typedef struct mrb_ccontext {
mrb_bool keep_lv:1;
mrb_bool no_optimize:1;
mrb_bool no_ext_ops:1;
mrb_bool use_variable_nodes:1; /* Enable variable-sized AST nodes */
const struct RProc *upper;
size_t parser_nerr;
@@ -135,7 +134,6 @@ struct mrb_parser_state {
uint16_t current_filename_index;
/* Variable-sized node management */
mrb_bool var_nodes_enabled:1; /* Feature flag for gradual rollout */
mrb_ast_node *nvars;
};
-4
View File
@@ -7071,7 +7071,6 @@ parser_init_cxt(parser_state *p, mrb_ccontext *cxt)
p->no_optimize = cxt->no_optimize;
p->no_ext_ops = cxt->no_ext_ops;
p->upper = cxt->upper;
p->var_nodes_enabled = cxt->use_variable_nodes;
if (cxt->partial_hook) {
p->cxt = cxt;
}
@@ -7181,9 +7180,6 @@ mrb_parser_new(mrb_state *mrb)
p->filename_table = NULL;
p->filename_table_length = 0;
/* Initialize variable-sized node infrastructure */
p->var_nodes_enabled = FALSE;
return p;
}
-4
View File
@@ -13900,7 +13900,6 @@ parser_init_cxt(parser_state *p, mrb_ccontext *cxt)
p->no_optimize = cxt->no_optimize;
p->no_ext_ops = cxt->no_ext_ops;
p->upper = cxt->upper;
p->var_nodes_enabled = cxt->use_variable_nodes;
if (cxt->partial_hook) {
p->cxt = cxt;
}
@@ -14010,9 +14009,6 @@ mrb_parser_new(mrb_state *mrb)
p->filename_table = NULL;
p->filename_table_length = 0;
/* Initialize variable-sized node infrastructure */
p->var_nodes_enabled = FALSE;
return p;
}