[for-of-performance] Add ForOfNext builting to MayDeopt list [v8/v8 : main]

0 views
Skip to first unread message

Rezvan Mahdavi Hezaveh (Gerrit)

unread,
Sep 23, 2025, 5:52:15 PM (4 days ago) Sep 23
to Leszek Swirski, V8 LUCI CQ, leszek...@chromium.org, v8-re...@googlegroups.com, verwaes...@chromium.org
Attention needed from Leszek Swirski

Rezvan Mahdavi Hezaveh added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Rezvan Mahdavi Hezaveh . resolved

I know you removed the builtin from MayDeopt list in https://chromium-review.googlesource.com/c/v8/v8/+/6964615, but that caused 88 test failures. I think we need to put it back. PTAL, thanks!
P.S: By adding the builtin to this list all 88 test failures got resolved and no new test failure happened.

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: I2fd0d273dd96bb99917e7b7e49d50ce02068bcb4
Gerrit-Change-Number: 6976653
Gerrit-PatchSet: 1
Gerrit-Owner: Rezvan Mahdavi Hezaveh <rez...@chromium.org>
Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
Gerrit-Reviewer: Rezvan Mahdavi Hezaveh <rez...@chromium.org>
Gerrit-Attention: Leszek Swirski <les...@chromium.org>
Gerrit-Comment-Date: Tue, 23 Sep 2025 21:52:11 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Leszek Swirski (Gerrit)

unread,
Sep 24, 2025, 10:43:57 AM (3 days ago) Sep 24
to Rezvan Mahdavi Hezaveh, V8 LUCI CQ, leszek...@chromium.org, v8-re...@googlegroups.com, verwaes...@chromium.org
Attention needed from Rezvan Mahdavi Hezaveh

Leszek Swirski added 1 comment

Patchset-level comments
Rezvan Mahdavi Hezaveh . unresolved

I know you removed the builtin from MayDeopt list in https://chromium-review.googlesource.com/c/v8/v8/+/6964615, but that caused 88 test failures. I think we need to put it back. PTAL, thanks!
P.S: By adding the builtin to this list all 88 test failures got resolved and no new test failure happened.

Leszek Swirski

I think there might be a missing test in that case, where someone sets a breakpoint in a function with for-of while paused inside the next() method of the iterator. Let me take a look at the failures, it might be that our DCHECK here is too eager.

Open in Gerrit

Related details

Attention is currently required from:
  • Rezvan Mahdavi Hezaveh
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: I2fd0d273dd96bb99917e7b7e49d50ce02068bcb4
    Gerrit-Change-Number: 6976653
    Gerrit-PatchSet: 1
    Gerrit-Owner: Rezvan Mahdavi Hezaveh <rez...@chromium.org>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Rezvan Mahdavi Hezaveh <rez...@chromium.org>
    Gerrit-Attention: Rezvan Mahdavi Hezaveh <rez...@chromium.org>
    Gerrit-Comment-Date: Wed, 24 Sep 2025 14:43:51 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Rezvan Mahdavi Hezaveh <rez...@chromium.org>
    unsatisfied_requirement
    open
    diffy

    Leszek Swirski (Gerrit)

    unread,
    Sep 24, 2025, 12:05:10 PM (3 days ago) Sep 24
    to Rezvan Mahdavi Hezaveh, V8 LUCI CQ, leszek...@chromium.org, v8-re...@googlegroups.com, verwaes...@chromium.org
    Attention needed from Rezvan Mahdavi Hezaveh

    Leszek Swirski added 1 comment

    Patchset-level comments
    Rezvan Mahdavi Hezaveh . unresolved

    I know you removed the builtin from MayDeopt list in https://chromium-review.googlesource.com/c/v8/v8/+/6964615, but that caused 88 test failures. I think we need to put it back. PTAL, thanks!
    P.S: By adding the builtin to this list all 88 test failures got resolved and no new test failure happened.

    Leszek Swirski

    I think there might be a missing test in that case, where someone sets a breakpoint in a function with for-of while paused inside the next() method of the iterator. Let me take a look at the failures, it might be that our DCHECK here is too eager.

    Leszek Swirski

    This is actually quite complicated, I'll need to think about it a bit -- the problem is that we _can_ deopt the ForOfNext bytecode (as mentioned, because of a breakpoint), and it will currently have the wrong value in the done/value registers after that deopt, which is what the failing DCHECK is guarding against.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Rezvan Mahdavi Hezaveh
    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: I2fd0d273dd96bb99917e7b7e49d50ce02068bcb4
    Gerrit-Change-Number: 6976653
    Gerrit-PatchSet: 1
    Gerrit-Owner: Rezvan Mahdavi Hezaveh <rez...@chromium.org>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Rezvan Mahdavi Hezaveh <rez...@chromium.org>
    Gerrit-Attention: Rezvan Mahdavi Hezaveh <rez...@chromium.org>
    Gerrit-Comment-Date: Wed, 24 Sep 2025 16:05:04 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Rezvan Mahdavi Hezaveh <rez...@chromium.org>
    Comment-In-Reply-To: Leszek Swirski <les...@chromium.org>
    unsatisfied_requirement
    open
    diffy

    Rezvan Mahdavi Hezaveh (Gerrit)

    unread,
    Sep 25, 2025, 1:58:32 PM (2 days ago) Sep 25
    to Leszek Swirski, V8 LUCI CQ, leszek...@chromium.org, v8-re...@googlegroups.com, verwaes...@chromium.org

    Rezvan Mahdavi Hezaveh abandoned this change

    Related details

    Attention set is empty
    Submit Requirements:
    • 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: abandon
    unsatisfied_requirement
    open
    diffy

    Rezvan Mahdavi Hezaveh (Gerrit)

    unread,
    Sep 25, 2025, 1:58:43 PM (2 days ago) Sep 25
    to Leszek Swirski, V8 LUCI CQ, leszek...@chromium.org, v8-re...@googlegroups.com, verwaes...@chromium.org

    Rezvan Mahdavi Hezaveh added 1 comment

    Patchset-level comments
    Rezvan Mahdavi Hezaveh . resolved

    I know you removed the builtin from MayDeopt list in https://chromium-review.googlesource.com/c/v8/v8/+/6964615, but that caused 88 test failures. I think we need to put it back. PTAL, thanks!
    P.S: By adding the builtin to this list all 88 test failures got resolved and no new test failure happened.

    Leszek Swirski

    I think there might be a missing test in that case, where someone sets a breakpoint in a function with for-of while paused inside the next() method of the iterator. Let me take a look at the failures, it might be that our DCHECK here is too eager.

    Leszek Swirski

    This is actually quite complicated, I'll need to think about it a bit -- the problem is that we _can_ deopt the ForOfNext bytecode (as mentioned, because of a breakpoint), and it will currently have the wrong value in the done/value registers after that deopt, which is what the failing DCHECK is guarding against.

    Rezvan Mahdavi Hezaveh

    Got it! Thanks for digging into this and preparing the other cLs. I am going to abandon this one then.

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • 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: I2fd0d273dd96bb99917e7b7e49d50ce02068bcb4
    Gerrit-Change-Number: 6976653
    Gerrit-PatchSet: 1
    Gerrit-Owner: Rezvan Mahdavi Hezaveh <rez...@chromium.org>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Rezvan Mahdavi Hezaveh <rez...@chromium.org>
    Gerrit-Comment-Date: Thu, 25 Sep 2025 17:58:39 +0000
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages