commit | 0b15565fdaac4e60d9a6fb8e6c7e63780fb9f252 | [log] [tgz] |
---|---|---|
author | Clemens Backes <clemensb@chromium.org> | Fri Feb 21 16:57:25 2025 |
committer | V8 LUCI CQ <v8-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sun Feb 23 22:14:29 2025 |
tree | 08b9bce1df8025c6333a85cacc64f06a7d0713ce | |
parent | 6d7dced8663d1c6d032f9324214228c217188847 [diff] |
[sandbox] Check that GetIsolateForSandbox returns the current sandbox We want to replace all calls to GetIsolateForSandbox via GetCurrentIsolateForSandbox. Before doing that, this CL adds a SBXCHECK to verify that both methods return the same isolate. One exception are shared objects, where we do return a pointer to the main isolate instead. For those cases we do check that the isolates are "compatible" in the sense that they share the same shared pointer table. This is a pretty costly check, but it is not executed in production code and it should soon (maybe after the next branch cut) be removed by replacing all callers of `GetIsolateForSandbox` by `GetCurrentIsolateForSandbox`. R=dinfuehr@chromium.org CC=mlippautz@chromium.org Bug: 396607238, 393402168 Change-Id: I3a5bc983b7e79db157f8dfe5088a327fc2a75e32 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6276459 Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Clemens Backes <clemensb@chromium.org> Reviewed-by: Dominik Inführ <dinfuehr@chromium.org> Cr-Commit-Position: refs/heads/main@{#98872}
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 Google Chrome, 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.