Skip to content

Commit f784b0b

Browse files
nico-hartmannV8 LUCI CQ
authored andcommitted
[turbofan] Handle Type::None() in SameValue
Bug: chromium:351865302 Change-Id: Ibab11d8a68fe7c55113abf31c090fd66b3ff0542 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5797195 Reviewed-by: Matthias Liedtke <[email protected]> Commit-Queue: Nico Hartmann <[email protected]> Commit-Queue: Matthias Liedtke <[email protected]> Auto-Submit: Nico Hartmann <[email protected]> Cr-Commit-Position: refs/heads/main@{#95728}
1 parent a9777d9 commit f784b0b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/compiler/operation-typer.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,7 @@ Type JSType(Type type) {
12591259
} // namespace
12601260

12611261
Type OperationTyper::SameValue(Type lhs, Type rhs) {
1262+
if (lhs.IsNone() || rhs.IsNone()) return Type::None();
12621263
if (!JSType(lhs).Maybe(JSType(rhs))) return singleton_false();
12631264
if (lhs.Is(Type::NaN())) {
12641265
if (rhs.Is(Type::NaN())) return singleton_true();

0 commit comments

Comments
 (0)