[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: What would you remove from Lua - a case of regression?
- From: Hugo Musso Gualandi <hgualandi@...>
- Date: Tue, 27 Nov 2018 09:10:28 -0500
> Actually, V8 doesn't have an interpreter. It always compiles. It has a dumb, fast one that doesn't optimize at all that it uses for the first run of everything, and a slow, smart one that it uses to optimize hot spots.
These Javascript JITs change all the time. Nowadays v8 uses an interpreter as its first stage. One of the biggest reasons for the change was to reduce memory usage (the machine code generated by the baseline compiler was much larger than the equivalent interpreter bytecodes)
https://v8.dev/docs/ignition