Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1029)

Unified Diff: src/compiler/typer.cc

Issue 2083573002: [builtins] Unify Cosh, Sinh and Tanh as exports from flibm (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE and windows fix. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/simplified-operator.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/typer.cc
diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc
index cdd1fdd0aa4c3c85fe9bbc75141508df54da578a..f9925c51e4aa8dd9cc56feb4736b2b9093bd968a 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -1651,6 +1651,8 @@ Type* Typer::Visitor::TypeNumberAtanh(Node* node) { return Type::Number(); }
Type* Typer::Visitor::TypeNumberCos(Node* node) { return Type::Number(); }
+Type* Typer::Visitor::TypeNumberCosh(Node* node) { return Type::Number(); }
+
Type* Typer::Visitor::TypeNumberExp(Node* node) {
return Type::Union(Type::PlainNumber(), Type::NaN(), zone());
}
@@ -1676,10 +1678,14 @@ Type* Typer::Visitor::TypeNumberRound(Node* node) {
Type* Typer::Visitor::TypeNumberSin(Node* node) { return Type::Number(); }
+Type* Typer::Visitor::TypeNumberSinh(Node* node) { return Type::Number(); }
+
Type* Typer::Visitor::TypeNumberSqrt(Node* node) { return Type::Number(); }
Type* Typer::Visitor::TypeNumberTan(Node* node) { return Type::Number(); }
+Type* Typer::Visitor::TypeNumberTanh(Node* node) { return Type::Number(); }
+
Type* Typer::Visitor::TypeNumberTrunc(Node* node) {
return TypeUnaryOp(node, NumberTrunc);
}
@@ -2326,6 +2332,8 @@ Type* Typer::Visitor::TypeFloat64Cbrt(Node* node) { return Type::Number(); }
Type* Typer::Visitor::TypeFloat64Cos(Node* node) { return Type::Number(); }
+Type* Typer::Visitor::TypeFloat64Cosh(Node* node) { return Type::Number(); }
+
Type* Typer::Visitor::TypeFloat64Exp(Node* node) { return Type::Number(); }
Type* Typer::Visitor::TypeFloat64Expm1(Node* node) { return Type::Number(); }
@@ -2342,10 +2350,14 @@ Type* Typer::Visitor::TypeFloat64Pow(Node* node) { return Type::Number(); }
Type* Typer::Visitor::TypeFloat64Sin(Node* node) { return Type::Number(); }
+Type* Typer::Visitor::TypeFloat64Sinh(Node* node) { return Type::Number(); }
+
Type* Typer::Visitor::TypeFloat64Sqrt(Node* node) { return Type::Number(); }
Type* Typer::Visitor::TypeFloat64Tan(Node* node) { return Type::Number(); }
+Type* Typer::Visitor::TypeFloat64Tanh(Node* node) { return Type::Number(); }
+
Type* Typer::Visitor::TypeFloat64Equal(Node* node) { return Type::Boolean(); }
« no previous file with comments | « src/compiler/simplified-operator.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698