Files
ladybird/Libraries/LibJS/SourceTextModule.cpp
Andreas Kling ef943505e2 LibJS: Cache compiled executable and pre-create TLA shared data
For non-TLA modules, cache the compiled Bytecode::Executable on the
SourceTextModule so we only compile once.

For TLA modules, pre-create the SharedFunctionInstanceData for the
async wrapper function at construction time. The wrapper function's
first invocation will compile it to bytecode and then automatically
drop the AST via clear_compile_inputs().
2026-02-11 23:57:41 +01:00

37 KiB