| 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 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1527 | 1527 |
| 1528 | 1528 |
| 1529 Bounds Typer::Visitor::TypeJSStackCheck(Node* node) { | 1529 Bounds Typer::Visitor::TypeJSStackCheck(Node* node) { |
| 1530 return Bounds::Unbounded(zone()); | 1530 return Bounds::Unbounded(zone()); |
| 1531 } | 1531 } |
| 1532 | 1532 |
| 1533 | 1533 |
| 1534 // Simplified operators. | 1534 // Simplified operators. |
| 1535 | 1535 |
| 1536 | 1536 |
| 1537 Bounds Typer::Visitor::TypeAnyToBoolean(Node* node) { | |
| 1538 return TypeUnaryOp(node, ToBoolean); | |
| 1539 } | |
| 1540 | |
| 1541 | |
| 1542 Bounds Typer::Visitor::TypeBooleanNot(Node* node) { | 1537 Bounds Typer::Visitor::TypeBooleanNot(Node* node) { |
| 1543 return Bounds(Type::None(zone()), Type::Boolean(zone())); | 1538 return Bounds(Type::None(zone()), Type::Boolean(zone())); |
| 1544 } | 1539 } |
| 1545 | 1540 |
| 1546 | 1541 |
| 1547 Bounds Typer::Visitor::TypeBooleanToNumber(Node* node) { | 1542 Bounds Typer::Visitor::TypeBooleanToNumber(Node* node) { |
| 1548 return TypeUnaryOp(node, ToNumber); | 1543 return TypeUnaryOp(node, ToNumber); |
| 1549 } | 1544 } |
| 1550 | 1545 |
| 1551 | 1546 |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2223 TYPED_ARRAYS(TYPED_ARRAY_CASE) | 2218 TYPED_ARRAYS(TYPED_ARRAY_CASE) |
| 2224 #undef TYPED_ARRAY_CASE | 2219 #undef TYPED_ARRAY_CASE |
| 2225 } | 2220 } |
| 2226 } | 2221 } |
| 2227 return Type::Constant(value, zone()); | 2222 return Type::Constant(value, zone()); |
| 2228 } | 2223 } |
| 2229 | 2224 |
| 2230 } // namespace compiler | 2225 } // namespace compiler |
| 2231 } // namespace internal | 2226 } // namespace internal |
| 2232 } // namespace v8 | 2227 } // namespace v8 |
| OLD | NEW |