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

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
1 views

Related Articles

7 Production Lessons From Shipping Temporal (What We Got Wrong First)
News

7 Production Lessons From Shipping Temporal (What We Got Wrong First)

Medium Programming • 31m ago

Why Logging Matters More Than Metrics
News

Why Logging Matters More Than Metrics

Medium Programming • 56m ago

Remove Element
News

Remove Element

Medium Programming • 58m ago

News

The Programming Language That Will Matter Most in the Future Isn’t the One You Expect

Medium Programming • 1h ago

Top 10 Most Famous & Influential Personalities of Chitral (SEO Friendly List)
1.
News

Top 10 Most Famous & Influential Personalities of Chitral (SEO Friendly List) 1.

Medium Programming • 1h ago

Discover More Articles