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 2094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2105 Type* Typer::Visitor::TypeTruncateFloat32ToInt64(Node* node) { | 2105 Type* Typer::Visitor::TypeTruncateFloat32ToInt64(Node* node) { |
2106 return Type::Internal(); | 2106 return Type::Internal(); |
2107 } | 2107 } |
2108 | 2108 |
2109 | 2109 |
2110 Type* Typer::Visitor::TypeTruncateFloat64ToInt64(Node* node) { | 2110 Type* Typer::Visitor::TypeTruncateFloat64ToInt64(Node* node) { |
2111 return Type::Internal(); | 2111 return Type::Internal(); |
2112 } | 2112 } |
2113 | 2113 |
2114 | 2114 |
| 2115 Type* Typer::Visitor::TypeTruncateFloat32ToUint64(Node* node) { |
| 2116 return Type::Internal(); |
| 2117 } |
| 2118 |
| 2119 |
2115 Type* Typer::Visitor::TypeTruncateFloat64ToUint64(Node* node) { | 2120 Type* Typer::Visitor::TypeTruncateFloat64ToUint64(Node* node) { |
2116 return Type::Internal(); | 2121 return Type::Internal(); |
2117 } | 2122 } |
2118 | 2123 |
2119 | 2124 |
2120 Type* Typer::Visitor::TypeChangeInt32ToFloat64(Node* node) { | 2125 Type* Typer::Visitor::TypeChangeInt32ToFloat64(Node* node) { |
2121 return Type::Intersect(Type::Signed32(), Type::UntaggedFloat64(), zone()); | 2126 return Type::Intersect(Type::Signed32(), Type::UntaggedFloat64(), zone()); |
2122 } | 2127 } |
2123 | 2128 |
2124 | 2129 |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2383 } | 2388 } |
2384 if (Type::IsInteger(*value)) { | 2389 if (Type::IsInteger(*value)) { |
2385 return Type::Range(value->Number(), value->Number(), zone()); | 2390 return Type::Range(value->Number(), value->Number(), zone()); |
2386 } | 2391 } |
2387 return Type::Constant(value, zone()); | 2392 return Type::Constant(value, zone()); |
2388 } | 2393 } |
2389 | 2394 |
2390 } // namespace compiler | 2395 } // namespace compiler |
2391 } // namespace internal | 2396 } // namespace internal |
2392 } // namespace v8 | 2397 } // namespace v8 |
OLD | NEW |