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 2067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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::TypeChangeFloat64ToInt64(Node* node) { |
2084 return Type::Internal(); | 2084 return Type::Internal(); |
2085 } | 2085 } |
2086 | 2086 |
2087 | 2087 |
| 2088 Type* Typer::Visitor::TypeTruncateFloat64ToUint64(Node* node) { |
| 2089 return Type::Internal(); |
| 2090 } |
| 2091 |
| 2092 |
2088 Type* Typer::Visitor::TypeChangeInt32ToFloat64(Node* node) { | 2093 Type* Typer::Visitor::TypeChangeInt32ToFloat64(Node* node) { |
2089 return Type::Intersect(Type::Signed32(), Type::UntaggedFloat64(), zone()); | 2094 return Type::Intersect(Type::Signed32(), Type::UntaggedFloat64(), zone()); |
2090 } | 2095 } |
2091 | 2096 |
2092 | 2097 |
2093 Type* Typer::Visitor::TypeChangeInt32ToInt64(Node* node) { | 2098 Type* Typer::Visitor::TypeChangeInt32ToInt64(Node* node) { |
2094 return Type::Internal(); | 2099 return Type::Internal(); |
2095 } | 2100 } |
2096 | 2101 |
2097 | 2102 |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2327 } | 2332 } |
2328 if (Type::IsInteger(*value)) { | 2333 if (Type::IsInteger(*value)) { |
2329 return Type::Range(value->Number(), value->Number(), zone()); | 2334 return Type::Range(value->Number(), value->Number(), zone()); |
2330 } | 2335 } |
2331 return Type::Constant(value, zone()); | 2336 return Type::Constant(value, zone()); |
2332 } | 2337 } |
2333 | 2338 |
2334 } // namespace compiler | 2339 } // namespace compiler |
2335 } // namespace internal | 2340 } // namespace internal |
2336 } // namespace v8 | 2341 } // namespace v8 |
OLD | NEW |