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 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1688 } | 1688 } |
1689 | 1689 |
1690 Type* Typer::Visitor::TypeObjectIsString(Node* node) { | 1690 Type* Typer::Visitor::TypeObjectIsString(Node* node) { |
1691 return TypeUnaryOp(node, ObjectIsString); | 1691 return TypeUnaryOp(node, ObjectIsString); |
1692 } | 1692 } |
1693 | 1693 |
1694 Type* Typer::Visitor::TypeObjectIsUndetectable(Node* node) { | 1694 Type* Typer::Visitor::TypeObjectIsUndetectable(Node* node) { |
1695 return TypeUnaryOp(node, ObjectIsUndetectable); | 1695 return TypeUnaryOp(node, ObjectIsUndetectable); |
1696 } | 1696 } |
1697 | 1697 |
| 1698 Type* Typer::Visitor::TypeArrayBufferWasNeutered(Node* node) { |
| 1699 return Type::Boolean(); |
| 1700 } |
1698 | 1701 |
1699 // Machine operators. | 1702 // Machine operators. |
1700 | 1703 |
1701 Type* Typer::Visitor::TypeDebugBreak(Node* node) { return Type::None(); } | 1704 Type* Typer::Visitor::TypeDebugBreak(Node* node) { return Type::None(); } |
1702 | 1705 |
1703 Type* Typer::Visitor::TypeComment(Node* node) { return Type::None(); } | 1706 Type* Typer::Visitor::TypeComment(Node* node) { return Type::None(); } |
1704 | 1707 |
1705 Type* Typer::Visitor::TypeRetain(Node* node) { | 1708 Type* Typer::Visitor::TypeRetain(Node* node) { |
1706 UNREACHABLE(); | 1709 UNREACHABLE(); |
1707 return nullptr; | 1710 return nullptr; |
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2321 } | 2324 } |
2322 if (Type::IsInteger(*value)) { | 2325 if (Type::IsInteger(*value)) { |
2323 return Type::Range(value->Number(), value->Number(), zone()); | 2326 return Type::Range(value->Number(), value->Number(), zone()); |
2324 } | 2327 } |
2325 return Type::Constant(value, zone()); | 2328 return Type::Constant(value, zone()); |
2326 } | 2329 } |
2327 | 2330 |
2328 } // namespace compiler | 2331 } // namespace compiler |
2329 } // namespace internal | 2332 } // namespace internal |
2330 } // namespace v8 | 2333 } // namespace v8 |
OLD | NEW |