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}
7 files changed
tree: ed880ebc063538405b2566e55c9b3d76c71ae1fa
  1. .github/
  2. agents/
  3. bazel/
  4. build_overrides/
  5. custom_deps/
  6. docs/
  7. experimental/
  8. gni/
  9. include/
  10. infra/
  11. samples/
  12. src/
  13. test/
  14. testing/
  15. third_party/
  16. tools/
  17. .bazelrc
  18. .clang-format
  19. .clang-tidy
  20. .editorconfig
  21. .flake8
  22. .git-blame-ignore-revs
  23. .gitattributes
  24. .gitignore
  25. .gn
  26. .mailmap
  27. .style.yapf
  28. .ycm_extra_conf.py
  29. AUTHORS
  30. BUILD.bazel
  31. BUILD.gn
  32. CODE_OF_CONDUCT.md
  33. codereview.settings
  34. COMMON_OWNERS
  35. DEPS
  36. DIR_METADATA
  37. ENG_REVIEW_OWNERS
  38. INFRA_OWNERS
  39. INTL_OWNERS
  40. LICENSE
  41. LICENSE.fdlibm
  42. LICENSE.strongtalk
  43. LICENSE.v8
  44. LOONG_OWNERS
  45. MIPS_OWNERS
  46. MODULE.bazel
  47. OWNERS
  48. PPC_OWNERS
  49. PRESUBMIT.py
  50. pyrightconfig.json
  51. README.md
  52. RISCV_OWNERS
  53. S390_OWNERS
  54. SECURITY.md
  55. vpython.toml
  56. vpython.toml.uv.lock
  57. WATCHLISTS
README.md

V8 JavaScript Engine

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

Getting the Code

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/*

Contributing

Please follow the instructions mentioned at v8.dev/docs/contribute.