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

Unified Diff: src/compiler/typer.cc

Issue 1350223006: binary-operator-reducer: reduce mul+div(shift) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: TruncateInt64ToFloat64 Created 5 years, 2 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 a6a9e67948818b24c377b755577dc054a066816f..bd9dd4b71d4a199ee212565d23e2905e9e93796c 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -1865,6 +1865,11 @@ Type* Typer::Visitor::TypeTruncateInt64ToInt32(Node* node) {
}
+Type* Typer::Visitor::TypeTruncateInt64ToFloat64(Node* node) {
+ return Type::Intersect(Type::Internal(), Type::UntaggedFloat64(), zone());
+}
+
+
Type* Typer::Visitor::TypeFloat32Add(Node* node) { return Type::Number(); }

Powered by Google App Engine
This is Rietveld 408576698