[cleanup] Delete some useless code [v8/v8 : main]

0 views
Skip to first unread message

Pan, Tao (Gerrit)

unread,
Mar 10, 2026, 3:31:58 AMMar 10
to Olivier Flückiger, V8 LUCI CQ, v8-re...@googlegroups.com
Attention needed from Olivier Flückiger

Pan, Tao voted and added 1 comment

Votes added by Pan, Tao

Commit-Queue+1

1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Pan, Tao . resolved

Could you please help to review this CL?

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 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: I4a1707460413dad78a9009e221db2bc4f84ec7f9
Gerrit-Change-Number: 7650975
Gerrit-PatchSet: 1
Gerrit-Owner: Pan, Tao <tao...@intel.com>
Gerrit-Reviewer: Olivier Flückiger <ol...@chromium.org>
Gerrit-Reviewer: Pan, Tao <tao...@intel.com>
Gerrit-Attention: Olivier Flückiger <ol...@chromium.org>
Gerrit-Comment-Date: Tue, 10 Mar 2026 07:31:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
unsatisfied_requirement
open
diffy

Olivier Flückiger (Gerrit)

unread,
Mar 10, 2026, 11:18:28 AMMar 10
to Pan, Tao, V8 LUCI CQ, v8-re...@googlegroups.com
Attention needed from Pan, Tao

Olivier Flückiger added 1 comment

File src/deoptimizer/deoptimizer.cc
Line 1782, Patchset 1 (Parent): if (IsJSFunction(function_)) {
Olivier Flückiger . unresolved

afaik this is for wasm deopts.

Open in Gerrit

Related details

Attention is currently required from:
  • Pan, Tao
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: I4a1707460413dad78a9009e221db2bc4f84ec7f9
    Gerrit-Change-Number: 7650975
    Gerrit-PatchSet: 1
    Gerrit-Owner: Pan, Tao <tao...@intel.com>
    Gerrit-Reviewer: Olivier Flückiger <ol...@chromium.org>
    Gerrit-Reviewer: Pan, Tao <tao...@intel.com>
    Gerrit-Attention: Pan, Tao <tao...@intel.com>
    Gerrit-Comment-Date: Tue, 10 Mar 2026 15:18:25 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Pan, Tao (Gerrit)

    unread,
    Mar 10, 2026, 9:45:48 PMMar 10
    to Olivier Flückiger, V8 LUCI CQ, v8-re...@googlegroups.com
    Attention needed from Olivier Flückiger

    Pan, Tao added 1 comment

    File src/deoptimizer/deoptimizer.cc
    Line 1782, Patchset 1 (Parent): if (IsJSFunction(function_)) {
    Olivier Flückiger . unresolved

    afaik this is for wasm deopts.

    Pan, Tao

    I'm sorry, I don't understand. I think IsJSFunction(functions_) always returns true because "Tagged<JSFunction>function_;". Is there any difference in wasm deopts?

    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: I4a1707460413dad78a9009e221db2bc4f84ec7f9
    Gerrit-Change-Number: 7650975
    Gerrit-PatchSet: 2
    Gerrit-Owner: Pan, Tao <tao...@intel.com>
    Gerrit-Reviewer: Olivier Flückiger <ol...@chromium.org>
    Gerrit-Reviewer: Pan, Tao <tao...@intel.com>
    Gerrit-Attention: Olivier Flückiger <ol...@chromium.org>
    Gerrit-Comment-Date: Wed, 11 Mar 2026 01:45:44 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Olivier Flückiger <ol...@chromium.org>
    unsatisfied_requirement
    open
    diffy

    Olivier Flückiger (Gerrit)

    unread,
    Mar 11, 2026, 10:44:33 AMMar 11
    to Pan, Tao, V8 LUCI CQ, v8-re...@googlegroups.com
    Attention needed from Pan, Tao

    Olivier Flückiger added 1 comment

    File src/deoptimizer/deoptimizer.cc
    Line 1782, Patchset 1 (Parent): if (IsJSFunction(function_)) {
    Olivier Flückiger . unresolved

    afaik this is for wasm deopts.

    Pan, Tao

    I'm sorry, I don't understand. I think IsJSFunction(functions_) always returns true because "Tagged<JSFunction>function_;". Is there any difference in wasm deopts?

    Olivier Flückiger

    I think in wasm deopts the function is null

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Pan, Tao
    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: I4a1707460413dad78a9009e221db2bc4f84ec7f9
    Gerrit-Change-Number: 7650975
    Gerrit-PatchSet: 2
    Gerrit-Owner: Pan, Tao <tao...@intel.com>
    Gerrit-Reviewer: Olivier Flückiger <ol...@chromium.org>
    Gerrit-Reviewer: Pan, Tao <tao...@intel.com>
    Gerrit-Attention: Pan, Tao <tao...@intel.com>
    Gerrit-Comment-Date: Wed, 11 Mar 2026 14:44:30 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Pan, Tao <tao...@intel.com>
    Comment-In-Reply-To: Olivier Flückiger <ol...@chromium.org>
    unsatisfied_requirement
    open
    diffy

    Pan, Tao (Gerrit)

    unread,
    Mar 11, 2026, 8:55:51 PMMar 11
    to Olivier Flückiger, V8 LUCI CQ, v8-re...@googlegroups.com
    Attention needed from Olivier Flückiger

    Pan, Tao added 1 comment

    File src/deoptimizer/deoptimizer.cc
    Line 1782, Patchset 1 (Parent): if (IsJSFunction(function_)) {
    Olivier Flückiger . unresolved

    afaik this is for wasm deopts.

    Pan, Tao

    I'm sorry, I don't understand. I think IsJSFunction(functions_) always returns true because "Tagged<JSFunction>function_;". Is there any difference in wasm deopts?

    Olivier Flückiger

    I think in wasm deopts the function is null

    Pan, Tao

    I think IsJSFunction(function_) will crash if function_ is null. If function_ is null in wasm deopts, it will not execute here because it returns early (https://source.chromium.org/chromium/chromium/src/+/main:v8/src/deoptimizer/deoptimizer.cc;drc=8dccd0f3594bed10325f5199065f8f60154df4e9;l=1594). What do you think of replacing ```if (IsJSFunction(function_)``` to ```DCHECK(!function_.is_null())```?

    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: I4a1707460413dad78a9009e221db2bc4f84ec7f9
    Gerrit-Change-Number: 7650975
    Gerrit-PatchSet: 2
    Gerrit-Owner: Pan, Tao <tao...@intel.com>
    Gerrit-Reviewer: Olivier Flückiger <ol...@chromium.org>
    Gerrit-Reviewer: Pan, Tao <tao...@intel.com>
    Gerrit-Attention: Olivier Flückiger <ol...@chromium.org>
    Gerrit-Comment-Date: Thu, 12 Mar 2026 00:55:48 +0000
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages