4 ms·
Hahaha that sounds excessive! JavaScriptCore does it differently: many of our benchmarks are either interpreters or compilers written in JavaScript. One of th
by pizlonator 7y ago
Hahaha that sounds excessive!
JavaScriptCore does it differently: many of our benchmarks are either interpreters or compilers written in JavaScript.
One of those benchmarks, Air, is just the stack slot coloring phase of JSC’s FTL JIT (that JIT has >90 phases) rewritten in JavaScript instead of C++. It runs like 50x slower in JS than C++ even in JSC, which wins on that test. So, probably it won’t be possible to write a JS VM in JS anytime soon. I mean, surely it’ll be possible, but it’ll also be hilariously shitty.