Index: src/compiler/typer.cc |
diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc |
index 65b7c1f39d510e5a560182e65156449f1ceb3c62..c0d7ae664002304fc409eed80bdd8a77744648d0 100644 |
--- a/src/compiler/typer.cc |
+++ b/src/compiler/typer.cc |
@@ -1788,6 +1788,8 @@ Type* Typer::Visitor::TypeNumberFloor(Node* node) { |
return TypeUnaryOp(node, NumberFloor); |
} |
+Type* Typer::Visitor::TypeNumberFround(Node* node) { return Type::Number(); } |
+ |
Type* Typer::Visitor::TypeNumberAtan(Node* node) { return Type::Number(); } |
Type* Typer::Visitor::TypeNumberAtan2(Node* node) { return Type::Number(); } |
@@ -1800,6 +1802,8 @@ Type* Typer::Visitor::TypeNumberRound(Node* node) { |
return TypeUnaryOp(node, NumberRound); |
} |
+Type* Typer::Visitor::TypeNumberSqrt(Node* node) { return Type::Number(); } |
+ |
Type* Typer::Visitor::TypeNumberTrunc(Node* node) { |
return TypeUnaryOp(node, NumberTrunc); |
} |
@@ -1902,7 +1906,7 @@ Type* Typer::Visitor::TypeChangeTaggedToFloat64(Node* node) { |
Type* Typer::Visitor::TypeTruncateTaggedToFloat64(Node* node) { |
Type* arg = Operand(node, 0); |
- DCHECK(arg->Is(Type::NumberOrUndefined())); |
+ DCHECK(arg->Is(Type::NumberOrOddball())); |
return ChangeRepresentation(arg, Type::UntaggedFloat64(), zone()); |
} |