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

Unified Diff: src/compiler/typer.cc

Issue 2060743002: [builtins] Introduce proper Float64Log1p operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@Math_Log
Patch Set: REBASE 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
Index: src/compiler/typer.cc
diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc
index 6cda67e0d38d4b6a0fbe2e6856a956b2b05cb1cc..ff9ef1a21ff6d6f930ac95fa7777e639cbaccd12 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -1787,6 +1787,8 @@ Type* Typer::Visitor::TypeNumberFloor(Node* node) {
Type* Typer::Visitor::TypeNumberLog(Node* node) { return Type::Number(); }
+Type* Typer::Visitor::TypeNumberLog1p(Node* node) { return Type::Number(); }
+
Type* Typer::Visitor::TypeNumberRound(Node* node) {
return TypeUnaryOp(node, NumberRound);
}
@@ -2504,6 +2506,8 @@ Type* Typer::Visitor::TypeFloat64Abs(Node* node) {
Type* Typer::Visitor::TypeFloat64Log(Node* node) { return Type::Number(); }
+Type* Typer::Visitor::TypeFloat64Log1p(Node* node) { return Type::Number(); }
+
Type* Typer::Visitor::TypeFloat64Sqrt(Node* node) { return Type::Number(); }

Powered by Google App Engine
This is Rietveld 408576698