Chromium Code Reviews

Unified Diff: src/compiler/verifier.cc

Issue 2814013003: [turbofan] Properly represent the float64 hole. (Closed)
Patch Set: Make sure the_hole has the correct hole NaN bit pattern on Win32. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/compiler/verifier.cc
diff --git a/src/compiler/verifier.cc b/src/compiler/verifier.cc
index cca58a238215cb2eefd364ff3d714229a7453cf5..3c79c67fffb5908f44a4186d4a95df6944938ef6 100644
--- a/src/compiler/verifier.cc
+++ b/src/compiler/verifier.cc
@@ -1201,8 +1201,8 @@ void Verifier::Visitor::Check(Node* node) {
break;
case IrOpcode::kCheckFloat64Hole:
- CheckValueInputIs(node, 0, Type::Number());
- CheckTypeIs(node, Type::Number());
+ CheckValueInputIs(node, 0, Type::NumberOrHole());
+ CheckTypeIs(node, Type::NumberOrUndefined());
break;
case IrOpcode::kCheckTaggedHole:
CheckValueInputIs(node, 0, Type::Any());

Powered by Google App Engine