| 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) { | 2083 Type* Typer::Visitor::TypeTruncateFloat64ToInt64(Node* node) { |
| 2084 return Type::Internal(); | 2084 return Type::Internal(); |
| 2085 } | 2085 } |
| 2086 | 2086 |
| 2087 | 2087 |
| 2088 Type* Typer::Visitor::TypeTruncateFloat64ToUint64(Node* node) { | 2088 Type* Typer::Visitor::TypeTruncateFloat64ToUint64(Node* node) { |
| 2089 return Type::Internal(); | 2089 return Type::Internal(); |
| 2090 } | 2090 } |
| 2091 | 2091 |
| 2092 | 2092 |
| 2093 Type* Typer::Visitor::TypeChangeInt32ToFloat64(Node* node) { | 2093 Type* Typer::Visitor::TypeChangeInt32ToFloat64(Node* node) { |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2332 } | 2332 } |
| 2333 if (Type::IsInteger(*value)) { | 2333 if (Type::IsInteger(*value)) { |
| 2334 return Type::Range(value->Number(), value->Number(), zone()); | 2334 return Type::Range(value->Number(), value->Number(), zone()); |
| 2335 } | 2335 } |
| 2336 return Type::Constant(value, zone()); | 2336 return Type::Constant(value, zone()); |
| 2337 } | 2337 } |
| 2338 | 2338 |
| 2339 } // namespace compiler | 2339 } // namespace compiler |
| 2340 } // namespace internal | 2340 } // namespace internal |
| 2341 } // namespace v8 | 2341 } // namespace v8 |
| OLD | NEW |