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 1808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1819 } | 1819 } |
1820 | 1820 |
1821 Type* Typer::Visitor::TypeObjectIsString(Node* node) { | 1821 Type* Typer::Visitor::TypeObjectIsString(Node* node) { |
1822 return TypeUnaryOp(node, ObjectIsString); | 1822 return TypeUnaryOp(node, ObjectIsString); |
1823 } | 1823 } |
1824 | 1824 |
1825 Type* Typer::Visitor::TypeObjectIsUndetectable(Node* node) { | 1825 Type* Typer::Visitor::TypeObjectIsUndetectable(Node* node) { |
1826 return TypeUnaryOp(node, ObjectIsUndetectable); | 1826 return TypeUnaryOp(node, ObjectIsUndetectable); |
1827 } | 1827 } |
1828 | 1828 |
| 1829 Type* Typer::Visitor::TypeNewUnmappedArgumentsElements(Node* node) { |
| 1830 return Type::OtherInternal(); |
| 1831 } |
| 1832 |
| 1833 Type* Typer::Visitor::TypeNewRestParameterElements(Node* node) { |
| 1834 return Type::OtherInternal(); |
| 1835 } |
| 1836 |
1829 Type* Typer::Visitor::TypeArrayBufferWasNeutered(Node* node) { | 1837 Type* Typer::Visitor::TypeArrayBufferWasNeutered(Node* node) { |
1830 return Type::Boolean(); | 1838 return Type::Boolean(); |
1831 } | 1839 } |
1832 | 1840 |
1833 // Heap constants. | 1841 // Heap constants. |
1834 | 1842 |
1835 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { | 1843 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { |
1836 if (Type::IsInteger(*value)) { | 1844 if (Type::IsInteger(*value)) { |
1837 return Type::Range(value->Number(), value->Number(), zone()); | 1845 return Type::Range(value->Number(), value->Number(), zone()); |
1838 } | 1846 } |
1839 return Type::NewConstant(value, zone()); | 1847 return Type::NewConstant(value, zone()); |
1840 } | 1848 } |
1841 | 1849 |
1842 } // namespace compiler | 1850 } // namespace compiler |
1843 } // namespace internal | 1851 } // namespace internal |
1844 } // namespace v8 | 1852 } // namespace v8 |
OLD | NEW |