Set arity in native compiler and bytecode modules

Sx_compiler.compile/compile_module now emit arity (local slot count) in
the bytecode dict. MCP sx_build_bytecode serializes arity into .sxbc.json.
sx-platform.js passes arity through to K.loadModule(). Without this, the
VM allocated only 16 local slots per module frame.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-30 14:31:55 +00:00
parent b274e428eb
commit 408eca1cb0
26 changed files with 39 additions and 32 deletions

File diff suppressed because one or more lines are too long