[sparkplug+] Fix handler check in LoadField [v8/v8 : main]

0 views
Skip to first unread message

Xu, Hao A (Gerrit)

unread,
Mar 31, 2026, 5:38:39 AM (6 days ago) Mar 31
to Leszek Swirski, Igor Sheludko, chrom...@appspot.gserviceaccount.com, v8-re...@googlegroups.com
Attention needed from Leszek Swirski

Xu, Hao A added 1 comment

Patchset-level comments
File-level comment, Patchset 5 (Latest):
Xu, Hao A . resolved

PTAL, thanks!

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: I318c452b103774e6fcded29f267b8baf2add70c9
Gerrit-Change-Number: 7714255
Gerrit-PatchSet: 5
Gerrit-Owner: Xu, Hao A <hao....@intel.com>
Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
Gerrit-CC: Igor Sheludko <ish...@chromium.org>
Gerrit-Attention: Leszek Swirski <les...@chromium.org>
Gerrit-Comment-Date: Tue, 31 Mar 2026 09:38:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Xu, Hao A (Gerrit)

unread,
Mar 31, 2026, 5:50:29 AM (6 days ago) Mar 31
to Leszek Swirski, Igor Sheludko, chrom...@appspot.gserviceaccount.com, v8-re...@googlegroups.com
Attention needed from Leszek Swirski

Xu, Hao A added 1 comment

Patchset-level comments
Xu, Hao A . resolved

I'm also wondering if we can start experiment to enable sparkplug-plus' flag to better trace the performance change? We have another CL that might need this flag to be opened: https://chromium-review.googlesource.com/c/v8/v8/+/7714255

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: I318c452b103774e6fcded29f267b8baf2add70c9
Gerrit-Change-Number: 7714255
Gerrit-PatchSet: 5
Gerrit-Owner: Xu, Hao A <hao....@intel.com>
Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
Gerrit-CC: Igor Sheludko <ish...@chromium.org>
Gerrit-Attention: Leszek Swirski <les...@chromium.org>
Gerrit-Comment-Date: Tue, 31 Mar 2026 09:50:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

chromeperf@appspot.gserviceaccount.com (Gerrit)

unread,
Mar 31, 2026, 6:22:53 AM (6 days ago) Mar 31
to Xu, Hao A, Leszek Swirski, Igor Sheludko, v8-re...@googlegroups.com
Attention needed from Leszek Swirski and Xu, Hao A

Message from chrom...@appspot.gserviceaccount.com

📍 Job win-11-perf/speedometer3 complete.

See results at: https://pinpoint-dot-chromeperf.appspot.com/job/13336813090000

Open in Gerrit

Related details

Attention is currently required from:
  • Leszek Swirski
  • Xu, Hao A
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: I318c452b103774e6fcded29f267b8baf2add70c9
Gerrit-Change-Number: 7714255
Gerrit-PatchSet: 5
Gerrit-Owner: Xu, Hao A <hao....@intel.com>
Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
Gerrit-CC: Igor Sheludko <ish...@chromium.org>
Gerrit-Attention: Xu, Hao A <hao....@intel.com>
Gerrit-Attention: Leszek Swirski <les...@chromium.org>
Gerrit-Comment-Date: Tue, 31 Mar 2026 10:22:50 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Leszek Swirski (Gerrit)

unread,
Mar 31, 2026, 6:44:57 AM (6 days ago) Mar 31
to Xu, Hao A, Igor Sheludko, chrom...@appspot.gserviceaccount.com, v8-re...@googlegroups.com
Attention needed from Xu, Hao A

Leszek Swirski added 2 comments

Patchset-level comments
Leszek Swirski . resolved

I'm surprised there's such a small performance impact if we were unconditionally missing on the indexed-field builtins, do you have a theory why this is?

File src/ic/accessor-assembler.cc
Line 3650, Patchset 5 (Latest): DCHECK_EQ(kSmiShiftSize + kSmiTagSize, 1);
Leszek Swirski . unresolved

`static_assert` (assuming that `if (SmiValuesAre31Bits())` can be `if constexpr`)

Open in Gerrit

Related details

Attention is currently required from:
  • Xu, Hao A
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: I318c452b103774e6fcded29f267b8baf2add70c9
    Gerrit-Change-Number: 7714255
    Gerrit-PatchSet: 5
    Gerrit-Owner: Xu, Hao A <hao....@intel.com>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-CC: Igor Sheludko <ish...@chromium.org>
    Gerrit-Attention: Xu, Hao A <hao....@intel.com>
    Gerrit-Comment-Date: Tue, 31 Mar 2026 10:44:53 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Xu, Hao A (Gerrit)

    unread,
    Apr 1, 2026, 1:27:41 AM (5 days ago) Apr 1
    to Leszek Swirski, Igor Sheludko, chrom...@appspot.gserviceaccount.com, v8-re...@googlegroups.com
    Attention needed from Leszek Swirski

    Xu, Hao A added 2 comments

    Patchset-level comments
    File-level comment, Patchset 5:
    Leszek Swirski . unresolved

    I'm surprised there's such a small performance impact if we were unconditionally missing on the indexed-field builtins, do you have a theory why this is?

    Xu, Hao A

    I'm sorry if I confused you with the latest pinpoint test, in which I tried to evaluate the perf impact of avoiding sanitizing the smi receiver. The performance impact of fixing the indexed-field builtins should be 0.3% to Speedometer3:

    https://pinpoint-dot-chromeperf.appspot.com/job/115360d3090000
    https://pinpoint-dot-chromeperf.appspot.com/job/174e0f80890000
    https://pinpoint-dot-chromeperf.appspot.com/job/117cd17f090000

    File src/ic/accessor-assembler.cc
    Line 3650, Patchset 5: DCHECK_EQ(kSmiShiftSize + kSmiTagSize, 1);
    Leszek Swirski . resolved

    `static_assert` (assuming that `if (SmiValuesAre31Bits())` can be `if constexpr`)

    Xu, Hao A

    Done

    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 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: I318c452b103774e6fcded29f267b8baf2add70c9
    Gerrit-Change-Number: 7714255
    Gerrit-PatchSet: 6
    Gerrit-Owner: Xu, Hao A <hao....@intel.com>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-CC: Igor Sheludko <ish...@chromium.org>
    Gerrit-Attention: Leszek Swirski <les...@chromium.org>
    Gerrit-Comment-Date: Wed, 01 Apr 2026 05:27:38 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Leszek Swirski <les...@chromium.org>
    unsatisfied_requirement
    open
    diffy

    Igor Sheludko (Gerrit)

    unread,
    Apr 1, 2026, 5:03:01 AM (5 days ago) Apr 1
    to Xu, Hao A, Leszek Swirski, chrom...@appspot.gserviceaccount.com, v8-re...@googlegroups.com
    Attention needed from Leszek Swirski and Xu, Hao A

    Igor Sheludko added 1 comment

    File src/ic/accessor-assembler.cc
    Line 3665, Patchset 6 (Latest): }
    Igor Sheludko . unresolved

    How about just using `SmiAnd(var_handler.value(), SmiConstant(mask))` which does this optimization for you?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Leszek Swirski
    • Xu, Hao A
    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: I318c452b103774e6fcded29f267b8baf2add70c9
    Gerrit-Change-Number: 7714255
    Gerrit-PatchSet: 6
    Gerrit-Owner: Xu, Hao A <hao....@intel.com>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-CC: Igor Sheludko <ish...@chromium.org>
    Gerrit-Attention: Xu, Hao A <hao....@intel.com>
    Gerrit-Attention: Leszek Swirski <les...@chromium.org>
    Gerrit-Comment-Date: Wed, 01 Apr 2026 09:02:57 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Leszek Swirski (Gerrit)

    unread,
    Apr 1, 2026, 5:08:55 AM (5 days ago) Apr 1
    to Xu, Hao A, Igor Sheludko, chrom...@appspot.gserviceaccount.com, v8-re...@googlegroups.com
    Attention needed from Xu, Hao A

    Leszek Swirski added 1 comment

    Patchset-level comments
    File-level comment, Patchset 5:
    Leszek Swirski . resolved

    I'm surprised there's such a small performance impact if we were unconditionally missing on the indexed-field builtins, do you have a theory why this is?

    Xu, Hao A

    I'm sorry if I confused you with the latest pinpoint test, in which I tried to evaluate the perf impact of avoiding sanitizing the smi receiver. The performance impact of fixing the indexed-field builtins should be 0.3% to Speedometer3:

    https://pinpoint-dot-chromeperf.appspot.com/job/115360d3090000
    https://pinpoint-dot-chromeperf.appspot.com/job/174e0f80890000
    https://pinpoint-dot-chromeperf.appspot.com/job/117cd17f090000

    Leszek Swirski

    That makes sense thanks.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Xu, Hao A
    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: I318c452b103774e6fcded29f267b8baf2add70c9
    Gerrit-Change-Number: 7714255
    Gerrit-PatchSet: 6
    Gerrit-Owner: Xu, Hao A <hao....@intel.com>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-CC: Igor Sheludko <ish...@chromium.org>
    Gerrit-Attention: Xu, Hao A <hao....@intel.com>
    Gerrit-Comment-Date: Wed, 01 Apr 2026 09:08:51 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Xu, Hao A <hao....@intel.com>
    Comment-In-Reply-To: Leszek Swirski <les...@chromium.org>
    unsatisfied_requirement
    open
    diffy

    Xu, Hao A (Gerrit)

    unread,
    Apr 1, 2026, 5:24:02 AM (5 days ago) Apr 1
    to Leszek Swirski, Igor Sheludko, chrom...@appspot.gserviceaccount.com, v8-re...@googlegroups.com
    Attention needed from Igor Sheludko

    Xu, Hao A added 1 comment

    File src/ic/accessor-assembler.cc
    Igor Sheludko . unresolved

    How about just using `SmiAnd(var_handler.value(), SmiConstant(mask))` which does this optimization for you?

    Xu, Hao A

    Actually `var_handler.value()` is not guaranteed to be a smi, so we should check the SmiTagBits as well.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Igor Sheludko
    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: I318c452b103774e6fcded29f267b8baf2add70c9
    Gerrit-Change-Number: 7714255
    Gerrit-PatchSet: 6
    Gerrit-Owner: Xu, Hao A <hao....@intel.com>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-CC: Igor Sheludko <ish...@chromium.org>
    Gerrit-Attention: Igor Sheludko <ish...@chromium.org>
    Gerrit-Comment-Date: Wed, 01 Apr 2026 09:23:59 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Igor Sheludko <ish...@chromium.org>
    unsatisfied_requirement
    open
    diffy

    Igor Sheludko (Gerrit)

    unread,
    Apr 1, 2026, 6:22:29 AM (5 days ago) Apr 1
    to Xu, Hao A, Leszek Swirski, chrom...@appspot.gserviceaccount.com, v8-re...@googlegroups.com
    Attention needed from Xu, Hao A

    Igor Sheludko added 2 comments

    File src/ic/accessor-assembler.cc
    Line 3648, Patchset 6 (Latest): mask = (mask << (kSmiShiftSize + kSmiTagSize)) | kSmiTagMask;
    Igor Sheludko . unresolved

    BTW, this would be 32 for 32-bit smi case and move the mask value out of the int range.

    Igor Sheludko . unresolved

    How about just using `SmiAnd(var_handler.value(), SmiConstant(mask))` which does this optimization for you?

    Xu, Hao A

    Actually `var_handler.value()` is not guaranteed to be a smi, so we should check the SmiTagBits as well.

    Igor Sheludko

    Right, then probabaly SmiAnd is not going to simplify things here.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Xu, Hao A
    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: I318c452b103774e6fcded29f267b8baf2add70c9
    Gerrit-Change-Number: 7714255
    Gerrit-PatchSet: 6
    Gerrit-Owner: Xu, Hao A <hao....@intel.com>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-CC: Igor Sheludko <ish...@chromium.org>
    Gerrit-Attention: Xu, Hao A <hao....@intel.com>
    Gerrit-Comment-Date: Wed, 01 Apr 2026 10:22:25 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Igor Sheludko <ish...@chromium.org>
    unsatisfied_requirement
    open
    diffy

    Xu, Hao A (Gerrit)

    unread,
    Apr 1, 2026, 6:51:00 AM (5 days ago) Apr 1
    to Igor Sheludko, Leszek Swirski, chrom...@appspot.gserviceaccount.com, v8-re...@googlegroups.com
    Attention needed from Igor Sheludko

    Xu, Hao A added 2 comments

    File src/ic/accessor-assembler.cc
    Line 3648, Patchset 6: mask = (mask << (kSmiShiftSize + kSmiTagSize)) | kSmiTagMask;
    Igor Sheludko . resolved

    BTW, this would be 32 for 32-bit smi case and move the mask value out of the int range.

    Xu, Hao A

    Done. Thanks!

    Line 3665, Patchset 6: }
    Igor Sheludko . resolved

    How about just using `SmiAnd(var_handler.value(), SmiConstant(mask))` which does this optimization for you?

    Xu, Hao A

    Actually `var_handler.value()` is not guaranteed to be a smi, so we should check the SmiTagBits as well.

    Igor Sheludko

    Right, then probabaly SmiAnd is not going to simplify things here.

    Xu, Hao A

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Igor Sheludko
    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: I318c452b103774e6fcded29f267b8baf2add70c9
      Gerrit-Change-Number: 7714255
      Gerrit-PatchSet: 7
      Gerrit-Owner: Xu, Hao A <hao....@intel.com>
      Gerrit-Reviewer: Igor Sheludko <ish...@chromium.org>
      Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
      Gerrit-Comment-Date: Wed, 01 Apr 2026 10:50:57 +0000
      unsatisfied_requirement
      open
      diffy

      Igor Sheludko (Gerrit)

      unread,
      Apr 1, 2026, 7:00:55 AM (5 days ago) Apr 1
      to Xu, Hao A, Leszek Swirski, chrom...@appspot.gserviceaccount.com, v8-re...@googlegroups.com
      Attention needed from Xu, Hao A

      Igor Sheludko added 2 comments

      File src/ic/accessor-assembler.cc
      Line 3656, Patchset 7 (Latest): TruncateIntPtrToInt32(BitcastTaggedToWordForTagAndSmiBits(
      SmiConstant(target_handler)))),
      Igor Sheludko . unresolved

      `Int32Constant(static_cast<int32_t>(target_handler.ptr() & mask))`.

      Line 3663, Patchset 7 (Latest): BitcastTaggedToWordForTagAndSmiBits(
      SmiConstant(target_handler))),
      Igor Sheludko . unresolved

      Ditto: `IntPtrConstant( .. & .. )`.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Xu, Hao A
      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: I318c452b103774e6fcded29f267b8baf2add70c9
        Gerrit-Change-Number: 7714255
        Gerrit-PatchSet: 7
        Gerrit-Owner: Xu, Hao A <hao....@intel.com>
        Gerrit-Reviewer: Igor Sheludko <ish...@chromium.org>
        Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
        Gerrit-Attention: Xu, Hao A <hao....@intel.com>
        Gerrit-Comment-Date: Wed, 01 Apr 2026 11:00:51 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        unsatisfied_requirement
        open
        diffy

        Igor Sheludko (Gerrit)

        unread,
        Apr 1, 2026, 7:09:08 AM (5 days ago) Apr 1
        to Xu, Hao A, Leszek Swirski, chrom...@appspot.gserviceaccount.com, v8-re...@googlegroups.com
        Attention needed from Xu, Hao A

        Igor Sheludko added 3 comments

        File src/ic/accessor-assembler.cc
        Line 3640, Patchset 7 (Latest): target_handler =
        Igor Sheludko . unresolved

        While you are here: `Tagged<Smi> target_handler = `.

        Line 3648, Patchset 7 (Latest): mask = (mask << (kSmiShiftSize + kSmiTagSize)) | kSmiTagMask;
        Igor Sheludko . unresolved

        BTW, this way it might be simpler (smi construction is hidden in the function):
        `Address mask = Smi::From31BitPattern(LoadHandler::KindBits::kMask | ...).ptr() | kSmiTagMask;`

        But I'm leaving it up to you.

        Line 3652, Patchset 7 (Latest): ReinterpretCast<Word32T>(var_handler.value());
        Igor Sheludko . unresolved

        `TruncateIntPtrToInt32(BitcastTaggedToWordForTagAndSmiBits(..))`

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Xu, Hao A
        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: I318c452b103774e6fcded29f267b8baf2add70c9
        Gerrit-Change-Number: 7714255
        Gerrit-PatchSet: 7
        Gerrit-Owner: Xu, Hao A <hao....@intel.com>
        Gerrit-Reviewer: Igor Sheludko <ish...@chromium.org>
        Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
        Gerrit-Attention: Xu, Hao A <hao....@intel.com>
        Gerrit-Comment-Date: Wed, 01 Apr 2026 11:09:04 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        unsatisfied_requirement
        open
        diffy

        Xu, Hao A (Gerrit)

        unread,
        Apr 2, 2026, 4:59:24 AM (4 days ago) Apr 2
        to Igor Sheludko, Leszek Swirski, chrom...@appspot.gserviceaccount.com, v8-re...@googlegroups.com
        Attention needed from Igor Sheludko

        Xu, Hao A added 5 comments

        File src/ic/accessor-assembler.cc
        Line 3640, Patchset 7: target_handler =
        Igor Sheludko . resolved

        While you are here: `Tagged<Smi> target_handler = `.

        Xu, Hao A

        Done

        Line 3648, Patchset 7: mask = (mask << (kSmiShiftSize + kSmiTagSize)) | kSmiTagMask;
        Igor Sheludko . resolved

        BTW, this way it might be simpler (smi construction is hidden in the function):
        `Address mask = Smi::From31BitPattern(LoadHandler::KindBits::kMask | ...).ptr() | kSmiTagMask;`

        But I'm leaving it up to you.

        Xu, Hao A

        Done

        Line 3652, Patchset 7: ReinterpretCast<Word32T>(var_handler.value());
        Igor Sheludko . resolved

        `TruncateIntPtrToInt32(BitcastTaggedToWordForTagAndSmiBits(..))`

        Xu, Hao A

        Done

        Line 3656, Patchset 7: TruncateIntPtrToInt32(BitcastTaggedToWordForTagAndSmiBits(
        SmiConstant(target_handler)))),
        Igor Sheludko . resolved

        `Int32Constant(static_cast<int32_t>(target_handler.ptr() & mask))`.

        Xu, Hao A

        Done

        Line 3663, Patchset 7: BitcastTaggedToWordForTagAndSmiBits(
        SmiConstant(target_handler))),
        Igor Sheludko . resolved

        Ditto: `IntPtrConstant( .. & .. )`.

        Xu, Hao A

        Done

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Igor Sheludko
        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: I318c452b103774e6fcded29f267b8baf2add70c9
          Gerrit-Change-Number: 7714255
          Gerrit-PatchSet: 8
          Gerrit-Owner: Xu, Hao A <hao....@intel.com>
          Gerrit-Reviewer: Igor Sheludko <ish...@chromium.org>
          Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
          Gerrit-Attention: Igor Sheludko <ish...@chromium.org>
          Gerrit-Comment-Date: Thu, 02 Apr 2026 08:59:21 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Igor Sheludko <ish...@chromium.org>
          unsatisfied_requirement
          open
          diffy

          Igor Sheludko (Gerrit)

          unread,
          Apr 2, 2026, 5:09:39 AM (4 days ago) Apr 2
          to Xu, Hao A, Leszek Swirski, chrom...@appspot.gserviceaccount.com, v8-re...@googlegroups.com
          Attention needed from Xu, Hao A

          Igor Sheludko voted and added 2 comments

          Votes added by Igor Sheludko

          Code-Review+1

          2 comments

          Patchset-level comments
          File-level comment, Patchset 8 (Latest):
          Igor Sheludko . resolved

          lgtm, thanks! what's the perf impact now?

          Commit Message
          Line 12, Patchset 8 (Latest):Drive-by: avoid sanitizing smi receiver because we don't load its map
          in LoadIC_Field.
          Igor Sheludko . unresolved

          Nit: actually it does load the map, how about this:
          `... because LoadIC_Field already handles smi receiver case.`

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Xu, Hao A
          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: I318c452b103774e6fcded29f267b8baf2add70c9
          Gerrit-Change-Number: 7714255
          Gerrit-PatchSet: 8
          Gerrit-Owner: Xu, Hao A <hao....@intel.com>
          Gerrit-Reviewer: Igor Sheludko <ish...@chromium.org>
          Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
          Gerrit-Attention: Xu, Hao A <hao....@intel.com>
          Gerrit-Comment-Date: Thu, 02 Apr 2026 09:09:35 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Xu, Hao A (Gerrit)

          unread,
          Apr 2, 2026, 5:39:32 AM (4 days ago) Apr 2
          to Igor Sheludko, Leszek Swirski, chrom...@appspot.gserviceaccount.com, v8-re...@googlegroups.com
          Attention needed from Igor Sheludko

          Xu, Hao A added 2 comments

          Patchset-level comments
          Igor Sheludko . resolved

          lgtm, thanks! what's the perf impact now?

          Xu, Hao A

          This CL contributes a +0.3% improvement to speedometer3 on win11-perf bot when sparkplug-plus' flag is enabled. After this fix the landed sparkplug_plus CLs can contribute a +0.6% improvement:
          https://pinpoint-dot-chromeperf.appspot.com/job/17e8cd27090000

          We observed more improvement (>1%) locally after adjusting the PGO profile for sparkplug-plus. And some of our on-going CLs might have few regression without sparkplug-plus' flag enabled(https://chromium-review.googlesource.com/c/v8/v8/+/7699206). So we are also wondering whether it is a good time to start experimenting with enabling the flag before making more change.

          Commit Message
          Line 12, Patchset 8 (Latest):Drive-by: avoid sanitizing smi receiver because we don't load its map
          in LoadIC_Field.
          Igor Sheludko . unresolved

          Nit: actually it does load the map, how about this:
          `... because LoadIC_Field already handles smi receiver case.`

          Xu, Hao A

          I'm not sure if I get your point but when receiver is a smi, the Builtin will directly goes to `Runtime_LoadIC_Miss_FromBaseline`. So in the Builtin we don't try to load the map from a smi receiver.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Igor Sheludko
          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: I318c452b103774e6fcded29f267b8baf2add70c9
          Gerrit-Change-Number: 7714255
          Gerrit-PatchSet: 8
          Gerrit-Owner: Xu, Hao A <hao....@intel.com>
          Gerrit-Reviewer: Igor Sheludko <ish...@chromium.org>
          Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
          Gerrit-Attention: Igor Sheludko <ish...@chromium.org>
          Gerrit-Comment-Date: Thu, 02 Apr 2026 09:39:30 +0000
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Igor Sheludko (Gerrit)

          unread,
          Apr 2, 2026, 5:51:40 AM (4 days ago) Apr 2
          to Xu, Hao A, Leszek Swirski, chrom...@appspot.gserviceaccount.com, v8-re...@googlegroups.com
          Attention needed from Xu, Hao A

          Igor Sheludko added 2 comments

          Patchset-level comments
          Igor Sheludko . resolved

          lgtm, thanks! what's the perf impact now?

          Xu, Hao A

          This CL contributes a +0.3% improvement to speedometer3 on win11-perf bot when sparkplug-plus' flag is enabled. After this fix the landed sparkplug_plus CLs can contribute a +0.6% improvement:
          https://pinpoint-dot-chromeperf.appspot.com/job/17e8cd27090000

          We observed more improvement (>1%) locally after adjusting the PGO profile for sparkplug-plus. And some of our on-going CLs might have few regression without sparkplug-plus' flag enabled(https://chromium-review.googlesource.com/c/v8/v8/+/7699206). So we are also wondering whether it is a good time to start experimenting with enabling the flag before making more change.

          Igor Sheludko

          Nice! I guess you can try to enable it after 14.8 branch point, if it's stable enough.

          Commit Message
          Line 12, Patchset 8 (Latest):Drive-by: avoid sanitizing smi receiver because we don't load its map
          in LoadIC_Field.
          Igor Sheludko . unresolved

          Nit: actually it does load the map, how about this:
          `... because LoadIC_Field already handles smi receiver case.`

          Xu, Hao A

          I'm not sure if I get your point but when receiver is a smi, the Builtin will directly goes to `Runtime_LoadIC_Miss_FromBaseline`. So in the Builtin we don't try to load the map from a smi receiver.

          Igor Sheludko

          That's exactly what I meant, the `AccessorAssembler::LoadIC_Field(..)` does handle smi receiver case by bailing out and thus the receiver sanitation on top of that is not necessary.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Xu, Hao A
          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: I318c452b103774e6fcded29f267b8baf2add70c9
          Gerrit-Change-Number: 7714255
          Gerrit-PatchSet: 8
          Gerrit-Owner: Xu, Hao A <hao....@intel.com>
          Gerrit-Reviewer: Igor Sheludko <ish...@chromium.org>
          Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
          Gerrit-Attention: Xu, Hao A <hao....@intel.com>
          Gerrit-Comment-Date: Thu, 02 Apr 2026 09:51:35 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Igor Sheludko <ish...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Xu, Hao A (Gerrit)

          unread,
          Apr 3, 2026, 1:39:15 AM (3 days ago) Apr 3
          to Igor Sheludko, Leszek Swirski, chrom...@appspot.gserviceaccount.com, v8-re...@googlegroups.com

          Xu, Hao A added 1 comment

          Commit Message
          Line 12, Patchset 8:Drive-by: avoid sanitizing smi receiver because we don't load its map
          in LoadIC_Field.
          Igor Sheludko . resolved

          Nit: actually it does load the map, how about this:
          `... because LoadIC_Field already handles smi receiver case.`

          Xu, Hao A

          I'm not sure if I get your point but when receiver is a smi, the Builtin will directly goes to `Runtime_LoadIC_Miss_FromBaseline`. So in the Builtin we don't try to load the map from a smi receiver.

          Igor Sheludko

          That's exactly what I meant, the `AccessorAssembler::LoadIC_Field(..)` does handle smi receiver case by bailing out and thus the receiver sanitation on top of that is not necessary.

          Xu, Hao A

          I get it, thanks!

          Open in Gerrit

          Related details

          Attention set is empty
          Submit Requirements:
            • requirement satisfiedCode-Owners
            • requirement 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: I318c452b103774e6fcded29f267b8baf2add70c9
            Gerrit-Change-Number: 7714255
            Gerrit-PatchSet: 9
            Gerrit-Owner: Xu, Hao A <hao....@intel.com>
            Gerrit-Reviewer: Igor Sheludko <ish...@chromium.org>
            Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
            Gerrit-Comment-Date: Fri, 03 Apr 2026 05:39:11 +0000
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Xu, Hao A (Gerrit)

            unread,
            Apr 3, 2026, 3:46:28 AM (3 days ago) Apr 3
            to Igor Sheludko, Leszek Swirski, chrom...@appspot.gserviceaccount.com, v8-re...@googlegroups.com

            Xu, Hao A 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: I318c452b103774e6fcded29f267b8baf2add70c9
              Gerrit-Change-Number: 7714255
              Gerrit-PatchSet: 10
              Gerrit-Owner: Xu, Hao A <hao....@intel.com>
              Gerrit-Reviewer: Igor Sheludko <ish...@chromium.org>
              Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
              Gerrit-Reviewer: Xu, Hao A <hao....@intel.com>
              Gerrit-Comment-Date: Fri, 03 Apr 2026 07:46:25 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              open
              diffy
              Reply all
              Reply to author
              Forward
              0 new messages