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 2207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2218 Type* Typer::Visitor::TypeRoundInt64ToFloat32(Node* node) { | 2218 Type* Typer::Visitor::TypeRoundInt64ToFloat32(Node* node) { |
2219 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat32(), zone()); | 2219 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat32(), zone()); |
2220 } | 2220 } |
2221 | 2221 |
2222 | 2222 |
2223 Type* Typer::Visitor::TypeRoundInt64ToFloat64(Node* node) { | 2223 Type* Typer::Visitor::TypeRoundInt64ToFloat64(Node* node) { |
2224 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat64(), zone()); | 2224 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat64(), zone()); |
2225 } | 2225 } |
2226 | 2226 |
2227 | 2227 |
| 2228 Type* Typer::Visitor::TypeRoundUint32ToFloat32(Node* node) { |
| 2229 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat32(), zone()); |
| 2230 } |
| 2231 |
| 2232 |
2228 Type* Typer::Visitor::TypeRoundUint64ToFloat32(Node* node) { | 2233 Type* Typer::Visitor::TypeRoundUint64ToFloat32(Node* node) { |
2229 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat32(), zone()); | 2234 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat32(), zone()); |
2230 } | 2235 } |
2231 | 2236 |
2232 | 2237 |
2233 Type* Typer::Visitor::TypeRoundUint64ToFloat64(Node* node) { | 2238 Type* Typer::Visitor::TypeRoundUint64ToFloat64(Node* node) { |
2234 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat64(), zone()); | 2239 return Type::Intersect(Type::PlainNumber(), Type::UntaggedFloat64(), zone()); |
2235 } | 2240 } |
2236 | 2241 |
2237 | 2242 |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2446 } | 2451 } |
2447 if (Type::IsInteger(*value)) { | 2452 if (Type::IsInteger(*value)) { |
2448 return Type::Range(value->Number(), value->Number(), zone()); | 2453 return Type::Range(value->Number(), value->Number(), zone()); |
2449 } | 2454 } |
2450 return Type::Constant(value, zone()); | 2455 return Type::Constant(value, zone()); |
2451 } | 2456 } |
2452 | 2457 |
2453 } // namespace compiler | 2458 } // namespace compiler |
2454 } // namespace internal | 2459 } // namespace internal |
2455 } // namespace v8 | 2460 } // namespace v8 |
OLD | NEW |