News for hackers. Stuff that matters.
Re:How JavaScript compilers work by Arelius on Saturday June 08, 2013 @02:15PM (#5845703)
Obviously it takes some extra cycles to perform ASI. Now, having said that I doubt any additional passes on the source are done to perform ASI. I suspect that if it is of any significance, they have folded it into another pass. And the code likely runs even if not all the semicolons are already in the right place, so it'd be a sunk cost in that regard.

Having said that, I'm, sure it's such a small amount of the compilation time to be pretty insignificant.

This is all however based on my professional experience writing parsers, and not on any specific knowledge of the workings of Javascript however.

There are no comments on this comment yet.