mruby-compiler: remove traditional node generation from new_dxstr

Remove if (!p->var_nodes_enabled) branch from new_dxstr function
to use variable-sized nodes exclusively for dynamic execution strings.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-08-30 13:52:57 +09:00
parent 914f817e1c
commit 90436a4078
2 changed files with 1072 additions and 1080 deletions
-4
View File
@@ -2404,10 +2404,6 @@ new_xstr(parser_state *p, const char *s, int len)
static node*
new_dxstr(parser_state *p, node *a)
{
if (!p->var_nodes_enabled) {
return cons_head((node*)NODE_DXSTR, a);
}
size_t total_size = sizeof(struct mrb_ast_dxstr_node);
enum mrb_ast_size_class class = size_to_class(total_size);
struct mrb_ast_dxstr_node *n = (struct mrb_ast_dxstr_node*)
File diff suppressed because it is too large Load Diff