3 ms·
I believe the Rust rewrite of parts is proceeding, but this tech blog explains what's going on: https://hacks.mozilla.org/2019/08/the-baseline-interpreter-a-fas
by pjc50 7y ago
I believe the Rust rewrite of parts is proceeding, but this tech blog explains what's going on: https://hacks.mozilla.org/2019/08/the-baseline-interpreter-a-faster-js-interpreter-in-firefox-70/ https://hacks.mozilla.org/2019/08/the-baseline-interpreter-a...
> The Baseline Interpreter sits between the C++ interpreter and the Baseline JIT and has elements from both. It executes all bytecode instructions with a fixed interpreter loop (like the C++ interpreter). In addition, it uses Inline Caches to improve performance and collect type information (like the Baseline JIT).
Including elements [of code] from both would be considerably harder in another language.
If you read closely it appears the interpreter is "generated" - that it, it's not written directly in C++ or anything at all, but is instead an interpreter emitted by the JIT compiler!