OLD | NEW |
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 <iomanip> | 7 #include <iomanip> |
8 | 8 |
9 #include "src/base/flags.h" | 9 #include "src/base/flags.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2027 Type* Typer::Visitor::TypeBitcastInt64ToFloat64(Node* node) { | 2027 Type* Typer::Visitor::TypeBitcastInt64ToFloat64(Node* node) { |
2028 return Type::Number(); | 2028 return Type::Number(); |
2029 } | 2029 } |
2030 | 2030 |
2031 | 2031 |
2032 Type* Typer::Visitor::TypeFloat32Add(Node* node) { return Type::Number(); } | 2032 Type* Typer::Visitor::TypeFloat32Add(Node* node) { return Type::Number(); } |
2033 | 2033 |
2034 | 2034 |
2035 Type* Typer::Visitor::TypeFloat32Sub(Node* node) { return Type::Number(); } | 2035 Type* Typer::Visitor::TypeFloat32Sub(Node* node) { return Type::Number(); } |
2036 | 2036 |
2037 Type* Typer::Visitor::TypeFloat32SubPreserveNan(Node* node) { | |
2038 return Type::Number(); | |
2039 } | |
2040 | |
2041 Type* Typer::Visitor::TypeFloat32Neg(Node* node) { return Type::Number(); } | 2037 Type* Typer::Visitor::TypeFloat32Neg(Node* node) { return Type::Number(); } |
2042 | 2038 |
2043 Type* Typer::Visitor::TypeFloat32Mul(Node* node) { return Type::Number(); } | 2039 Type* Typer::Visitor::TypeFloat32Mul(Node* node) { return Type::Number(); } |
2044 | 2040 |
2045 | 2041 |
2046 Type* Typer::Visitor::TypeFloat32Div(Node* node) { return Type::Number(); } | 2042 Type* Typer::Visitor::TypeFloat32Div(Node* node) { return Type::Number(); } |
2047 | 2043 |
2048 | 2044 |
2049 Type* Typer::Visitor::TypeFloat32Abs(Node* node) { | 2045 Type* Typer::Visitor::TypeFloat32Abs(Node* node) { |
2050 // TODO(turbofan): We should be able to infer a better type here. | 2046 // TODO(turbofan): We should be able to infer a better type here. |
(...skipping 15 matching lines...) Expand all Loading... |
2066 Type* Typer::Visitor::TypeFloat32LessThanOrEqual(Node* node) { | 2062 Type* Typer::Visitor::TypeFloat32LessThanOrEqual(Node* node) { |
2067 return Type::Boolean(); | 2063 return Type::Boolean(); |
2068 } | 2064 } |
2069 | 2065 |
2070 | 2066 |
2071 Type* Typer::Visitor::TypeFloat64Add(Node* node) { return Type::Number(); } | 2067 Type* Typer::Visitor::TypeFloat64Add(Node* node) { return Type::Number(); } |
2072 | 2068 |
2073 | 2069 |
2074 Type* Typer::Visitor::TypeFloat64Sub(Node* node) { return Type::Number(); } | 2070 Type* Typer::Visitor::TypeFloat64Sub(Node* node) { return Type::Number(); } |
2075 | 2071 |
2076 Type* Typer::Visitor::TypeFloat64SubPreserveNan(Node* node) { | |
2077 return Type::Number(); | |
2078 } | |
2079 | |
2080 Type* Typer::Visitor::TypeFloat64Neg(Node* node) { return Type::Number(); } | 2072 Type* Typer::Visitor::TypeFloat64Neg(Node* node) { return Type::Number(); } |
2081 | 2073 |
2082 Type* Typer::Visitor::TypeFloat64Mul(Node* node) { return Type::Number(); } | 2074 Type* Typer::Visitor::TypeFloat64Mul(Node* node) { return Type::Number(); } |
2083 | 2075 |
2084 | 2076 |
2085 Type* Typer::Visitor::TypeFloat64Div(Node* node) { return Type::Number(); } | 2077 Type* Typer::Visitor::TypeFloat64Div(Node* node) { return Type::Number(); } |
2086 | 2078 |
2087 | 2079 |
2088 Type* Typer::Visitor::TypeFloat64Mod(Node* node) { return Type::Number(); } | 2080 Type* Typer::Visitor::TypeFloat64Mod(Node* node) { return Type::Number(); } |
2089 | 2081 |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2308 } | 2300 } |
2309 if (Type::IsInteger(*value)) { | 2301 if (Type::IsInteger(*value)) { |
2310 return Type::Range(value->Number(), value->Number(), zone()); | 2302 return Type::Range(value->Number(), value->Number(), zone()); |
2311 } | 2303 } |
2312 return Type::Constant(value, zone()); | 2304 return Type::Constant(value, zone()); |
2313 } | 2305 } |
2314 | 2306 |
2315 } // namespace compiler | 2307 } // namespace compiler |
2316 } // namespace internal | 2308 } // namespace internal |
2317 } // namespace v8 | 2309 } // namespace v8 |
OLD | NEW |