You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VM: expose exact active legacy arguments for compiled ordinary functions #802
The tree-walker passes; required bytecode throws TypeError: null is not an object. The ordinary function is admitted, but VM calls do not publish the legacy call-frame view used by Interpreter.getProperty. This is separate from relocation of an already published tree-walker legacy frame.
Acceptance:
Preserve the engine's legacy caller/arguments behavior in admitted ordinary compiled calls, including inline, nested-driver, recursive and tail transitions, without routing them to the tree-walker.
Keep argument mapping/identity, strict and newer-function poison restrictions, and cross-realm behavior exact.
Publish and retire introspection views under the existing activation ownership protocol, failure-atomically and with relocatable function/environment/argument slots; coordinate with GC: publish provisional VM activation roots failure-atomically #787 rather than racing that lifecycle work.
Add no-GC and actual moving-GC differential controls, OOM, no-GIL/TSan and relevant conformance.
The failing witness and transcript are retained locally under /Users/chris/.cache/zig-js-801.9pDs7h/legacy-arguments.js and before-legacy-arguments.log. This issue remains open independently of the scoped coercion/assignment root work.
The VM now publishes activation-owned legacy caller/arguments views for compiled ordinary functions, lazily materializes exact mapped arguments, preserves recursive/nested/inline/tail ownership, and traces/relocates function, environment, and argument edges. Native direct calls reject potentially reentrant effects before execution and retain proven safe fast paths; common snapshots stay inline to avoid per-call allocator pressure.
Activity
fix(gc): root reentrant coercion and assignment state (#801)
fix(vm): publish compiled legacy call frames (#802)
chrisbbreuer commentedon Aug 31, 2026
Implemented and pushed to main in bcc3e757.
The VM now publishes activation-owned legacy caller/arguments views for compiled ordinary functions, lazily materializes exact mapped arguments, preserves recursive/nested/inline/tail ownership, and traces/relocates function, environment, and argument edges. Native direct calls reject potentially reentrant effects before execution and retain proven safe fast paths; common snapshots stay inline to avoid per-call allocator pressure.
Verification:
zig build test-parallel: 2,226 passed, 1 skipped, 0 failed, 0 leakedtest/built-ins/Function/prototype: 309 -> 309; 0 flips, 0 regressions