| 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 "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 2137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2148 return Type::Intersect(Type::Unsigned32(), Type::UntaggedIntegral32(), | 2148 return Type::Intersect(Type::Unsigned32(), Type::UntaggedIntegral32(), |
| 2149 zone()); | 2149 zone()); |
| 2150 } | 2150 } |
| 2151 | 2151 |
| 2152 | 2152 |
| 2153 Type* Typer::Visitor::TypeTruncateFloat32ToInt32(Node* node) { | 2153 Type* Typer::Visitor::TypeTruncateFloat32ToInt32(Node* node) { |
| 2154 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone()); | 2154 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone()); |
| 2155 } | 2155 } |
| 2156 | 2156 |
| 2157 | 2157 |
| 2158 Type* Typer::Visitor::TypeTruncateFloat32ToUint32(Node* node) { |
| 2159 return Type::Intersect(Type::Unsigned32(), Type::UntaggedIntegral32(), |
| 2160 zone()); |
| 2161 } |
| 2162 |
| 2163 |
| 2158 Type* Typer::Visitor::TypeTryTruncateFloat32ToInt64(Node* node) { | 2164 Type* Typer::Visitor::TypeTryTruncateFloat32ToInt64(Node* node) { |
| 2159 return Type::Internal(); | 2165 return Type::Internal(); |
| 2160 } | 2166 } |
| 2161 | 2167 |
| 2162 | 2168 |
| 2163 Type* Typer::Visitor::TypeTryTruncateFloat64ToInt64(Node* node) { | 2169 Type* Typer::Visitor::TypeTryTruncateFloat64ToInt64(Node* node) { |
| 2164 return Type::Internal(); | 2170 return Type::Internal(); |
| 2165 } | 2171 } |
| 2166 | 2172 |
| 2167 | 2173 |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2446 } | 2452 } |
| 2447 if (Type::IsInteger(*value)) { | 2453 if (Type::IsInteger(*value)) { |
| 2448 return Type::Range(value->Number(), value->Number(), zone()); | 2454 return Type::Range(value->Number(), value->Number(), zone()); |
| 2449 } | 2455 } |
| 2450 return Type::Constant(value, zone()); | 2456 return Type::Constant(value, zone()); |
| 2451 } | 2457 } |
| 2452 | 2458 |
| 2453 } // namespace compiler | 2459 } // namespace compiler |
| 2454 } // namespace internal | 2460 } // namespace internal |
| 2455 } // namespace v8 | 2461 } // namespace v8 |
| OLD | NEW |