FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Static Roots: Objects with Compile-Time Constant Addresses
NewsWeb Development

Static Roots: Objects with Compile-Time Constant Addresses

via V8 BlogOlivier Flückiger2y ago

Did you ever wonder where undefined , true , and other core JavaScript objects come from? These objects are the atoms of any user defined object and need to be there first. V8 calls them immovable immutable roots and they live in their own heap – the read-only heap. Since they are used constantly, quick access is crucial. And what could be quicker than correctly guessing their memory address at compile time? As an example, consider the extremely common IsUndefined API function . Instead of having to look up the address of the undefined object for reference, what if we could simply check if an object's pointer ends in, say, 0x61 to know if it is undefined. This is exactly what the V8’s static roots feature achieves. This post explores the hurdles we had to take to get there. The feature landed in Chrome 111 and brought performance benefits across the whole VM, particularly speeding up C++ code and builtin functions. Bootstrapping the Read-Only Heap # Creating the read-only objects takes

Continue reading on V8 Blog

Opens in a new tab

Read Full Article
15 views

Related Articles

The Decision Pattern That Prevents Product–Engineering Conflict
News

The Decision Pattern That Prevents Product–Engineering Conflict

Medium Programming • 1d ago

News

Autopilot

Medium Programming • 1d ago

The Most Important Skill in Software Engineering Isn’t Coding
News

The Most Important Skill in Software Engineering Isn’t Coding

Medium Programming • 1d ago

New interstellar hunting with Vera Rubin alerts
News

New interstellar hunting with Vera Rubin alerts

Medium Programming • 1d ago

News

R: A Language for Data Analysis and Graphics (1996)

Lobsters • 1d ago

Discover More Articles