| 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 2084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2095 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone()); | 2095 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone()); |
| 2096 } | 2096 } |
| 2097 | 2097 |
| 2098 | 2098 |
| 2099 Type* Typer::Visitor::TypeChangeFloat64ToUint32(Node* node) { | 2099 Type* Typer::Visitor::TypeChangeFloat64ToUint32(Node* node) { |
| 2100 return Type::Intersect(Type::Unsigned32(), Type::UntaggedIntegral32(), | 2100 return Type::Intersect(Type::Unsigned32(), Type::UntaggedIntegral32(), |
| 2101 zone()); | 2101 zone()); |
| 2102 } | 2102 } |
| 2103 | 2103 |
| 2104 | 2104 |
| 2105 Type* Typer::Visitor::TypeTruncateFloat32ToInt64(Node* node) { | |
| 2106 return Type::Internal(); | |
| 2107 } | |
| 2108 | |
| 2109 | |
| 2110 Type* Typer::Visitor::TypeTruncateFloat64ToInt64(Node* node) { | 2105 Type* Typer::Visitor::TypeTruncateFloat64ToInt64(Node* node) { |
| 2111 return Type::Internal(); | 2106 return Type::Internal(); |
| 2112 } | 2107 } |
| 2113 | 2108 |
| 2114 | 2109 |
| 2115 Type* Typer::Visitor::TypeTruncateFloat64ToUint64(Node* node) { | 2110 Type* Typer::Visitor::TypeTruncateFloat64ToUint64(Node* node) { |
| 2116 return Type::Internal(); | 2111 return Type::Internal(); |
| 2117 } | 2112 } |
| 2118 | 2113 |
| 2119 | 2114 |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2371 } | 2366 } |
| 2372 if (Type::IsInteger(*value)) { | 2367 if (Type::IsInteger(*value)) { |
| 2373 return Type::Range(value->Number(), value->Number(), zone()); | 2368 return Type::Range(value->Number(), value->Number(), zone()); |
| 2374 } | 2369 } |
| 2375 return Type::Constant(value, zone()); | 2370 return Type::Constant(value, zone()); |
| 2376 } | 2371 } |
| 2377 | 2372 |
| 2378 } // namespace compiler | 2373 } // namespace compiler |
| 2379 } // namespace internal | 2374 } // namespace internal |
| 2380 } // namespace v8 | 2375 } // namespace v8 |
| OLD | NEW |