| 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 "src/base/flags.h" | 7 #include "src/base/flags.h" |
| 8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
| 9 #include "src/compilation-dependencies.h" | 9 #include "src/compilation-dependencies.h" |
| 10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
| (...skipping 2051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2062 | 2062 |
| 2063 Type* Typer::Visitor::TypeObjectIsUndetectable(Node* node) { | 2063 Type* Typer::Visitor::TypeObjectIsUndetectable(Node* node) { |
| 2064 return TypeUnaryOp(node, ObjectIsUndetectable); | 2064 return TypeUnaryOp(node, ObjectIsUndetectable); |
| 2065 } | 2065 } |
| 2066 | 2066 |
| 2067 | 2067 |
| 2068 // Machine operators. | 2068 // Machine operators. |
| 2069 | 2069 |
| 2070 Type* Typer::Visitor::TypeDebugBreak(Node* node) { return Type::None(); } | 2070 Type* Typer::Visitor::TypeDebugBreak(Node* node) { return Type::None(); } |
| 2071 | 2071 |
| 2072 Type* Typer::Visitor::TypeComment(Node* node) { return Type::None(); } |
| 2073 |
| 2072 Type* Typer::Visitor::TypeLoad(Node* node) { return Type::Any(); } | 2074 Type* Typer::Visitor::TypeLoad(Node* node) { return Type::Any(); } |
| 2073 | 2075 |
| 2074 Type* Typer::Visitor::TypeStackSlot(Node* node) { return Type::Any(); } | 2076 Type* Typer::Visitor::TypeStackSlot(Node* node) { return Type::Any(); } |
| 2075 | 2077 |
| 2076 Type* Typer::Visitor::TypeStore(Node* node) { | 2078 Type* Typer::Visitor::TypeStore(Node* node) { |
| 2077 UNREACHABLE(); | 2079 UNREACHABLE(); |
| 2078 return nullptr; | 2080 return nullptr; |
| 2079 } | 2081 } |
| 2080 | 2082 |
| 2081 | 2083 |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2639 } | 2641 } |
| 2640 if (Type::IsInteger(*value)) { | 2642 if (Type::IsInteger(*value)) { |
| 2641 return Type::Range(value->Number(), value->Number(), zone()); | 2643 return Type::Range(value->Number(), value->Number(), zone()); |
| 2642 } | 2644 } |
| 2643 return Type::Constant(value, zone()); | 2645 return Type::Constant(value, zone()); |
| 2644 } | 2646 } |
| 2645 | 2647 |
| 2646 } // namespace compiler | 2648 } // namespace compiler |
| 2647 } // namespace internal | 2649 } // namespace internal |
| 2648 } // namespace v8 | 2650 } // namespace v8 |
| OLD | NEW |