[turbolev] Fix crash in Float64SpeculateSafeAdd truncation [v8/v8 : main]

0 views
Skip to first unread message

Victor Gomes (Gerrit)

unread,
4:50 AM (4 hours ago) 4:50 AM
to Marja Hölttä, dmercadi...@chromium.org, leszek...@chromium.org, v8-re...@googlegroups.com, verwaes...@chromium.org, victorgo...@chromium.org
Attention needed from Marja Hölttä

Victor Gomes voted and added 1 comment

Votes added by Victor Gomes

Auto-Submit+1
Commit-Queue+1

1 comment

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Victor Gomes . resolved

PTAL!

Open in Gerrit

Related details

Attention is currently required from:
  • Marja Hölttä
Submit Requirements:
  • requirement 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: Ide3061148b436257d80f3ca7ce7b0e73dc5c9cef
Gerrit-Change-Number: 7602912
Gerrit-PatchSet: 2
Gerrit-Owner: Victor Gomes <victo...@chromium.org>
Gerrit-Reviewer: Marja Hölttä <ma...@chromium.org>
Gerrit-Reviewer: Victor Gomes <victo...@chromium.org>
Gerrit-Attention: Marja Hölttä <ma...@chromium.org>
Gerrit-Comment-Date: Tue, 24 Feb 2026 09:50:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Marja Hölttä (Gerrit)

unread,
4:58 AM (4 hours ago) 4:58 AM
to Victor Gomes, V8 LUCI CQ, dmercadi...@chromium.org, leszek...@chromium.org, v8-re...@googlegroups.com, verwaes...@chromium.org, victorgo...@chromium.org
Attention needed from Victor Gomes

Marja Hölttä voted

Code-Review+1
Commit-Queue+2
Open in Gerrit

Related details

Attention is currently required from:
  • Victor Gomes
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: Ide3061148b436257d80f3ca7ce7b0e73dc5c9cef
Gerrit-Change-Number: 7602912
Gerrit-PatchSet: 2
Gerrit-Owner: Victor Gomes <victo...@chromium.org>
Gerrit-Reviewer: Marja Hölttä <ma...@chromium.org>
Gerrit-Reviewer: Victor Gomes <victo...@chromium.org>
Gerrit-Attention: Victor Gomes <victo...@chromium.org>
Gerrit-Comment-Date: Tue, 24 Feb 2026 09:58:40 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

V8 LUCI CQ (Gerrit)

unread,
5:27 AM (4 hours ago) 5:27 AM
to Victor Gomes, Marja Hölttä, dmercadi...@chromium.org, leszek...@chromium.org, v8-re...@googlegroups.com, verwaes...@chromium.org, victorgo...@chromium.org

V8 LUCI CQ submitted the change

Change information

Commit message:
[turbolev] Fix crash in Float64SpeculateSafeAdd truncation

`ProcessFloat64SpeculateSafeAdd` previously allowed speculation if at
least one input was a safe integer or a Phi node. This logic was too
permissive, as it allowed the other input to be an unsafe
`Float64Constant` (such as `NaN`).

When `TruncationProcessor::GetSpeculatedTruncatedInt32Input`
subsequently processed this unsafe constant, it triggered a
`DCHECK(input->GetStaticRange().IsSafeInt())` failure, as `NaN` cannot
be represented as a safe integer.

This CL fixes the issue by explicitly checking for "unsafe constants"
(Float64Constants that are not safe integers) in
`ProcessFloat64SpeculateSafeAdd`. If either input is an unsafe constant,
we bail out of the speculation and overwrite the node with a standard
`Float64Add`.
Fixed: 485535276
Change-Id: Ide3061148b436257d80f3ca7ce7b0e73dc5c9cef
Auto-Submit: Victor Gomes <victo...@chromium.org>
Reviewed-by: Marja Hölttä <ma...@chromium.org>
Commit-Queue: Marja Hölttä <ma...@chromium.org>
Commit-Queue: Victor Gomes <victo...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#105405}
Files:
  • M src/maglev/maglev-truncation.h
  • A test/mjsunit/turbolev/regress-485535276.js
Change size: S
Delta: 2 files changed, 34 insertions(+), 1 deletion(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Marja Hölttä
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: Ide3061148b436257d80f3ca7ce7b0e73dc5c9cef
Gerrit-Change-Number: 7602912
Gerrit-PatchSet: 3
Gerrit-Owner: Victor Gomes <victo...@chromium.org>
Gerrit-Reviewer: Marja Hölttä <ma...@chromium.org>
Gerrit-Reviewer: Victor Gomes <victo...@chromium.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages