V8
Read post

Static Roots: Objects with Compile-Time Constant Addresses · V8

JavaScript objects like 'undefined' and 'true' are immovable immutable roots in V8 that have compile-time constant addresses. V8's static roots feature allows for quick access to these objects by guessing their memory addresses at compile time. The read-only heap containing these objects is created at compile time and loaded into memory when starting V8. Address prediction is made possible through pointer compression and deterministic creation of a bit identical read-only heap.

    #javascript#performance#v8
Feb 05, 2024•4m read time•From v8.dev
Post cover image
Table of contents
Bootstrapping the Read-Only Heap #How to Predict Addresses? #Further Applications #
7 Impressions
V8's image
V8

The V8 Blog provides updates, technical deep dives, and insights on V8, Google's open-source JavaScr...

15 Followers

•

25 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard