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

Unified Diff: src/compiler/typer.cc

Issue 1424333002: [turbofan] Added the RoundInt64ToFloat64 instruction to TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@BufferedRawMachineAssemblerTester
Patch Set: 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 6c80446ce921da7e1906cd4dfe3e74e2bca6ee61..749d862cb82e4eff4368a88ab34ef53ae9b92e80 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -1978,6 +1978,11 @@ Type* Typer::Visitor::TypeChangeInt32ToFloat64(Node* node) {
}
+Type* Typer::Visitor::TypeChangeInt64ToFloat64(Node* node) {
+ return Type::Intersect(Type::Signed64(), Type::UntaggedFloat64(), zone());
+}
+
+
Type* Typer::Visitor::TypeChangeInt32ToInt64(Node* node) {
return Type::Internal();
}

Powered by Google App Engine
This is Rietveld 408576698