| 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 1948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1959 Type* Typer::Visitor::TypeWord32Clz(Node* node) { return Type::Integral32(); } | 1959 Type* Typer::Visitor::TypeWord32Clz(Node* node) { return Type::Integral32(); } |
| 1960 | 1960 |
| 1961 | 1961 |
| 1962 Type* Typer::Visitor::TypeWord32Ctz(Node* node) { return Type::Integral32(); } | 1962 Type* Typer::Visitor::TypeWord32Ctz(Node* node) { return Type::Integral32(); } |
| 1963 | 1963 |
| 1964 | 1964 |
| 1965 Type* Typer::Visitor::TypeWord32ReverseBits(Node* node) { | 1965 Type* Typer::Visitor::TypeWord32ReverseBits(Node* node) { |
| 1966 return Type::Integral32(); | 1966 return Type::Integral32(); |
| 1967 } | 1967 } |
| 1968 | 1968 |
| 1969 Type* Typer::Visitor::TypeWord32ReverseBytes(Node* node) { |
| 1970 return Type::Integral32(); |
| 1971 } |
| 1969 | 1972 |
| 1970 Type* Typer::Visitor::TypeWord32Popcnt(Node* node) { | 1973 Type* Typer::Visitor::TypeWord32Popcnt(Node* node) { |
| 1971 return Type::Integral32(); | 1974 return Type::Integral32(); |
| 1972 } | 1975 } |
| 1973 | 1976 |
| 1974 | 1977 |
| 1975 Type* Typer::Visitor::TypeWord64And(Node* node) { return Type::Internal(); } | 1978 Type* Typer::Visitor::TypeWord64And(Node* node) { return Type::Internal(); } |
| 1976 | 1979 |
| 1977 | 1980 |
| 1978 Type* Typer::Visitor::TypeWord64Or(Node* node) { return Type::Internal(); } | 1981 Type* Typer::Visitor::TypeWord64Or(Node* node) { return Type::Internal(); } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1996 Type* Typer::Visitor::TypeWord64Clz(Node* node) { return Type::Internal(); } | 1999 Type* Typer::Visitor::TypeWord64Clz(Node* node) { return Type::Internal(); } |
| 1997 | 2000 |
| 1998 | 2001 |
| 1999 Type* Typer::Visitor::TypeWord64Ctz(Node* node) { return Type::Internal(); } | 2002 Type* Typer::Visitor::TypeWord64Ctz(Node* node) { return Type::Internal(); } |
| 2000 | 2003 |
| 2001 | 2004 |
| 2002 Type* Typer::Visitor::TypeWord64ReverseBits(Node* node) { | 2005 Type* Typer::Visitor::TypeWord64ReverseBits(Node* node) { |
| 2003 return Type::Internal(); | 2006 return Type::Internal(); |
| 2004 } | 2007 } |
| 2005 | 2008 |
| 2009 Type* Typer::Visitor::TypeWord64ReverseBytes(Node* node) { |
| 2010 return Type::Internal(); |
| 2011 } |
| 2006 | 2012 |
| 2007 Type* Typer::Visitor::TypeWord64Popcnt(Node* node) { return Type::Internal(); } | 2013 Type* Typer::Visitor::TypeWord64Popcnt(Node* node) { return Type::Internal(); } |
| 2008 | 2014 |
| 2009 | 2015 |
| 2010 Type* Typer::Visitor::TypeWord64Equal(Node* node) { return Type::Boolean(); } | 2016 Type* Typer::Visitor::TypeWord64Equal(Node* node) { return Type::Boolean(); } |
| 2011 | 2017 |
| 2012 | 2018 |
| 2013 Type* Typer::Visitor::TypeInt32Add(Node* node) { return Type::Integral32(); } | 2019 Type* Typer::Visitor::TypeInt32Add(Node* node) { return Type::Integral32(); } |
| 2014 | 2020 |
| 2015 | 2021 |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2540 } | 2546 } |
| 2541 if (Type::IsInteger(*value)) { | 2547 if (Type::IsInteger(*value)) { |
| 2542 return Type::Range(value->Number(), value->Number(), zone()); | 2548 return Type::Range(value->Number(), value->Number(), zone()); |
| 2543 } | 2549 } |
| 2544 return Type::Constant(value, zone()); | 2550 return Type::Constant(value, zone()); |
| 2545 } | 2551 } |
| 2546 | 2552 |
| 2547 } // namespace compiler | 2553 } // namespace compiler |
| 2548 } // namespace internal | 2554 } // namespace internal |
| 2549 } // namespace v8 | 2555 } // namespace v8 |
| OLD | NEW |