[snapshot] Reset pending reference state at trusted section A corrupted untrusted section can end with pending reference state, e.g. a weak prefix that no reference consumes, or unresolved forward refs. This state used to leak into the trusted section, where the startup and shared heap deserializers immediately write root slots, so a stray weak prefix could put a weak pointer into the roots table or the shared heap object cache. Reset this state when switching to the trusted section, like we already do for back references. TAG=agy CONV=6cd7c82c-fcf5-401a-b286-ef139e5b8b3a Bug: 564863360 Change-Id: I15d6b213f9c90afa9ad7424862e8115bf24d1c0f Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8871054 Reviewed-by: Arash Kazemi <arashk@chromium.org> Commit-Queue: Leszek Swirski <leszeks@chromium.org> Cr-Commit-Position: refs/heads/main@{#112728}
V8 is Google's open source JavaScript engine.
V8 implements ECMAScript as specified in ECMA-262.
V8 is written in C++ and is used in Chromium, the open source browser from Google.
V8 can run standalone, or can be embedded into any C++ application.
V8 Project page: https://v8.dev/docs
Checkout depot tools, and run
fetch v8
This will checkout V8 into the directory v8 and fetch all of its dependencies. To stay up to date, run
git pull origin
gclient sync
For fetching all branches, add the following into your remote configuration in .git/config:
fetch = +refs/branch-heads/*:refs/remotes/branch-heads/*
fetch = +refs/tags/*:refs/tags/*
Please follow the instructions mentioned at v8.dev/docs/contribute.