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

Side by Side Diff: src/compiler/typer.cc

Issue 1356913002: [turbofan] Add support for reinterpreting integers as floating point and vice versa. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rename ReinterpretAs to BitcastTo Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « src/compiler/raw-machine-assembler.h ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/base/lazy-instance.h" 8 #include "src/base/lazy-instance.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 1847 matching lines...) Expand 10 before | Expand all | Expand 10 after
1858 Type* Typer::Visitor::TypeTruncateFloat64ToInt32(Node* node) { 1858 Type* Typer::Visitor::TypeTruncateFloat64ToInt32(Node* node) {
1859 return Type::Intersect(Type::Signed32(), Type::UntaggedSigned32(), zone()); 1859 return Type::Intersect(Type::Signed32(), Type::UntaggedSigned32(), zone());
1860 } 1860 }
1861 1861
1862 1862
1863 Type* Typer::Visitor::TypeTruncateInt64ToInt32(Node* node) { 1863 Type* Typer::Visitor::TypeTruncateInt64ToInt32(Node* node) {
1864 return Type::Intersect(Type::Signed32(), Type::UntaggedSigned32(), zone()); 1864 return Type::Intersect(Type::Signed32(), Type::UntaggedSigned32(), zone());
1865 } 1865 }
1866 1866
1867 1867
1868 Type* Typer::Visitor::TypeBitcastFloat32ToInt32(Node* node) {
1869 return Type::Number();
1870 }
1871
1872
1873 Type* Typer::Visitor::TypeBitcastFloat64ToInt64(Node* node) {
1874 return Type::Number();
1875 }
1876
1877
1878 Type* Typer::Visitor::TypeBitcastInt32ToFloat32(Node* node) {
1879 return Type::Number();
1880 }
1881
1882
1883 Type* Typer::Visitor::TypeBitcastInt64ToFloat64(Node* node) {
1884 return Type::Number();
1885 }
1886
1887
1868 Type* Typer::Visitor::TypeFloat32Add(Node* node) { return Type::Number(); } 1888 Type* Typer::Visitor::TypeFloat32Add(Node* node) { return Type::Number(); }
1869 1889
1870 1890
1871 Type* Typer::Visitor::TypeFloat32Sub(Node* node) { return Type::Number(); } 1891 Type* Typer::Visitor::TypeFloat32Sub(Node* node) { return Type::Number(); }
1872 1892
1873 1893
1874 Type* Typer::Visitor::TypeFloat32Mul(Node* node) { return Type::Number(); } 1894 Type* Typer::Visitor::TypeFloat32Mul(Node* node) { return Type::Number(); }
1875 1895
1876 1896
1877 Type* Typer::Visitor::TypeFloat32Div(Node* node) { return Type::Number(); } 1897 Type* Typer::Visitor::TypeFloat32Div(Node* node) { return Type::Number(); }
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
2077 } 2097 }
2078 if (Type::IsInteger(*value)) { 2098 if (Type::IsInteger(*value)) {
2079 return Type::Range(value->Number(), value->Number(), zone()); 2099 return Type::Range(value->Number(), value->Number(), zone());
2080 } 2100 }
2081 return Type::Constant(value, zone()); 2101 return Type::Constant(value, zone());
2082 } 2102 }
2083 2103
2084 } // namespace compiler 2104 } // namespace compiler
2085 } // namespace internal 2105 } // namespace internal
2086 } // namespace v8 2106 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/raw-machine-assembler.h ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698