mruby-compiler: update new_undef and new_negate to remove traditional node paths

- Modified new_undef to accept node *syms list instead of single mrb_sym
- Simplified gen_undef_var to directly pass symbol list
- Removed traditional node generation path from new_negate
- Both functions now use variable-sized nodes exclusively

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-08-30 13:39:22 +09:00
parent 259a388cbe
commit 914f817e1c
2 changed files with 1439 additions and 1451 deletions
-4
View File
@@ -2635,10 +2635,6 @@ call_with_block(parser_state *p, node *a, node *b)
static node*
new_negate(parser_state *p, node *n)
{
if (!p->var_nodes_enabled) {
return cons_head((node*)NODE_NEGATE, n);
}
size_t total_size = sizeof(struct mrb_ast_negate_node);
enum mrb_ast_size_class class = size_to_class(total_size);
struct mrb_ast_negate_node *negate_node = (struct mrb_ast_negate_node*)
File diff suppressed because it is too large Load Diff