Skip to content
Snippets Groups Projects
Commit 0b5b8066 authored by Ted Campbell's avatar Ted Campbell
Browse files

Bug 1600705 - Avoid storing nullptr closed-over-bindings data for LazyScripts. r=jorendorff

The closed-over-binding data is generated for each scope with a nullptr
delimiter per scope. This is wasteful when there are no closed-over bindings.
This patch removes trailing nullptr entries and for leaf-functions may result
in the script-data allocation being avoided altogether.

The FullParseHandler::nextLazyClosedOverBinding() will return nullptr after
the end of the gcthings data so that the delazification process is otherwise
unchanged.

Differential Revision: https://phabricator.services.mozilla.com/D57885

--HG--
extra : moz-landing-system : lando
parent e6a17a63
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment