| 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 2062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2073 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone()); | 2073 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone()); |
| 2074 } | 2074 } |
| 2075 | 2075 |
| 2076 | 2076 |
| 2077 Type* Typer::Visitor::TypeChangeFloat64ToUint32(Node* node) { | 2077 Type* Typer::Visitor::TypeChangeFloat64ToUint32(Node* node) { |
| 2078 return Type::Intersect(Type::Unsigned32(), Type::UntaggedIntegral32(), | 2078 return Type::Intersect(Type::Unsigned32(), Type::UntaggedIntegral32(), |
| 2079 zone()); | 2079 zone()); |
| 2080 } | 2080 } |
| 2081 | 2081 |
| 2082 | 2082 |
| 2083 Type* Typer::Visitor::TypeChangeFloat64ToInt64(Node* node) { |
| 2084 return Type::Internal(); |
| 2085 } |
| 2086 |
| 2087 |
| 2083 Type* Typer::Visitor::TypeChangeInt32ToFloat64(Node* node) { | 2088 Type* Typer::Visitor::TypeChangeInt32ToFloat64(Node* node) { |
| 2084 return Type::Intersect(Type::Signed32(), Type::UntaggedFloat64(), zone()); | 2089 return Type::Intersect(Type::Signed32(), Type::UntaggedFloat64(), zone()); |
| 2085 } | 2090 } |
| 2086 | 2091 |
| 2087 | 2092 |
| 2088 Type* Typer::Visitor::TypeChangeInt32ToInt64(Node* node) { | 2093 Type* Typer::Visitor::TypeChangeInt32ToInt64(Node* node) { |
| 2089 return Type::Internal(); | 2094 return Type::Internal(); |
| 2090 } | 2095 } |
| 2091 | 2096 |
| 2092 | 2097 |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2322 } | 2327 } |
| 2323 if (Type::IsInteger(*value)) { | 2328 if (Type::IsInteger(*value)) { |
| 2324 return Type::Range(value->Number(), value->Number(), zone()); | 2329 return Type::Range(value->Number(), value->Number(), zone()); |
| 2325 } | 2330 } |
| 2326 return Type::Constant(value, zone()); | 2331 return Type::Constant(value, zone()); |
| 2327 } | 2332 } |
| 2328 | 2333 |
| 2329 } // namespace compiler | 2334 } // namespace compiler |
| 2330 } // namespace internal | 2335 } // namespace internal |
| 2331 } // namespace v8 | 2336 } // namespace v8 |
| OLD | NEW |