[tagged] Port SwissNameDictionary and SmallOrderedHash* to HeapObjectLayout [v8/v8 : main]

0 views
Skip to first unread message

Jakob Linke (Gerrit)

unread,
11:56 AM (8 hours ago) 11:56 AM
to Leszek Swirski, v8-s...@luci-project-accounts.iam.gserviceaccount.com, v8-re...@googlegroups.com
Attention needed from Leszek Swirski

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • Leszek Swirski
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: Id138438db1b11ce655c51103b4db9508154d1fed
Gerrit-Change-Number: 7800234
Gerrit-PatchSet: 1
Gerrit-Owner: Jakob Linke <jgr...@chromium.org>
Gerrit-Reviewer: Jakob Linke <jgr...@chromium.org>
Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
Gerrit-Attention: Leszek Swirski <les...@chromium.org>
Gerrit-Comment-Date: Tue, 28 Apr 2026 15:56:37 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Leszek Swirski (Gerrit)

unread,
12:05 PM (8 hours ago) 12:05 PM
to Jakob Linke, v8-s...@luci-project-accounts.iam.gserviceaccount.com, v8-re...@googlegroups.com
Attention needed from Jakob Linke

Leszek Swirski voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Jakob Linke
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • 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: Id138438db1b11ce655c51103b4db9508154d1fed
Gerrit-Change-Number: 7800234
Gerrit-PatchSet: 1
Gerrit-Owner: Jakob Linke <jgr...@chromium.org>
Gerrit-Reviewer: Jakob Linke <jgr...@chromium.org>
Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
Gerrit-Attention: Jakob Linke <jgr...@chromium.org>
Gerrit-Comment-Date: Tue, 28 Apr 2026 16:05:37 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Jakob Linke (Gerrit)

unread,
12:28 PM (7 hours ago) 12:28 PM
to Leszek Swirski, v8-s...@luci-project-accounts.iam.gserviceaccount.com, v8-re...@googlegroups.com

Jakob Linke voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • 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: Id138438db1b11ce655c51103b4db9508154d1fed
Gerrit-Change-Number: 7800234
Gerrit-PatchSet: 1
Gerrit-Owner: Jakob Linke <jgr...@chromium.org>
Gerrit-Reviewer: Jakob Linke <jgr...@chromium.org>
Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
Gerrit-Comment-Date: Tue, 28 Apr 2026 16:28:54 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

v8-scoped@luci-project-accounts.iam.gserviceaccount.com (Gerrit)

unread,
12:30 PM (7 hours ago) 12:30 PM
to Jakob Linke, Leszek Swirski, v8-re...@googlegroups.com

v8-s...@luci-project-accounts.iam.gserviceaccount.com submitted the change

Change information

Commit message:
[tagged] Port SwissNameDictionary and SmallOrderedHash* to HeapObjectLayout

Convert the C++ classes to V8_OBJECT/HeapObjectLayout and flip the
.tq side from @doNotGenerateCppClass to @cppObjectLayoutDefinition,
using real members + a FLEXIBLE_ARRAY_MEMBER for the asserts to bind
to (the trailing ctrl/property-details/hash/chain sections still go
through offset arithmetic, since FAM models only one variable tail).

The CRTP base SmallOrderedHashTable<Derived> can't sit at a stable
sizeof() without arguments, so split it: a non-template
SmallOrderedHashTable empty-layout class becomes the public-facing
type, and the CRTP impl moves to SmallOrderedHashTableImpl<Derived>.
The Derived-independent constants (kMinCapacity, kMaxCapacity,
kNotFound, kLoadFactor, kGrowthHack) move down to the non-template
class so the .tq references resolve as plain
SmallOrderedHashTable::kFoo (no more <int> dummy).

Drive-by torque fix: the offset emitter reported size 0 for any
indexed field, including constant-indexed ones. Compute literal-
indexed sizes as N * element_size so e.g. padding[1] / padding[5]
generate correct asserts. Variable-indexed fields and named-constant
indexes still report 0 (same as before).
Bug: 42202654
Change-Id: Id138438db1b11ce655c51103b4db9508154d1fed
Commit-Queue: Jakob Linke <jgr...@chromium.org>
Reviewed-by: Leszek Swirski <les...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#106898}
Files:
  • M src/diagnostics/objects-debug.cc
  • M src/objects/objects-body-descriptors-inl.h
  • M src/objects/ordered-hash-table-inl.h
  • M src/objects/ordered-hash-table.cc
  • M src/objects/ordered-hash-table.h
  • M src/objects/ordered-hash-table.tq
  • M src/objects/swiss-name-dictionary-inl.h
  • M src/objects/swiss-name-dictionary.h
  • M src/objects/swiss-name-dictionary.tq
  • M src/torque/implementation-visitor.cc
Change size: L
Delta: 10 files changed, 214 insertions(+), 170 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Leszek Swirski
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: Id138438db1b11ce655c51103b4db9508154d1fed
Gerrit-Change-Number: 7800234
Gerrit-PatchSet: 2
Gerrit-Owner: Jakob Linke <jgr...@chromium.org>
Gerrit-Reviewer: Jakob Linke <jgr...@chromium.org>
Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
open
diffy
satisfied_requirement

Francis McCabe (Gerrit)

unread,
2:09 PM (6 hours ago) 2:09 PM
to Jakob Linke, v8-s...@luci-project-accounts.iam.gserviceaccount.com, Leszek Swirski, v8-re...@googlegroups.com

Francis McCabe has created a revert of this change

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: revert
satisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages