---
title: "Land ahoy: leaving the Sea of Nodes"
description: "V8 is replacing Sea of Nodes in its Turbofan optimizing compiler with Turboshaft, a traditional control-flow-graph IR."
url: "https://swe.quest/articles/land-ahoy-leaving-the-sea-of-nodes-b461320cb50dc764"
canonical: "https://v8.dev/blog/leaving-the-sea-of-nodes"
source: "V8"
published: "2025-03-25"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 25
tags: ["compilers","runtimes","javascript","webassembly"]
---

# Land ahoy: leaving the Sea of Nodes

A post on [V8](https://swe.quest/sources/v8.md), published 2025-03-25, 25 min read, Deep dive. Original: [https://v8.dev/blog/leaving-the-sea-of-nodes](https://v8.dev/blog/leaving-the-sea-of-nodes)

## Summary

V8 is replacing Sea of Nodes in its Turbofan optimizing compiler with Turboshaft, a traditional control-flow-graph IR. The JavaScript backend and the entire WebAssembly pipeline already run on it, and Maglev is taking over the JS frontend. After more than a decade with Sea of Nodes, the team found its theoretical benefits largely unrealized for JavaScript. Checks, loads and stores keep most nodes pinned to the effect or control chains, memory operations rarely float, and the graphs are hard for engineers to read, debug and lower. Explicit control and effect chains make lowerings error-prone, while a CFG stays closer to both the source code and the emitted assembly.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Compilers](https://swe.quest/tags/compilers.md) (Compilers & runtimes)
- [Runtimes & VMs](https://swe.quest/tags/runtimes.md) (Compilers & runtimes)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [WebAssembly](https://swe.quest/tags/webassembly.md) (Languages)

## Prerequisites

- compiler intermediate representations
- control-flow graphs
- JIT compilation ([easy posts on Compilers](https://swe.quest/tags/compilers.md?difficulty=easy))
- speculative optimization and deoptimization ([easy posts on Performance engineering](https://swe.quest/tags/performance.md?difficulty=easy))

## Keywords

V8, Turbofan, Turboshaft, Sea of Nodes, Maglev, Crankshaft, HotSpot C2

## Related posts

- [Celebrating 10 years of V8 · V8](https://swe.quest/articles/celebrating-10-years-of-v8-v8-26690aa14d628d44.md): V8 · 2018-09-11 · Easy · 9 min read · Runtimes & VMs, JavaScript, Compilers, Memory management, Performance engineering
  V8 grew over ten years from a secret project started in 2006 on a Danish farm into a JavaScript and WebAssembly engine supporting eight instruction sets, embedded by both Chrome and Node.js.
- [V8 release v6.9 · V8](https://swe.quest/articles/v8-release-v6-9-v8-d0efd26e2594b2df.md): V8 · 2018-08-07 · Easy · 4 min read · Runtimes & VMs, JavaScript, Memory management, WebAssembly, Compilers
  V8 v6.9 embeds built-in functions directly into the binary on x64, so all Isolates share one copy instead of each holding up to 700 KB on its own heap.
- [Speculative Optimizations for WebAssembly using Deopts and Inlining](https://swe.quest/articles/speculative-optimizations-for-webassembly-using-deopts-and-inlining-bb89e7c53ac7945f.md): V8 · 2025-06-24 · Hard · 17 min read · WebAssembly, Compilers, Runtimes & VMs, Performance engineering
  V8 in Chrome M137 adds speculative call\_indirect inlining and deoptimization support for WebAssembly, using runtime call-target feedback gathered by the Liftoff baseline compiler so TurboFan can inline up to four likely callees behind cheap instance and target checks.
- [How we made JSON.stringify more than twice as fast](https://swe.quest/articles/how-we-made-json-stringify-more-than-twice-as-fast-a8feda7c2e371e2a.md): V8 · 2025-08-04 · Hard · 7 min read · Runtimes & VMs, JavaScript, Performance engineering, Browsers
  V8 more than doubled JSON.stringify throughput on the JetStream2 json-stringify-inspector benchmark by adding an iterative, side-effect-free fast path that skips the general serializer's defensive checks.
- [We Have to Start Over: From Atom to Zed](https://swe.quest/articles/we-have-to-start-over-from-atom-to-zed-8db3be76f03d8a79.md): Zed · 2024-02-12 · Easy · 25 min read · Rust, Developer tools, Performance engineering, Data structures
  Zed's co-founders explain why they abandoned Atom's Electron/JavaScript stack and rebuilt a code editor in Rust: JavaScript's pointer-chasing arrays, uncontrollable GC pauses, and the costly JS/C++ boundary for multithreading made performance work feel like fighting the platform.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
