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

Side by Side 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, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/typer.h" 5 #include "src/compiler/typer.h"
6 6
7 #include "src/base/flags.h" 7 #include "src/base/flags.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/compilation-dependencies.h" 9 #include "src/compilation-dependencies.h"
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 1960 matching lines...) Expand 10 before | Expand all | Expand 10 after
1971 return Type::Intersect(Type::Unsigned32(), Type::UntaggedUnsigned32(), 1971 return Type::Intersect(Type::Unsigned32(), Type::UntaggedUnsigned32(),
1972 zone()); 1972 zone());
1973 } 1973 }
1974 1974
1975 1975
1976 Type* Typer::Visitor::TypeChangeInt32ToFloat64(Node* node) { 1976 Type* Typer::Visitor::TypeChangeInt32ToFloat64(Node* node) {
1977 return Type::Intersect(Type::Signed32(), Type::UntaggedFloat64(), zone()); 1977 return Type::Intersect(Type::Signed32(), Type::UntaggedFloat64(), zone());
1978 } 1978 }
1979 1979
1980 1980
1981 Type* Typer::Visitor::TypeChangeInt64ToFloat64(Node* node) {
1982 return Type::Intersect(Type::Signed64(), Type::UntaggedFloat64(), zone());
1983 }
1984
1985
1981 Type* Typer::Visitor::TypeChangeInt32ToInt64(Node* node) { 1986 Type* Typer::Visitor::TypeChangeInt32ToInt64(Node* node) {
1982 return Type::Internal(); 1987 return Type::Internal();
1983 } 1988 }
1984 1989
1985 1990
1986 Type* Typer::Visitor::TypeChangeUint32ToFloat64(Node* node) { 1991 Type* Typer::Visitor::TypeChangeUint32ToFloat64(Node* node) {
1987 return Type::Intersect(Type::Unsigned32(), Type::UntaggedFloat64(), zone()); 1992 return Type::Intersect(Type::Unsigned32(), Type::UntaggedFloat64(), zone());
1988 } 1993 }
1989 1994
1990 1995
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
2183 } 2188 }
2184 if (Type::IsInteger(*value)) { 2189 if (Type::IsInteger(*value)) {
2185 return Type::Range(value->Number(), value->Number(), zone()); 2190 return Type::Range(value->Number(), value->Number(), zone());
2186 } 2191 }
2187 return Type::Constant(value, zone()); 2192 return Type::Constant(value, zone());
2188 } 2193 }
2189 2194
2190 } // namespace compiler 2195 } // namespace compiler
2191 } // namespace internal 2196 } // namespace internal
2192 } // namespace v8 2197 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698