mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 22:52:22 +02:00
After compiling the bytecode executable on first run, null out the AST (m_parse_node) and clear AnnexB candidates since they are no longer needed. This frees the memory held by the entire AST for the script's lifetime. The parse_node() accessor now returns a nullable pointer. Callers (js.cpp for AST dumping, Interpreter for first compilation) access the AST before it is dropped.
3.3 KiB
3.3 KiB