---
title: "Static Roots: Objects with Compile-Time Constant Addresses · V8"
url: https://daily.dev/posts/static-roots-objects-with-compile-time-constant-addresses-v8-f9u7c9i0r
source_url: https://v8.dev/blog/static-roots
type: article
source: "V8"
published: 2024-02-05T14:29:59.198Z
updated: 2024-05-09T08:29:02.242Z
tags: ["javascript", "performance", "v8"]
reading_time: 4
upvotes: 1
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

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

**[V8](https://daily.dev/sources/v8)** · 4 min read · 1 upvotes · 0 comments

## Summary

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.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://v8.dev/blog/static-roots>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#performance](https://daily.dev/tags/performance), [#v8](https://daily.dev/tags/v8)

[View this post on daily.dev](https://daily.dev/posts/static-roots-objects-with-compile-time-constant-addresses-v8-f9u7c9i0r)
