mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-10 01:56:15 +08:00
Direct calls whose callback arguments resolve to known functions call a copy of the helper made for that tuple of targets, so the constant-callback analysis devirtualizes and LLVM inlines the callback. Constant callbacks also resolve through recursion that forwards the callback, through other consumers' parameters, and through unwritten captures. Copies are limited to bodies of at most 300 IR nodes and 4 copies per function, which keeps the self-hosted compiler within 1% of its size. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>