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 2103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2114 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone()); | 2114 return Type::Intersect(Type::Signed32(), Type::UntaggedIntegral32(), zone()); |
2115 } | 2115 } |
2116 | 2116 |
2117 | 2117 |
2118 Type* Typer::Visitor::TypeChangeFloat64ToUint32(Node* node) { | 2118 Type* Typer::Visitor::TypeChangeFloat64ToUint32(Node* node) { |
2119 return Type::Intersect(Type::Unsigned32(), Type::UntaggedIntegral32(), | 2119 return Type::Intersect(Type::Unsigned32(), Type::UntaggedIntegral32(), |
2120 zone()); | 2120 zone()); |
2121 } | 2121 } |
2122 | 2122 |
2123 | 2123 |
2124 Type* Typer::Visitor::TypeTruncateFloat32ToInt64(Node* node) { | 2124 Type* Typer::Visitor::TypeTryTruncateFloat32ToInt64(Node* node) { |
2125 return Type::Internal(); | 2125 return Type::Internal(); |
2126 } | 2126 } |
2127 | 2127 |
2128 | 2128 |
2129 Type* Typer::Visitor::TypeTryTruncateFloat64ToInt64(Node* node) { | 2129 Type* Typer::Visitor::TypeTryTruncateFloat64ToInt64(Node* node) { |
2130 return Type::Internal(); | 2130 return Type::Internal(); |
2131 } | 2131 } |
2132 | 2132 |
2133 | 2133 |
2134 Type* Typer::Visitor::TypeTruncateFloat32ToUint64(Node* node) { | 2134 Type* Typer::Visitor::TypeTruncateFloat32ToUint64(Node* node) { |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2407 } | 2407 } |
2408 if (Type::IsInteger(*value)) { | 2408 if (Type::IsInteger(*value)) { |
2409 return Type::Range(value->Number(), value->Number(), zone()); | 2409 return Type::Range(value->Number(), value->Number(), zone()); |
2410 } | 2410 } |
2411 return Type::Constant(value, zone()); | 2411 return Type::Constant(value, zone()); |
2412 } | 2412 } |
2413 | 2413 |
2414 } // namespace compiler | 2414 } // namespace compiler |
2415 } // namespace internal | 2415 } // namespace internal |
2416 } // namespace v8 | 2416 } // namespace v8 |
OLD | NEW |