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/bootstrapper.h" | 5 #include "src/bootstrapper.h" |
6 #include "src/compiler/graph-inl.h" | 6 #include "src/compiler/graph-inl.h" |
7 #include "src/compiler/js-operator.h" | 7 #include "src/compiler/js-operator.h" |
8 #include "src/compiler/node.h" | 8 #include "src/compiler/node.h" |
9 #include "src/compiler/node-properties-inl.h" | 9 #include "src/compiler/node-properties-inl.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 Bounds Typer::Visitor::TypeFloat64LessThan(Node* node) { | 1547 Bounds Typer::Visitor::TypeFloat64LessThan(Node* node) { |
1548 return Bounds(Type::Boolean()); | 1548 return Bounds(Type::Boolean()); |
1549 } | 1549 } |
1550 | 1550 |
1551 | 1551 |
1552 Bounds Typer::Visitor::TypeFloat64LessThanOrEqual(Node* node) { | 1552 Bounds Typer::Visitor::TypeFloat64LessThanOrEqual(Node* node) { |
1553 return Bounds(Type::Boolean()); | 1553 return Bounds(Type::Boolean()); |
1554 } | 1554 } |
1555 | 1555 |
1556 | 1556 |
| 1557 Bounds Typer::Visitor::TypeFloat64Round(Node* node) { |
| 1558 // TODO(sigurds): We could have a tighter bound here. |
| 1559 return Bounds(Type::Number()); |
| 1560 } |
| 1561 |
| 1562 |
1557 Bounds Typer::Visitor::TypeLoadStackPointer(Node* node) { | 1563 Bounds Typer::Visitor::TypeLoadStackPointer(Node* node) { |
1558 return Bounds(Type::Internal()); | 1564 return Bounds(Type::Internal()); |
1559 } | 1565 } |
1560 | 1566 |
1561 | 1567 |
1562 // Heap constants. | 1568 // Heap constants. |
1563 | 1569 |
1564 | 1570 |
1565 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { | 1571 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { |
1566 if (value->IsJSFunction()) { | 1572 if (value->IsJSFunction()) { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1635 return typer_->float64_array_fun_; | 1641 return typer_->float64_array_fun_; |
1636 } | 1642 } |
1637 } | 1643 } |
1638 } | 1644 } |
1639 return Type::Constant(value, zone()); | 1645 return Type::Constant(value, zone()); |
1640 } | 1646 } |
1641 | 1647 |
1642 } | 1648 } |
1643 } | 1649 } |
1644 } // namespace v8::internal::compiler | 1650 } // namespace v8::internal::compiler |
OLD | NEW |