[api] Implement [[HostDefined]] for Synthetic Module Records [v8/v8 : main]

0 views
Skip to first unread message

Olivier Flückiger (Gerrit)

unread,
Jun 9, 2026, 10:12:34 AM (2 days ago) Jun 9
to Camillo Bruni, v8-s...@luci-project-accounts.iam.gserviceaccount.com, Hannes Payer, cbruni...@chromium.org, mlippau...@chromium.org, v8-re...@googlegroups.com
Attention needed from Camillo Bruni

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • Camillo Bruni
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I9100bbddcabcb46f5d5a7bfd4a28abc1df6e71eb
Gerrit-Change-Number: 7912769
Gerrit-PatchSet: 5
Gerrit-Owner: Olivier Flückiger <ol...@chromium.org>
Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
Gerrit-Reviewer: Olivier Flückiger <ol...@chromium.org>
Gerrit-CC: Hannes Payer <hpa...@chromium.org>
Gerrit-Attention: Camillo Bruni <cbr...@chromium.org>
Gerrit-Comment-Date: Tue, 09 Jun 2026 14:12:31 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Olivier Flückiger (Gerrit)

unread,
Jun 9, 2026, 10:13:28 AM (2 days ago) Jun 9
to Camillo Bruni, v8-s...@luci-project-accounts.iam.gserviceaccount.com, Hannes Payer, cbruni...@chromium.org, mlippau...@chromium.org, v8-re...@googlegroups.com
Attention needed from Camillo Bruni

Olivier Flückiger added 1 comment

Patchset-level comments
Open in Gerrit

Related details

Attention is currently required from:
  • Camillo Bruni
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I9100bbddcabcb46f5d5a7bfd4a28abc1df6e71eb
Gerrit-Change-Number: 7912769
Gerrit-PatchSet: 5
Gerrit-Owner: Olivier Flückiger <ol...@chromium.org>
Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
Gerrit-Reviewer: Olivier Flückiger <ol...@chromium.org>
Gerrit-CC: Hannes Payer <hpa...@chromium.org>
Gerrit-Attention: Camillo Bruni <cbr...@chromium.org>
Gerrit-Comment-Date: Tue, 09 Jun 2026 14:13:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Camillo Bruni (Gerrit)

unread,
Jun 10, 2026, 10:04:07 AM (19 hours ago) Jun 10
to Olivier Flückiger, v8-s...@luci-project-accounts.iam.gserviceaccount.com, Hannes Payer, cbruni...@chromium.org, mlippau...@chromium.org, v8-re...@googlegroups.com
Attention needed from Olivier Flückiger

Camillo Bruni voted and added 2 comments

Votes added by Camillo Bruni

Code-Review+1

2 comments

File include/v8-script.h
Line 371, Patchset 5 (Latest): * the host defined options from the ScriptOrigin for SourceTextModules.
Camillo Bruni . resolved

if I remember ScriptOrigin is the wrong source for this (since it should be context allocated for scripts / adn probably module record allocated for )SourceTextModules. but fine as it the status quo.

File src/api/api.cc
Line 2523, Patchset 5 (Latest): i::Cast<i::SourceTextModule>(self)->GetScript()->host_defined_options(),
Camillo Bruni . unresolved

nit: maybe this could be a getter on SourceTextModule for now, so we don't have a explicit dependency on i::Script here

Open in Gerrit

Related details

Attention is currently required from:
  • Olivier Flückiger
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I9100bbddcabcb46f5d5a7bfd4a28abc1df6e71eb
Gerrit-Change-Number: 7912769
Gerrit-PatchSet: 5
Gerrit-Owner: Olivier Flückiger <ol...@chromium.org>
Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
Gerrit-Reviewer: Olivier Flückiger <ol...@chromium.org>
Gerrit-CC: Hannes Payer <hpa...@chromium.org>
Gerrit-Attention: Olivier Flückiger <ol...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Jun 2026 14:04:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Camillo Bruni (Gerrit)

unread,
Jun 10, 2026, 10:04:07 AM (19 hours ago) Jun 10
to Olivier Flückiger, v8-s...@luci-project-accounts.iam.gserviceaccount.com, Hannes Payer, cbruni...@chromium.org, mlippau...@chromium.org, v8-re...@googlegroups.com
Attention needed from Olivier Flückiger

Camillo Bruni voted Code-Review+0

Code-Review+0
Open in Gerrit

Related details

Attention is currently required from:
  • Olivier Flückiger
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I9100bbddcabcb46f5d5a7bfd4a28abc1df6e71eb
Gerrit-Change-Number: 7912769
Gerrit-PatchSet: 5
Gerrit-Owner: Olivier Flückiger <ol...@chromium.org>
Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
Gerrit-Reviewer: Olivier Flückiger <ol...@chromium.org>
Gerrit-CC: Hannes Payer <hpa...@chromium.org>
Gerrit-Attention: Olivier Flückiger <ol...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Jun 2026 14:04:03 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
unsatisfied_requirement
open
diffy

Olivier Flückiger (Gerrit)

unread,
Jun 10, 2026, 10:35:33 AM (19 hours ago) Jun 10
to Camillo Bruni, v8-s...@luci-project-accounts.iam.gserviceaccount.com, Hannes Payer, cbruni...@chromium.org, mlippau...@chromium.org, v8-re...@googlegroups.com
Attention needed from Camillo Bruni

Olivier Flückiger voted and added 3 comments

Votes added by Olivier Flückiger

Auto-Submit+1
Commit-Queue+1

3 comments

Patchset-level comments
File-level comment, Patchset 6 (Latest):
Olivier Flückiger . resolved

as discussed offline, now only for synthetic modules to avoid future issues.

ptal again.

File include/v8-script.h
Line 371, Patchset 5: * the host defined options from the ScriptOrigin for SourceTextModules.
Camillo Bruni . resolved

if I remember ScriptOrigin is the wrong source for this (since it should be context allocated for scripts / adn probably module record allocated for )SourceTextModules. but fine as it the status quo.

Olivier Flückiger

Ok, let's entirely avoid this future problem by only exposing the host defined options for synthetic modules.

File src/api/api.cc
Line 2523, Patchset 5: i::Cast<i::SourceTextModule>(self)->GetScript()->host_defined_options(),
Camillo Bruni . resolved

nit: maybe this could be a getter on SourceTextModule for now, so we don't have a explicit dependency on i::Script here

Olivier Flückiger

Marked as resolved.

Open in Gerrit

Related details

Attention is currently required from:
  • Camillo Bruni
Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I9100bbddcabcb46f5d5a7bfd4a28abc1df6e71eb
    Gerrit-Change-Number: 7912769
    Gerrit-PatchSet: 6
    Gerrit-Owner: Olivier Flückiger <ol...@chromium.org>
    Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
    Gerrit-Reviewer: Olivier Flückiger <ol...@chromium.org>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    Gerrit-Attention: Camillo Bruni <cbr...@chromium.org>
    Gerrit-Comment-Date: Wed, 10 Jun 2026 14:35:29 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Camillo Bruni <cbr...@chromium.org>
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages