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 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2001 return TypeUnaryOp(node, ObjectIsString); | 2001 return TypeUnaryOp(node, ObjectIsString); |
2002 } | 2002 } |
2003 | 2003 |
2004 Type* Typer::Visitor::TypeObjectIsUndetectable(Node* node) { | 2004 Type* Typer::Visitor::TypeObjectIsUndetectable(Node* node) { |
2005 return TypeUnaryOp(node, ObjectIsUndetectable); | 2005 return TypeUnaryOp(node, ObjectIsUndetectable); |
2006 } | 2006 } |
2007 | 2007 |
2008 | 2008 |
2009 // Machine operators. | 2009 // Machine operators. |
2010 | 2010 |
| 2011 Type* Typer::Visitor::TypeDebugBreak(Node* node) { return Type::None(); } |
| 2012 |
2011 Type* Typer::Visitor::TypeLoad(Node* node) { return Type::Any(); } | 2013 Type* Typer::Visitor::TypeLoad(Node* node) { return Type::Any(); } |
2012 | 2014 |
2013 Type* Typer::Visitor::TypeStackSlot(Node* node) { return Type::Any(); } | 2015 Type* Typer::Visitor::TypeStackSlot(Node* node) { return Type::Any(); } |
2014 | 2016 |
2015 Type* Typer::Visitor::TypeStore(Node* node) { | 2017 Type* Typer::Visitor::TypeStore(Node* node) { |
2016 UNREACHABLE(); | 2018 UNREACHABLE(); |
2017 return nullptr; | 2019 return nullptr; |
2018 } | 2020 } |
2019 | 2021 |
2020 | 2022 |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2573 } | 2575 } |
2574 if (Type::IsInteger(*value)) { | 2576 if (Type::IsInteger(*value)) { |
2575 return Type::Range(value->Number(), value->Number(), zone()); | 2577 return Type::Range(value->Number(), value->Number(), zone()); |
2576 } | 2578 } |
2577 return Type::Constant(value, zone()); | 2579 return Type::Constant(value, zone()); |
2578 } | 2580 } |
2579 | 2581 |
2580 } // namespace compiler | 2582 } // namespace compiler |
2581 } // namespace internal | 2583 } // namespace internal |
2582 } // namespace v8 | 2584 } // namespace v8 |
OLD | NEW |