Yes, I suppose "in the same way earlier versions of LuaJIT worked" would be more accurate.
Re:Speculation in JavaScriptCore
by jashmatthews on Wednesday July 29, 2020 @10:38PM
(#23993891)
LuaJIT 1.x was also an enormous disappointment so it’s a bit perplexing that the PHP team would try something which probably sucks.
Don't believe him. The php jit us entirely different from Lua hit, other than using dynasm. Even raku is using dynasm.
The PHP jit is actually much easier to understand. With SSA for all tiers, CFG, but not that much type speculation at all. The advantage of php, Perl, Ruby over JS is that objects don't vary that much, methods are not overridden that much, and arrays and hashes are much easier. The php jit is at least 10x easier and smaller than JSC. Also C, not C++.
Dynasm is actually written in Lua. There's a good guide by Peter Crawley on how to run it here: https://corsix.github.io/dynasm-doc/tutorial.html#compiling