mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
2b931d0c5e
Change scope_body() signature from (s, tree, val) to (s, locals, body, val) to eliminate artificial cons-list structure creation on stack. This improves the API design and prepares for future variable-sized node migrations. Updated call sites: - gen_scope_var(): remove stack allocation, pass scope->locals/body directly - codegen_class(): pass body->car, body->cdr separately - codegen_module(): pass tree->cdr->car->car, tree->cdr->car->cdr separately - codegen_sclass(): pass tree->cdr->car->car, tree->cdr->car->cdr separately Co-authored-by: Claude <noreply@anthropic.com>