Skip to content

Latest commit

 

History

History
236 lines (232 loc) · 36.9 KB

README.md

File metadata and controls

236 lines (232 loc) · 36.9 KB

V8 Design Docs

V8 is largely undocumented. An important source to understand V8 are design documents. To the best of my knowledge, there is no index of all design docs. This is an attempt to be that index. It is not limited to design docs in the strict sense; more like "Google Doc with details about V8 development".

Feel free to open PRs that add V8 design docs or fill in missing information.

Title Author Created Modified Status Public
JSArrayBuffer and BackingStore resizability flag state ? yyyy-mm-dd yyyy-mm-dd ? yes
A Hopefully Final Version of a Generational DOM GC ? yyyy-mm-dd yyyy-mm-dd ? yes
Abseil in V8 Leszek Swirski 2020-10-21 2020-10-23 Final yes
Access to out-of-scope private class members in the DevTools console Joyee Cheung, Caitlin Potter 2022-11-dd 2022-11-dd Draft yes
Add dayPeriod option to Intl.DateTimeFormat ? yyyy-mm-dd yyyy-mm-dd ? yes
Adding Intl.Segmenter to V8 Design Doc ? yyyy-mm-dd yyyy-mm-dd ? yes
Allocation during deserialization ? yyyy-mm-dd yyyy-mm-dd ? yes
Allow Oilpan in V8 ? yyyy-mm-dd yyyy-mm-dd ? yes
Argument Count Consistency ? yyyy-mm-dd yyyy-mm-dd ? yes
Assert scopes for LocalHeap ? yyyy-mm-dd yyyy-mm-dd ? yes
Assigning instance types in Torque ? yyyy-mm-dd yyyy-mm-dd ? yes
Atomics.waitAsync design changes ? yyyy-mm-dd yyyy-mm-dd ? yes
Avoiding leaks in deoptimization literals ? yyyy-mm-dd yyyy-mm-dd ? yes
Better fuzzing for workers ? yyyy-mm-dd yyyy-mm-dd ? yes
Blackboxing in two tables ? yyyy-mm-dd yyyy-mm-dd ? yes
Blink String findings ? yyyy-mm-dd yyyy-mm-dd ? yes
Break on Trusted Type violation (including report-only mode) ? yyyy-mm-dd yyyy-mm-dd ? yes
Bytecode flushing ? yyyy-mm-dd yyyy-mm-dd ? yes
Check Flag Contradictions for d8 ? yyyy-mm-dd yyyy-mm-dd ? yes
Chrome Design Doc Trace Proposal ? yyyy-mm-dd yyyy-mm-dd ? yes
Chrome Scheduler - TaskSource ? yyyy-mm-dd yyyy-mm-dd ? yes
Chrometto: Typed trace events in Chrome ? yyyy-mm-dd yyyy-mm-dd ? yes
Code caching for WebUI scripts ? yyyy-mm-dd yyyy-mm-dd ? yes
Code deps and DependentCode ? yyyy-mm-dd yyyy-mm-dd ? yes
CodeMap GC for the V8 CPU profiler (public copy) ? yyyy-mm-dd yyyy-mm-dd ? yes
Compiling Sparkplug off-thread (Part I) ? yyyy-mm-dd yyyy-mm-dd ? yes
Compress safepoint tables (not only for Wasm) ? yyyy-mm-dd yyyy-mm-dd ? yes
Compressed pointers in V8 (public doc) ? yyyy-mm-dd yyyy-mm-dd ? yes
Concurrent Allocation with blocked main thread ? yyyy-mm-dd yyyy-mm-dd ? yes
Computed property names (re)design document Benedikt Meurer, Franziska Hinkelmann yyyy-mm-dd 2017-01-16 ? yes
Concurrent and compact ArrayBuffer tracking ? yyyy-mm-dd yyyy-mm-dd ? yes
Concurrent and compact ArrayBuffer tracking ? yyyy-mm-dd yyyy-mm-dd ? yes
Concurrent inlining - memory investigation 1 ? yyyy-mm-dd yyyy-mm-dd ? yes
Consistent Set/Store/Define naming ? yyyy-mm-dd yyyy-mm-dd ? yes
Constant field tracking for arrays ? yyyy-mm-dd yyyy-mm-dd ? yes
Constant folding strings concatenations in a concurrent compiler world ? yyyy-mm-dd yyyy-mm-dd ? yes
Constant Recomputing Handler in Gbemu ? yyyy-mm-dd yyyy-mm-dd ? yes
Context-assocaited Microtask Queue in V8 ? yyyy-mm-dd yyyy-mm-dd ? yes
Contributing to Chrome DevTools Protocol ? yyyy-mm-dd yyyy-mm-dd ? yes
CppGC Marking Internal APIs ? yyyy-mm-dd yyyy-mm-dd ? yes
CPU Profiler support for fast API calls ? yyyy-mm-dd yyyy-mm-dd ? yes
CSA Compile-Time Type System ? yyyy-mm-dd yyyy-mm-dd ? yes
d8 changes needed for Atomics.waitAsync testing ? yyyy-mm-dd yyyy-mm-dd ? yes
Default Derived Constructor Performance Peter Marshall yyyy-mm-dd 2017-01-23 ? yes
Deserialize build dependency between chrome and V8 ? yyyy-mm-dd yyyy-mm-dd ? yes
design doc - GWP-Asan for V8 Heap Choongwoo Han yyyy-mm-dd yyyy-mm-dd Draft yes
Design doc of register allocation for independent SIMD128 registers ? yyyy-mm-dd yyyy-mm-dd ? yes
Design Doc: ES6 modules in Blink ? yyyy-mm-dd yyyy-mm-dd ? yes
Design doc: In-Place Weak References ? yyyy-mm-dd yyyy-mm-dd ? yes
Design Doc: Staging of WebAssembly Features ? yyyy-mm-dd yyyy-mm-dd ? yes
Design Doc: Staging of WebAssembly Features ? yyyy-mm-dd yyyy-mm-dd ? yes
Design document: Preparse inner functions ? yyyy-mm-dd yyyy-mm-dd ? yes
Design: Refactoring [[GetOwnPropertyDescriptor]] ? yyyy-mm-dd yyyy-mm-dd ? yes
DevTools, Workers and Profiling ? yyyy-mm-dd yyyy-mm-dd ? yes
Direct Handles Design Doc ? yyyy-mm-dd yyyy-mm-dd ? yes
Emit unwinding information for improved debugging of generated code on Win64 ? yyyy-mm-dd yyyy-mm-dd ? yes
Enabling JavaScript Expressions for Debugging WebAssembly ? yyyy-mm-dd yyyy-mm-dd ? yes
ESNext: Private Accessors ? yyyy-mm-dd yyyy-mm-dd ? yes
ESNext: Private Methods ? yyyy-mm-dd yyyy-mm-dd ? yes
Event-Tracing in V8 ? yyyy-mm-dd yyyy-mm-dd ? yes
Fast C API in V8 - Explainer ? yyyy-mm-dd yyyy-mm-dd ? yes
Faster iteration protocol ? yyyy-mm-dd yyyy-mm-dd ? yes
Faster js-to-wasm calls ? yyyy-mm-dd yyyy-mm-dd ? yes
Faster super property access ? yyyy-mm-dd yyyy-mm-dd ? yes
Fixing Private Name Scopes ? yyyy-mm-dd yyyy-mm-dd ? yes
Fixing the scope chain for the implementation of private methods ? yyyy-mm-dd yyyy-mm-dd ? yes
Function context specialization Jaroslav Sevcik yyyy-mm-dd 2016-11-01 ? yes
Gap resolver algorithm ? yyyy-mm-dd yyyy-mm-dd ? yes
Handles & Local Heaps ? yyyy-mm-dd yyyy-mm-dd ? yes
Happy V8 developers writing test262 tests ? yyyy-mm-dd yyyy-mm-dd ? yes
Ignition Design Doc ? yyyy-mm-dd yyyy-mm-dd ? yes
Ignition TDZ check elision ? yyyy-mm-dd yyyy-mm-dd ? yes
Ignition: Register Equivalence Optimization ? yyyy-mm-dd 2016-04-11 ? yes
Implement the String Handling of “Intl.NumberFormat v3” in V8 Design Doc ? yyyy-mm-dd yyyy-mm-dd ? yes
Implement “Intl Enumeration API” Proposal to V8 Design Doc ? yyyy-mm-dd yyyy-mm-dd ? yes
Implement “Intl Locale Info” Proposal to V8 Design Doc ? yyyy-mm-dd yyyy-mm-dd ? yes
Implement “Intl.DisplayNames v2” Proposal to V8 Design Doc ? yyyy-mm-dd yyyy-mm-dd ? yes
Implement “Intl.NumberFormat v3” Proposal to V8 Design Doc ? yyyy-mm-dd yyyy-mm-dd ? yes
Implement “Temporal” Proposal in V8 Design Doc ? yyyy-mm-dd yyyy-mm-dd ? yes
Import Assertions Design ? yyyy-mm-dd yyyy-mm-dd ? yes
Improve performance on JetStream 2 ? yyyy-mm-dd yyyy-mm-dd ? yes
Improving ParkableStrings thread-safety ? yyyy-mm-dd yyyy-mm-dd ? yes
Improving WebUI code caching ? yyyy-mm-dd yyyy-mm-dd ? yes
Indirect and direct handles ? yyyy-mm-dd yyyy-mm-dd ? yes
Inlining Wasm functions ? yyyy-mm-dd yyyy-mm-dd ? yes
Inspector support for private methods ? yyyy-mm-dd yyyy-mm-dd ? yes
Integrating MicrotaskContext to EnteredContext ? yyyy-mm-dd yyyy-mm-dd ? yes
Intl BestFit LocaleMatcher Design Doc ? yyyy-mm-dd yyyy-mm-dd ? yes
Intl.DurationFormat Design Doc ? yyyy-mm-dd yyyy-mm-dd ? yes
Iterator builtins design document ? yyyy-mm-dd yyyy-mm-dd ? yes
JS Promise Integration API ? yyyy-mm-dd yyyy-mm-dd ? yes
JSAny: A Torque Type for JavaScript Values ? yyyy-mm-dd yyyy-mm-dd ? yes
Lazy deoptimization without code patching ? yyyy-mm-dd yyyy-mm-dd ? yes
Lazy feedback vector allocation ? yyyy-mm-dd yyyy-mm-dd ? yes
Leaptiering ? yyyy-mm-dd yyyy-mm-dd ? yes
Local compile hints ? yyyy-mm-dd yyyy-mm-dd ? yes
Maglev ? yyyy-mm-dd yyyy-mm-dd ? yes
Maglev Untagged Phis ? yyyy-mm-dd yyyy-mm-dd ? yes
Maglev Escape Analysis Leszek Swirski Victor Gomes 2023-09-12 2024-01-31 Draft yes
maglev-osr Olivier Flückiger 2023-06-26 2023-06-26 Under review yes
Make ArrayBufferAllocator Isolate-independent ? yyyy-mm-dd yyyy-mm-dd ? yes
Making async_hooks fast (enough) ? yyyy-mm-dd yyyy-mm-dd ? yes
Making ES2015 classes fast Benedikt Meurer yyyy-mm-dd 2017-08-08 ? yes
Making PGO more configurable in V8 ? yyyy-mm-dd yyyy-mm-dd ? yes
Merging bytecodes for switching and resuming generators ? yyyy-mm-dd yyyy-mm-dd ? yes
New API function Isolate::HasPendingBackgroundTasks ? yyyy-mm-dd yyyy-mm-dd ? yes
New ArrayBuffer API Explainer ? yyyy-mm-dd yyyy-mm-dd ? yes
Object categorization in heap snapshots ? yyyy-mm-dd yyyy-mm-dd ? yes
Off-thread compilation finalization ? yyyy-mm-dd yyyy-mm-dd ? yes
Oilpan Caged Heap Expansion ? yyyy-mm-dd yyyy-mm-dd ? yes
Operation Extinction ? yyyy-mm-dd yyyy-mm-dd ? yes
Optimal spill instruction placement ? yyyy-mm-dd yyyy-mm-dd ? yes
Optimizations for Javascript in operator ? yyyy-mm-dd yyyy-mm-dd ? yes
Optimizing Big BigInts ? yyyy-mm-dd yyyy-mm-dd ? yes
Optimizing Blink-to-V8 References ? yyyy-mm-dd yyyy-mm-dd ? yes
Optimizing class instance member initializers in V8 ? yyyy-mm-dd yyyy-mm-dd ? yes
Out-of-process Validation ? yyyy-mm-dd yyyy-mm-dd ? yes
Parallel wrapper reclamation ? yyyy-mm-dd yyyy-mm-dd ? yes
ParkingLot for Atomics.Mutex ? yyyy-mm-dd yyyy-mm-dd ? yes
Partial Lazy Compilation for WebAssembly ? yyyy-mm-dd yyyy-mm-dd ? yes
Performance & Memory Impacts of a Hopefully Final Version of a Generational DOM GC ? yyyy-mm-dd yyyy-mm-dd ? yes
Playbook: Moving V8 Object Into Trusted Space ? yyyy-mm-dd yyyy-mm-dd ? yes
Polymorphic IC budget theft ? yyyy-mm-dd yyyy-mm-dd ? yes
Postmortem debugging in V8 ? yyyy-mm-dd yyyy-mm-dd ? yes
Private brand checks implementation notes ? yyyy-mm-dd yyyy-mm-dd ? yes
Profile-guided optimization of V8 builtins ? yyyy-mm-dd yyyy-mm-dd ? yes
Protecting V8 flags from manipulation after initialization ? yyyy-mm-dd yyyy-mm-dd ? yes
Public/Private state design doc ? yyyy-mm-dd yyyy-mm-dd ? yes
Recording user actions using console utilities APIs ? yyyy-mm-dd yyyy-mm-dd ? yes
Redesigning Stack Unwinding in V8 ? yyyy-mm-dd yyyy-mm-dd ? yes
Refactoring private name lookup ? yyyy-mm-dd yyyy-mm-dd ? yes
RegExp builtins (re)design document Benedikt Meurer, Jakob Gruber yyyy-mm-dd 2017-04-21 ? yes
Reliable await and yield breakpoints ? yyyy-mm-dd yyyy-mm-dd ? yes
Reliable Recordings ? yyyy-mm-dd yyyy-mm-dd ? yes
Remove --always-turbofan ? yyyy-mm-dd yyyy-mm-dd ? yes
Remove Arguments Adaptor Frame in the Deoptimizer ? yyyy-mm-dd yyyy-mm-dd ? yes
Removing map deprecation ? yyyy-mm-dd yyyy-mm-dd ? yes
Renaming GC test utilities ? yyyy-mm-dd yyyy-mm-dd ? yes
Requirements for WebAssembly in IndexedDB ? yyyy-mm-dd yyyy-mm-dd ? yes
Resolving tail-call gap moves ? yyyy-mm-dd yyyy-mm-dd ? yes
Rest parameters and arguments object optimization plan Benedikt Meurer yyyy-mm-dd 2017-02-21 ? yes
Reusing existing Scripts in the isolate compilation cache ? yyyy-mm-dd yyyy-mm-dd ? yes
Revisiting V8's performance mode APIs ? yyyy-mm-dd yyyy-mm-dd ? yes
Safepointing multiple isolates ? yyyy-mm-dd yyyy-mm-dd ? yes
Safepointing with Atomics ? yyyy-mm-dd yyyy-mm-dd ? yes
Serializer for background compilation ? yyyy-mm-dd yyyy-mm-dd ? yes
Shared heap implementation ? yyyy-mm-dd yyyy-mm-dd ? yes
Shared JS Objects ? yyyy-mm-dd yyyy-mm-dd ? yes
Sharing feedback slots for load / store named property ? yyyy-mm-dd yyyy-mm-dd ? yes
Sharing internalized strings: restart or copy? ? yyyy-mm-dd yyyy-mm-dd ? yes
Showing ScopeInfo details in WinDbgX ? yyyy-mm-dd yyyy-mm-dd ? yes
SIMD values in DevTools ? yyyy-mm-dd yyyy-mm-dd ? yes
Simplifying properties and elements in heap snapshots ? yyyy-mm-dd yyyy-mm-dd ? yes
Single Landing Pad for WebAssembly Trap Handler ? yyyy-mm-dd yyyy-mm-dd ? yes
Sliced string memory reduction ? yyyy-mm-dd yyyy-mm-dd ? yes
Smaller Star bytecode representation ? yyyy-mm-dd yyyy-mm-dd ? yes
Source Hashes in Stack Traces ? yyyy-mm-dd yyyy-mm-dd ? yes
Source Map Revision 3 Proposal ? yyyy-mm-dd yyyy-mm-dd ? yes
Sparkplug ? yyyy-mm-dd yyyy-mm-dd ? yes
Specializing expression parsing using ExpressionScopes ? yyyy-mm-dd yyyy-mm-dd ? yes
Splitting v8.h ? yyyy-mm-dd yyyy-mm-dd ? yes
Static Private Methods ? yyyy-mm-dd yyyy-mm-dd ? yes
Storing the home object in Context instead of JSFunction ? yyyy-mm-dd yyyy-mm-dd ? yes
Storing WebAssembly Modules in IndexedDB ? yyyy-mm-dd yyyy-mm-dd ? yes
String lock-free concurrent reads ? yyyy-mm-dd yyyy-mm-dd ? yes
Support v8 DisplayNames ‘language’ and ‘region’ by JNI ? yyyy-mm-dd yyyy-mm-dd ? yes
Supporting experimental JS shared values in postMessage ? yyyy-mm-dd yyyy-mm-dd ? yes
Spread call performance Design Doc Peter Marshall yyyy-mm-dd 2017-02-27 ? yes
Switching to the central stack in the Wasm-to-JS wrapper ? yyyy-mm-dd yyyy-mm-dd ? yes
TaggedIndex class ? yyyy-mm-dd yyyy-mm-dd ? yes
Tail duplication during code-gen ? yyyy-mm-dd yyyy-mm-dd ? yes
The String.localeCompare Fast Path ? yyyy-mm-dd yyyy-mm-dd ? yes
The V8 deconfuser series ? yyyy-mm-dd yyyy-mm-dd ? yes
Torque Class Definitions for In-Object Properties ? yyyy-mm-dd yyyy-mm-dd ? yes
Torque objects without the codegen ? yyyy-mm-dd yyyy-mm-dd ? yes
Towards C++ Object Layout ? yyyy-mm-dd yyyy-mm-dd ? yes
Trace Event Format ? yyyy-mm-dd yyyy-mm-dd ? yes
Tracking well-formed 2-byte strings ? yyyy-mm-dd yyyy-mm-dd ? yes
TransitionArray thread-safety for concurrent compilation ? yyyy-mm-dd yyyy-mm-dd ? yes
Transitioning Code objects ? yyyy-mm-dd yyyy-mm-dd ? yes
TurboFan Developer Tools Integration Benedikt Meurer, Tobias Tebbi, Yang Guo yyyy-mm-dd 2017-02-21 ? yes
TurboFan Inlining Benedikt Meurer yyyy-mm-dd 2020-11-11 ? yes
TurboFan Inlining Heuristics ? yyyy-mm-dd yyyy-mm-dd ? yes
Turbofan Optimized String Builder ? yyyy-mm-dd yyyy-mm-dd ? yes
TurboFan Redundant Bounds and Overflow Check Elimination Benedikt Meurer yyyy-mm-dd 2016-09-29 ? yes
Turboshaft Late Load Elimination ? yyyy-mm-dd yyyy-mm-dd ? yes
Turboshaft Loop Unrolling ? yyyy-mm-dd yyyy-mm-dd ? yes
Unique object identification in V8/CDP ? yyyy-mm-dd yyyy-mm-dd ? yes
Unsafe slot transitions ? yyyy-mm-dd yyyy-mm-dd ? yes
Use a HashTable in ScopeInfo for local names ? yyyy-mm-dd yyyy-mm-dd ? yes
V8 API for WebAssembly Trap Handler ? yyyy-mm-dd yyyy-mm-dd ? yes
V8 Async function design doc ? yyyy-mm-dd yyyy-mm-dd ? yes
V8 CFI Proposal ? yyyy-mm-dd yyyy-mm-dd ? yes
V8 Debug API (Re)design Document ? yyyy-mm-dd yyyy-mm-dd ? yes
V8 Extras Design Doc ? yyyy-mm-dd yyyy-mm-dd ? yes
V8 Fast API Calls v1 Extended Argument Support ? yyyy-mm-dd yyyy-mm-dd ? yes
V8 GC Parallelization Issues ? yyyy-mm-dd yyyy-mm-dd ? yes
V8 Proposal: DUMP_ON_FAILURE ? yyyy-mm-dd yyyy-mm-dd ? yes
V8 Register allocation ? yyyy-mm-dd yyyy-mm-dd ? yes
V8 Sandbox - Address Space Samuel Groß yyyy-mm-dd yyyy-mm-dd ? yes
V8 Sandbox - Code Pointer Sandboxing Samuel Groß yyyy-mm-dd yyyy-mm-dd ? yes
V8 Sandbox - V8 Sandbox - Glossary Samuel Groß 2023-12-dd 2023-12-dd Living Doc yes
V8 Sandbox - External Pointer Sandboxing Samuel Groß 2022-07-dd 2022-07-dd Living Doc yes
V8 Sandbox - Hardware Support Samuel Groß 2024-02-dd 2024-02-dd Living Doc yes
V8 Sandbox - High-Level Design Doc Samuel Groß yyyy-mm-dd yyyy-mm-dd ? yes
V8 Sandbox - Trusted Space Samuel Groß yyyy-mm-dd yyyy-mm-dd ? yes
V8 Torque Status and Future ? yyyy-mm-dd yyyy-mm-dd ? yes
V8 Tracing ? yyyy-mm-dd yyyy-mm-dd ? yes
V8-local external memory in performance.memory ? yyyy-mm-dd yyyy-mm-dd ? yes
V8: C++ layout FixedArray Leszek Swirski 2024-02-21 2024-02-21 Under review yes
V8: C++ object layout ? yyyy-mm-dd yyyy-mm-dd ? yes
V8’s Object Model Using Well-Defined C++ ? yyyy-mm-dd yyyy-mm-dd ? yes
Wasm Debugging User Stories ? yyyy-mm-dd yyyy-mm-dd ? yes
Wasm values in DevTools (with support for SIMD) ? yyyy-mm-dd yyyy-mm-dd ? yes
WAT-compatible disassembly and consistent naming ? yyyy-mm-dd yyyy-mm-dd ? yes
Web Snapshots 0.1 ? yyyy-mm-dd yyyy-mm-dd ? yes
WebAssembly Debugging - Put Wasm in debuggable state ? yyyy-mm-dd yyyy-mm-dd ? yes
WebAssembly entities in DevTools ? yyyy-mm-dd yyyy-mm-dd ? yes
WebUI & Speculative RFH Creation Problems ? yyyy-mm-dd yyyy-mm-dd ? yes
What should getFunction and getThis return inside ShadowRealms? ? yyyy-mm-dd yyyy-mm-dd ? yes
Worker requestNestedEventLoop 2-pager ? yyyy-mm-dd yyyy-mm-dd ? yes
X64 Constant Pool Proposal Draft ? yyyy-mm-dd yyyy-mm-dd ? yes
“Internationalization Support inTemporal” V8 Design Doc ? yyyy-mm-dd yyyy-mm-dd ? yes