| 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 2127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2138 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone()); | 2138 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone()); |
| 2139 } | 2139 } |
| 2140 | 2140 |
| 2141 | 2141 |
| 2142 Type* Typer::Visitor::TypeChangeFloat64ToUint32(Node* node) { | 2142 Type* Typer::Visitor::TypeChangeFloat64ToUint32(Node* node) { |
| 2143 return Type::Intersect(Type::Unsigned32(), Type::UntaggedIntegral32(), | 2143 return Type::Intersect(Type::Unsigned32(), Type::UntaggedIntegral32(), |
| 2144 zone()); | 2144 zone()); |
| 2145 } | 2145 } |
| 2146 | 2146 |
| 2147 | 2147 |
| 2148 Type* Typer::Visitor::TypeTruncateFloat32ToInt32(Node* node) { |
| 2149 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone()); |
| 2150 } |
| 2151 |
| 2152 |
| 2148 Type* Typer::Visitor::TypeTryTruncateFloat32ToInt64(Node* node) { | 2153 Type* Typer::Visitor::TypeTryTruncateFloat32ToInt64(Node* node) { |
| 2149 return Type::Internal(); | 2154 return Type::Internal(); |
| 2150 } | 2155 } |
| 2151 | 2156 |
| 2152 | 2157 |
| 2153 Type* Typer::Visitor::TypeTryTruncateFloat64ToInt64(Node* node) { | 2158 Type* Typer::Visitor::TypeTryTruncateFloat64ToInt64(Node* node) { |
| 2154 return Type::Internal(); | 2159 return Type::Internal(); |
| 2155 } | 2160 } |
| 2156 | 2161 |
| 2157 | 2162 |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2431 } | 2436 } |
| 2432 if (Type::IsInteger(*value)) { | 2437 if (Type::IsInteger(*value)) { |
| 2433 return Type::Range(value->Number(), value->Number(), zone()); | 2438 return Type::Range(value->Number(), value->Number(), zone()); |
| 2434 } | 2439 } |
| 2435 return Type::Constant(value, zone()); | 2440 return Type::Constant(value, zone()); |
| 2436 } | 2441 } |
| 2437 | 2442 |
| 2438 } // namespace compiler | 2443 } // namespace compiler |
| 2439 } // namespace internal | 2444 } // namespace internal |
| 2440 } // namespace v8 | 2445 } // namespace v8 |
| OLD | NEW |