Skip to content

src,build: configure V8_EMBEDDER_DATA_ARRAY_SIZE - #67755

Open
legendecas wants to merge 3 commits into
nodejs:mainfrom
legendecas:v8-embedder-data-size
Open

legendecas wants to merge 3 commits into
nodejs:mainfrom
legendecas:v8-embedder-data-size

Conversation

@legendecas

Copy link
Copy Markdown
Member

https://chromium-review.googlesource.com/c/v8/v8/+/8518784 introduces V8_EMBEDDER_DATA_ARRAY_SIZE that opt-in static size V8 EmbedderDataArray. Starting V8 16.0, this is a mandatory layout.

At the same time, the growable embedder data array V8 APIs SetEmbedderData, SetEmbedderDataV2, and SetAlignedPointerInEmbedderData are removed in V8 16.0.

The new APIs SetAlignedPointerInEmbedderDataV2 and SetEmbedderDataV3, and V8_EMBEDDER_DATA are introduced in V8 15.8.

This PR contains three commits:

src,build: configure V8_EMBEDDER_DATA_ARRAY_SIZE

Refs: https://issues.chromium.org/issues/570436596

src: migrate to SetAlignedPointerInEmbedderDataV2

V8 16.0 removes Context::SetAlignedPointerInEmbedderData().

Refs: https://crrev.com/c/8687878

src: migrate to SetEmbedderDataV3

V8 16.0 removes Context::SetEmbedderData() and
Context::SetEmbedderDataV2().

Refs: https://crrev.com/c/8687878

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/gyp

@legendecas legendecas changed the title V8 embedder data size src,build: configure V8_EMBEDDER_DATA_ARRAY_SIZE Nov 24, 2026
@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to Node.js builds or CI infrastructure. c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. vm Issues and PRs related to the vm subsystem. labels Nov 24, 2026
@legendecas legendecas added commit-queue-rebase PRs the Commit Queue should land as multiple self-contained commits. dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. dont-land-on-v24.x PRs that should not land on the v24.x-staging branch and should not be released in v24.x. dont-land-on-v26.x PRs that should not land on the v26.x-staging branch and should not be released in v26.x. labels Nov 24, 2026
joyeecheung and others added 2 commits November 24, 2026 11:44
V8 16.0 removes Context::SetAlignedPointerInEmbedderData().

Refs: https://crrev.com/c/8687878
Co-Authored-By: Chengzhong Wu <cwu631@bloomberg.net>
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net>
V8 16.0 removes Context::SetEmbedderData() and
Context::SetEmbedderDataV2().

Refs: https://crrev.com/c/8687878
Co-Authored-By: Chengzhong Wu <cwu631@bloomberg.net>
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net>
@legendecas
legendecas force-pushed the v8-embedder-data-size branch from 48b9eac to dee438b Compare November 24, 2026 16:44
@legendecas legendecas added the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Nov 24, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Nov 24, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.54%. Comparing base (a055d9f) to head (dee438b).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #67755      +/-   ##
==========================================
+ Coverage   90.52%   90.54%   +0.01%     
==========================================
  Files         803      803              
  Lines      285110   285115       +5     
  Branches    55037    55028       -9     
==========================================
+ Hits       258101   258159      +58     
+ Misses      17143    17099      -44     
+ Partials     9866     9857       -9     
Files with missing lines Coverage Δ
src/api/environment.cc 79.82% <100.00%> (+0.29%) ⬆️
src/env.cc 84.33% <100.00%> (+0.12%) ⬆️
src/node_context_data.h 85.71% <100.00%> (ø)
src/node_contextify.cc 81.68% <100.00%> (ø)

... and 35 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Issues and PRs related to Node.js builds or CI infrastructure. c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue-rebase PRs the Commit Queue should land as multiple self-contained commits. dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. dont-land-on-v24.x PRs that should not land on the v24.x-staging branch and should not be released in v24.x. dont-land-on-v26.x PRs that should not land on the v26.x-staging branch and should not be released in v26.x. needs-ci PRs that need a full CI run. vm Issues and PRs related to the vm subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants