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 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1547 // The string::length property is always an unsigned smi. | 1547 // The string::length property is always an unsigned smi. |
1548 return Bounds(Type::None(), Type::Intersect(Type::UnsignedSmall(), | 1548 return Bounds(Type::None(), Type::Intersect(Type::UnsignedSmall(), |
1549 Type::TaggedSigned())); | 1549 Type::TaggedSigned())); |
1550 default: | 1550 default: |
1551 break; | 1551 break; |
1552 } | 1552 } |
1553 return Bounds::Unbounded(zone()); | 1553 return Bounds::Unbounded(zone()); |
1554 } | 1554 } |
1555 | 1555 |
1556 | 1556 |
1557 Bounds Typer::Visitor::TypeJSDebugger(Node* node) { | |
1558 UNREACHABLE(); | |
1559 return Bounds(); | |
1560 } | |
1561 | |
1562 | |
1563 Bounds Typer::Visitor::TypeJSStackCheck(Node* node) { | 1557 Bounds Typer::Visitor::TypeJSStackCheck(Node* node) { |
1564 return Bounds::Unbounded(zone()); | 1558 return Bounds::Unbounded(zone()); |
1565 } | 1559 } |
1566 | 1560 |
1567 | 1561 |
1568 // Simplified operators. | 1562 // Simplified operators. |
1569 | 1563 |
1570 | 1564 |
1571 Bounds Typer::Visitor::TypeBooleanNot(Node* node) { | 1565 Bounds Typer::Visitor::TypeBooleanNot(Node* node) { |
1572 return Bounds(Type::None(zone()), Type::Boolean(zone())); | 1566 return Bounds(Type::None(zone()), Type::Boolean(zone())); |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2257 TYPED_ARRAYS(TYPED_ARRAY_CASE) | 2251 TYPED_ARRAYS(TYPED_ARRAY_CASE) |
2258 #undef TYPED_ARRAY_CASE | 2252 #undef TYPED_ARRAY_CASE |
2259 } | 2253 } |
2260 } | 2254 } |
2261 return Type::Constant(value, zone()); | 2255 return Type::Constant(value, zone()); |
2262 } | 2256 } |
2263 | 2257 |
2264 } // namespace compiler | 2258 } // namespace compiler |
2265 } // namespace internal | 2259 } // namespace internal |
2266 } // namespace v8 | 2260 } // namespace v8 |
OLD | NEW |