| 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 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1678 Type* Typer::Visitor::TypeJSGeneratorRestoreContinuation(Node* node) { | 1678 Type* Typer::Visitor::TypeJSGeneratorRestoreContinuation(Node* node) { |
| 1679 return Type::SignedSmall(); | 1679 return Type::SignedSmall(); |
| 1680 } | 1680 } |
| 1681 | 1681 |
| 1682 Type* Typer::Visitor::TypeJSGeneratorRestoreRegister(Node* node) { | 1682 Type* Typer::Visitor::TypeJSGeneratorRestoreRegister(Node* node) { |
| 1683 return Type::Any(); | 1683 return Type::Any(); |
| 1684 } | 1684 } |
| 1685 | 1685 |
| 1686 Type* Typer::Visitor::TypeJSStackCheck(Node* node) { return Type::Any(); } | 1686 Type* Typer::Visitor::TypeJSStackCheck(Node* node) { return Type::Any(); } |
| 1687 | 1687 |
| 1688 Type* Typer::Visitor::TypeJSDebugger(Node* node) { return Type::Any(); } |
| 1689 |
| 1688 // Simplified operators. | 1690 // Simplified operators. |
| 1689 | 1691 |
| 1690 Type* Typer::Visitor::TypeBooleanNot(Node* node) { return Type::Boolean(); } | 1692 Type* Typer::Visitor::TypeBooleanNot(Node* node) { return Type::Boolean(); } |
| 1691 | 1693 |
| 1692 Type* Typer::Visitor::TypeNumberEqual(Node* node) { return Type::Boolean(); } | 1694 Type* Typer::Visitor::TypeNumberEqual(Node* node) { return Type::Boolean(); } |
| 1693 | 1695 |
| 1694 Type* Typer::Visitor::TypeNumberLessThan(Node* node) { return Type::Boolean(); } | 1696 Type* Typer::Visitor::TypeNumberLessThan(Node* node) { return Type::Boolean(); } |
| 1695 | 1697 |
| 1696 Type* Typer::Visitor::TypeNumberLessThanOrEqual(Node* node) { | 1698 Type* Typer::Visitor::TypeNumberLessThanOrEqual(Node* node) { |
| 1697 return Type::Boolean(); | 1699 return Type::Boolean(); |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1940 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { | 1942 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { |
| 1941 if (Type::IsInteger(*value)) { | 1943 if (Type::IsInteger(*value)) { |
| 1942 return Type::Range(value->Number(), value->Number(), zone()); | 1944 return Type::Range(value->Number(), value->Number(), zone()); |
| 1943 } | 1945 } |
| 1944 return Type::NewConstant(value, zone()); | 1946 return Type::NewConstant(value, zone()); |
| 1945 } | 1947 } |
| 1946 | 1948 |
| 1947 } // namespace compiler | 1949 } // namespace compiler |
| 1948 } // namespace internal | 1950 } // namespace internal |
| 1949 } // namespace v8 | 1951 } // namespace v8 |
| OLD | NEW |