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

4m read time From v8.dev
Post cover image
Table of contents
Bootstrapping the Read-Only Heap #How to Predict Addresses? #Further Applications #

Sort: