| 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 1741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1752 } | 1752 } |
| 1753 | 1753 |
| 1754 Type* Typer::Visitor::TypeStringEqual(Node* node) { return Type::Boolean(); } | 1754 Type* Typer::Visitor::TypeStringEqual(Node* node) { return Type::Boolean(); } |
| 1755 | 1755 |
| 1756 Type* Typer::Visitor::TypeStringLessThan(Node* node) { return Type::Boolean(); } | 1756 Type* Typer::Visitor::TypeStringLessThan(Node* node) { return Type::Boolean(); } |
| 1757 | 1757 |
| 1758 Type* Typer::Visitor::TypeStringLessThanOrEqual(Node* node) { | 1758 Type* Typer::Visitor::TypeStringLessThanOrEqual(Node* node) { |
| 1759 return Type::Boolean(); | 1759 return Type::Boolean(); |
| 1760 } | 1760 } |
| 1761 | 1761 |
| 1762 Type* Typer::Visitor::TypeStringToNumber(Node* node) { |
| 1763 return TypeUnaryOp(node, ToNumber); |
| 1764 } |
| 1762 | 1765 |
| 1763 namespace { | 1766 namespace { |
| 1764 | 1767 |
| 1765 Type* ChangeRepresentation(Type* type, Type* rep, Zone* zone) { | 1768 Type* ChangeRepresentation(Type* type, Type* rep, Zone* zone) { |
| 1766 return Type::Union(Type::Semantic(type, zone), | 1769 return Type::Union(Type::Semantic(type, zone), |
| 1767 Type::Representation(rep, zone), zone); | 1770 Type::Representation(rep, zone), zone); |
| 1768 } | 1771 } |
| 1769 | 1772 |
| 1770 } // namespace | 1773 } // namespace |
| 1771 | 1774 |
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2466 } | 2469 } |
| 2467 if (Type::IsInteger(*value)) { | 2470 if (Type::IsInteger(*value)) { |
| 2468 return Type::Range(value->Number(), value->Number(), zone()); | 2471 return Type::Range(value->Number(), value->Number(), zone()); |
| 2469 } | 2472 } |
| 2470 return Type::Constant(value, zone()); | 2473 return Type::Constant(value, zone()); |
| 2471 } | 2474 } |
| 2472 | 2475 |
| 2473 } // namespace compiler | 2476 } // namespace compiler |
| 2474 } // namespace internal | 2477 } // namespace internal |
| 2475 } // namespace v8 | 2478 } // namespace v8 |
| OLD | NEW |