cppgc: Avoid initializing cppgc platform through V8

Embedders may use cppgc (or v8::CppHeap) earlier than V8's Isolate and
platform are initialized. Require explicit initialization of cppgc to
avoid recurring init calls with potentially conflicting parameters.

Bug: chromium:1056170
Change-Id: I613452954b322c9a5bf074eefd25107b4579958c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2682648
Reviewed-by: Omer Katz <omerkatz@chromium.org>
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#72573}
9 files changed
tree: 9005df364b39a0e5043fd487d91b1fd6f2c65722
  1. .clang-format
  2. .clang-tidy
  3. .editorconfig
  4. .flake8
  5. .git-blame-ignore-revs
  6. .gitattributes
  7. .github/
  8. .gitignore
  9. .gn
  10. .vpython
  11. .ycm_extra_conf.py
  12. AUTHORS
  13. BUILD.gn
  14. CODE_OF_CONDUCT.md
  15. COMMON_OWNERS
  16. DEPS
  17. DIR_METADATA
  18. ENG_REVIEW_OWNERS
  19. INFRA_OWNERS
  20. INTL_OWNERS
  21. LICENSE
  22. LICENSE.fdlibm
  23. LICENSE.strongtalk
  24. LICENSE.v8
  25. MIPS_OWNERS
  26. OWNERS
  27. PPC_OWNERS
  28. PRESUBMIT.py
  29. README.md
  30. S390_OWNERS
  31. WATCHLISTS
  32. build_overrides/
  33. codereview.settings
  34. custom_deps/
  35. docs/
  36. gni/
  37. include/
  38. infra/
  39. samples/
  40. src/
  41. test/
  42. testing/
  43. third_party/
  44. tools/
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 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

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.