Maglev
2025年の時点で、v8の中に4つあるJITコンパイラのうちの3つ目
Sparkplugよりも最適化したコードを、TurboFanよりも高速に生成するコンパイラ
詳細はV8の多段階コンパイル戦略 (2025年調べ)にまとめたshokai.icon
https://v8.dev/blog/maglev
2023年12月の記事
Chrome 117から使われている
Node 24でも使われている
Node 22系では22.8.0までは有効だったが、22.9.0で無効化された
https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V22.md#2024-09-17-version-2290-current-rafaelgss
We have seen several crashes/unexpected JS behaviors with maglev on v22 (which ships V8 v12.4). The bugs lie in the codegen so it would be difficult for users to work around them or even figure out where the bugs are coming from. Some bugs are fixed in the upstream while some others probably remain.
このMaglev無効化によってsvg2ttfやsvgicons2svgfontのクラッシュ問題が解決したようだshokai.icon
確定:Maglevを無効化したらNode.js v24でもsvg2ttfが実行できる