Revert "[snapshot][sandbox] Serialize all trusted objects in the trusted section" This reverts commit e98525ded149d1971ee65a64621e0dc58ae55868. Reason for revert: failed on v8-linux64-css-debug and tree closure Failure Link: https://ci.chromium.org/ui/p/v8/builders/ci/V8%20Linux64%20css%20-%20debug/19345/overview Original change's description: > [snapshot][sandbox] Serialize all trusted objects in the trusted section > > This CL moves all serializable exposed trusted objects (UncompiledData, > BytecodeArray) to the trusted section along with trusted objects > referenced from them (TrustedByteArray, TrustedFixedArray). Untrusted > references to them are emitted as kTrustedExportRef and patched once the > trusted section has been read. Trusted to untrusted references into the > sandbox are emitted as kUntrustedRef, appending the target to the > untrusted section if needed. > > The raw job pointer of UncompiledData*WithJob is now zeroed in > OutputRawData instead of being temporarily cleared on the heap object > during serialization. > > TAG=agy > > Bug: 564863360 > Change-Id: I0e58341717431b9024c10c13b61e3ef876f7f47d > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8501822 > Reviewed-by: Leszek Swirski <leszeks@chromium.org> > Commit-Queue: Arash Kazemi <arashk@chromium.org> > Cr-Commit-Position: refs/heads/main@{#110721} Bug: 564863360 No-Presubmit: true No-Tree-Checks: true No-Try: true Change-Id: Ia42efbdaab8cea14844422a2ce967f2f467cc4c6 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8581506 Owners-Override: Rezvan Mahdavi Hezaveh <rezvan@chromium.org> Reviewed-by: Ryan Diaz <ryandiaz@chromium.org> Auto-Submit: Rezvan Mahdavi Hezaveh <rezvan@chromium.org> Reviewed-by: Rezvan Mahdavi Hezaveh <rezvan@chromium.org> Commit-Queue: Rezvan Mahdavi Hezaveh <rezvan@chromium.org> Cr-Commit-Position: refs/heads/main@{#110742}
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.