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/base/flags.h" | 5 #include "src/base/flags.h" |
6 #include "src/bootstrapper.h" | 6 #include "src/bootstrapper.h" |
7 #include "src/compiler/graph-reducer.h" | 7 #include "src/compiler/graph-reducer.h" |
8 #include "src/compiler/js-operator.h" | 8 #include "src/compiler/js-operator.h" |
9 #include "src/compiler/node.h" | 9 #include "src/compiler/node.h" |
10 #include "src/compiler/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
(...skipping 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1722 Bounds Typer::Visitor::TypeStringLessThan(Node* node) { | 1722 Bounds Typer::Visitor::TypeStringLessThan(Node* node) { |
1723 return Bounds(Type::None(zone()), Type::Boolean(zone())); | 1723 return Bounds(Type::None(zone()), Type::Boolean(zone())); |
1724 } | 1724 } |
1725 | 1725 |
1726 | 1726 |
1727 Bounds Typer::Visitor::TypeStringLessThanOrEqual(Node* node) { | 1727 Bounds Typer::Visitor::TypeStringLessThanOrEqual(Node* node) { |
1728 return Bounds(Type::None(zone()), Type::Boolean(zone())); | 1728 return Bounds(Type::None(zone()), Type::Boolean(zone())); |
1729 } | 1729 } |
1730 | 1730 |
1731 | 1731 |
1732 Bounds Typer::Visitor::TypeStringAdd(Node* node) { | |
1733 return Bounds(Type::None(zone()), Type::String(zone())); | |
1734 } | |
1735 | |
1736 | |
1737 namespace { | 1732 namespace { |
1738 | 1733 |
1739 Type* ChangeRepresentation(Type* type, Type* rep, Zone* zone) { | 1734 Type* ChangeRepresentation(Type* type, Type* rep, Zone* zone) { |
1740 return Type::Union(Type::Semantic(type, zone), | 1735 return Type::Union(Type::Semantic(type, zone), |
1741 Type::Representation(rep, zone), zone); | 1736 Type::Representation(rep, zone), zone); |
1742 } | 1737 } |
1743 | 1738 |
1744 } // namespace | 1739 } // namespace |
1745 | 1740 |
1746 | 1741 |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2400 TYPED_ARRAYS(TYPED_ARRAY_CASE) | 2395 TYPED_ARRAYS(TYPED_ARRAY_CASE) |
2401 #undef TYPED_ARRAY_CASE | 2396 #undef TYPED_ARRAY_CASE |
2402 } | 2397 } |
2403 } | 2398 } |
2404 return Type::Constant(value, zone()); | 2399 return Type::Constant(value, zone()); |
2405 } | 2400 } |
2406 | 2401 |
2407 } // namespace compiler | 2402 } // namespace compiler |
2408 } // namespace internal | 2403 } // namespace internal |
2409 } // namespace v8 | 2404 } // namespace v8 |
OLD | NEW |