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 <iomanip> | 7 #include <iomanip> |
8 | 8 |
9 #include "src/base/flags.h" | 9 #include "src/base/flags.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1723 Type* Typer::Visitor::TypeStoreElement(Node* node) { | 1723 Type* Typer::Visitor::TypeStoreElement(Node* node) { |
1724 UNREACHABLE(); | 1724 UNREACHABLE(); |
1725 return nullptr; | 1725 return nullptr; |
1726 } | 1726 } |
1727 | 1727 |
1728 Type* Typer::Visitor::TypeStoreTypedElement(Node* node) { | 1728 Type* Typer::Visitor::TypeStoreTypedElement(Node* node) { |
1729 UNREACHABLE(); | 1729 UNREACHABLE(); |
1730 return nullptr; | 1730 return nullptr; |
1731 } | 1731 } |
1732 | 1732 |
| 1733 Type* Typer::Visitor::TypeLoadFunctionPrototype(Node* node) { |
| 1734 return Type::NonInternal(); |
| 1735 } |
| 1736 |
1733 Type* Typer::Visitor::TypeObjectIsCallable(Node* node) { | 1737 Type* Typer::Visitor::TypeObjectIsCallable(Node* node) { |
1734 return TypeUnaryOp(node, ObjectIsCallable); | 1738 return TypeUnaryOp(node, ObjectIsCallable); |
1735 } | 1739 } |
1736 | 1740 |
1737 Type* Typer::Visitor::TypeObjectIsNumber(Node* node) { | 1741 Type* Typer::Visitor::TypeObjectIsNumber(Node* node) { |
1738 return TypeUnaryOp(node, ObjectIsNumber); | 1742 return TypeUnaryOp(node, ObjectIsNumber); |
1739 } | 1743 } |
1740 | 1744 |
1741 | 1745 |
1742 Type* Typer::Visitor::TypeObjectIsReceiver(Node* node) { | 1746 Type* Typer::Visitor::TypeObjectIsReceiver(Node* node) { |
(...skipping 22 matching lines...) Expand all Loading... |
1765 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { | 1769 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { |
1766 if (Type::IsInteger(*value)) { | 1770 if (Type::IsInteger(*value)) { |
1767 return Type::Range(value->Number(), value->Number(), zone()); | 1771 return Type::Range(value->Number(), value->Number(), zone()); |
1768 } | 1772 } |
1769 return Type::NewConstant(value, zone()); | 1773 return Type::NewConstant(value, zone()); |
1770 } | 1774 } |
1771 | 1775 |
1772 } // namespace compiler | 1776 } // namespace compiler |
1773 } // namespace internal | 1777 } // namespace internal |
1774 } // namespace v8 | 1778 } // namespace v8 |
OLD | NEW |