IT lexicon › Programming › Sea of nodes

Sea of nodes

Programming På svenska → Updated: 2026-11-05

An intermediate representation in which instructions aren't pinned to basic blocks but float freely in a graph, constrained only by their data and control dependencies.

Cliff Click described it in his 1995 thesis at Rice and then built it into HotSpot's C2 server compiler. Control flow and data flow become edges in the same graph. A computation that depends on no branch has no fixed home, so optimisations like loop-invariant code motion and global value numbering more or less fall out for free. Only at the end are the nodes scheduled back into blocks.

Graal and V8's TurboFan followed. In 2025, though, the V8 team announced it was abandoning the approach in favour of the more conventional Turboshaft, citing graphs that were hard to debug, unfriendly to caches, and the observation that JavaScript has so many side effects the nodes rarely got to float anywhere.

← Back to the lexicon