-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reinstate the lambda lifting after the CPS transform
This is to avoid too many nested function definitions, which can cause stack overflows in JS parsers. There are now two lambda lifting passes in total: one before and one after CPS-transforming the code. The pre-CPS-transform lifting is done to avoid nesting functions that are doubly-translated, which would be both costly in code size and incorrect in terms of closure environment capture.
- Loading branch information
1 parent
c1f7911
commit 3cd6c95
Showing
2 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters