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

Unified Diff: src/compiler/typer.cc

Issue 1066393002: [turbofan] Add new Float32Abs and Float64Abs operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix comment. Created 5 years, 8 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-lowering.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 1507f20dc8fd77d0dc3db9ae3afc8c4bfff2f8ce..ae8f14c9acdd5ce3f6c3b431e54491311c1b71a7 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -2134,6 +2134,12 @@ Bounds Typer::Visitor::TypeFloat32Min(Node* node) {
}
+Bounds Typer::Visitor::TypeFloat32Abs(Node* node) {
+ // TODO(turbofan): We should be able to infer a better type here.
+ return Bounds(Type::Number());
+}
+
+
Bounds Typer::Visitor::TypeFloat32Sqrt(Node* node) {
return Bounds(Type::Number());
}
@@ -2189,6 +2195,12 @@ Bounds Typer::Visitor::TypeFloat64Min(Node* node) {
}
+Bounds Typer::Visitor::TypeFloat64Abs(Node* node) {
+ // TODO(turbofan): We should be able to infer a better type here.
+ return Bounds(Type::Number());
+}
+
+
Bounds Typer::Visitor::TypeFloat64Sqrt(Node* node) {
return Bounds(Type::Number());
}
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698